<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
I still have one problem when compiling cyrus with perl. For some
reason I don't quite get, the perl part of the compilation believes
that I am using sun's compiler but I'm using the GNU compiler. The
problem seems to be only in the perl. I tried to edit the
perl/imap/makefile with this:<br>
<br>
old:<br>
CCCDLFLAGS = -KPIC<br>
CCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO<br>
OPTIMIZE = -xO3 -xspace -xildoff<br>
<br>
new:<br>
CCCDLFLAGS = -fPIC<br>
CCFLAGS = -mcpu=ultrasparc -Wall -pipe -fomit-frame-pointer<br>
OPTIMIZE = -O3<br>
<br>
but didnt succeed. Look at the compiler flags when working on imtest<br>
<tt><br>
### Making all in /root/system/install/cyrus-imapd-2.3.7/imtest<br>
/usr/sfw/bin/gcc -c -I.. -I./../lib -I../et -I/opt/tools/bdb/include
-I/opt/tools/openssl/include -I/opt/tools/cyrus-sasl/include
-DHAVE_CONFIG_H <font color="#009900">-mcpu=ultrasparc -O3 -Wall -pipe
-fomit-frame-pointer</font> imtest.c<br>
imtest.c: In function `main':<br>
imtest.c:2482: warning: int format, pid_t arg (arg 3)<br>
imtest.c:2608: warning: dereferencing type-punned pointer will break
strict-aliasing rules<br>
/usr/sfw/bin/gcc -L/opt/tools/openssl/lib -R/opt/tools/openssl/lib
-L/opt/tools/bdb/lib -R/opt/tools/bdb/lib -lnsl -lsocket -lresolv
-lmalloc -o imtest imtest.o ../lib/libcyrus.a ../lib/libcyrus_min.a
-L/opt/tools/cyrus-sasl/lib -R/opt/tools/cyrus-sasl/lib -lsasl2 -lgss
-lresolv -lresolv -lresolv -L/opt/tools/bdb/lib
-R/opt/tools/bdb/lib -ldb-4.4 -lssl -lcrypto -lrt</tt><br>
<br>
in contrast to <br>
<tt><br>
### Making all in /root/system/install/cyrus-imapd-2.3.7/perl<br>
### Making all in /root/system/install/cyrus-imapd-2.3.7/perl/imap<br>
Checking if your kit is complete...<br>
Looks good<br>
Writing Makefile for Cyrus::IMAP<br>
cp IMAP/Admin.pm blib/lib/Cyrus/IMAP/Admin.pm<br>
cp IMAP.pm blib/lib/Cyrus/IMAP.pm<br>
cp IMAP/Shell.pm blib/lib/Cyrus/IMAP/Shell.pm<br>
cp IMAP/IMSP.pm blib/lib/Cyrus/IMAP/IMSP.pm<br>
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.8.4/lib/ExtUtils/typemap -typemap typemap IMAP.xs >
IMAP.xsc && mv IMAP.xsc IMAP.c<br>
cc -c -I../../lib -I../.. -I../../et -I/opt/tools/cyrus-sasl/include
-I/opt/tools/openssl/include <font color="#cc0000">-D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff</font>
-DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -KPIC
"-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DPERL_POLLUTE IMAP.c<br>
sh: cc: not found<br>
*** Error code 1<br>
make: Fatal error: Command failed for target `IMAP.o'<br>
Current working directory
/root/system/install/cyrus-imapd-2.3.7/perl/imap<br>
*** Error code 1<br>
The following command caused the error:<br>
for d in imap sieve; \<br>
do \<br>
(cd $d; echo "### Making" all "in" `pwd`; \<br>
if [ -f Makefile.PL ]; then \<br>
LIB_RT="-lrt" \<br>
BDB_LIB="-L/opt/tools/bdb/lib -R/opt/tools/bdb/lib
-ldb-4.4" BDB_INC="-I/opt/tools/bdb/include" \<br>
OPENSSL_LIB="-L/opt/tools/openssl/lib
-L/opt/tools/openssl/lib -R/opt/tools/openssl/lib"
OPENSSL_INC="-I/opt/tools/openssl/include" \<br>
SASL_LIB="-L/opt/tools/cyrus-sasl/lib
-R/opt/tools/cyrus-sasl/lib -lsasl2"
SASL_INC="-I/opt/tools/cyrus-sasl/include" CC="/usr/sfw/bin/gcc" \<br>
perl Makefile.PL PREFIX=/opt/services/cyrus-imapd;
\<br>
fi; \<br>
make DESTDIR= all) || exit 1; \<br>
done<br>
make: Fatal error: Command failed for target `all'<br>
Current working directory /root/system/install/cyrus-imapd-2.3.7/perl<br>
*** Error code 1<br>
The following command caused the error:<br>
for d in man et lib sieve master imap imtest perl timsieved
notifyd; \<br>
do \<br>
(cd $d; echo "### Making" all "in" `pwd`; \<br>
make DESTDIR= all) || exit 1; \<br>
done<br>
make: Fatal error: Command failed for target `all'</tt><br>
<br>
<br>
Can anyone help please? ... was using<br>
gmake depend<br>
make all CFLAGS=-O<br>
to build that.. thanks in advance,<br>
<br>
Pavel<br>
</body>
</html>