packages for solaris 10 x86

Frank Pittel fwp at deepthought.com
Wed Oct 13 23:37:20 EDT 2010


On Sat, Oct 09, 2010 at 11:33:51AM -0700, Andrew Morgan wrote:
> On Sat, 9 Oct 2010, Frank Pittel wrote:
> 
> >That helped but I then I ran into more troubles. I'm starting to wonder if it'll work
> >when I do get it compiled! The errors I'm getting now is:
> >
> >
> >gcc -L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.7/lib -o imapd \
> >../master/service.o pushstats.o imapd.o proxy.o imap_proxy.o index.o version.o
> >mutex_fake.o \
> >libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/opt/sasl/lib  -R/opt/sasl/lib
> >-lsasl2 -lgss -lresolv -lresolv -lssl -lcrypto   -lresolv  -lresolv -lsocket -lnsl
> >-L/usr/local/BerkeleyDB.4.7/lib  -R/usr/local/BerkeleyDB.4.7/lib -ldb-4.7 -lz -lmd  -lrt
> >../com_err/et/libcom_err.a
> >Undefined                       first referenced
> >symbol                             in file
> >krb5_free_principal                 ../lib/libcyrus.a(auth_krb5.o)
> >krb5_realm_compare                  ../lib/libcyrus.a(auth_krb5.o)
> >krb5_build_principal                ../lib/libcyrus.a(auth_krb5.o)
> >krb5_get_default_realm              ../lib/libcyrus.a(auth_krb5.o)
> >krb5_parse_name                     ../lib/libcyrus.a(auth_krb5.o)
> >krb5_init_context                   ../lib/libcyrus.a(auth_krb5.o)
> >krb5_free_context                   ../lib/libcyrus.a(auth_krb5.o)
> >krb5_unparse_name                   ../lib/libcyrus.a(auth_krb5.o)
> >ld: fatal: Symbol referencing errors. No output written to imapd
> >collect2: ld returned 1 exit status
> >*** Error code 1
> >make: Fatal error: Command failed for target `imapd'
> >Current working directory /src/cyrus-imapd-2.3.16/imap
> >*** Error code 1
> >The following command caused the error:
> >for d in  man com_err/et  lib  sieve master imap  imtest   perl timsieved notifyd; \
> >do \
> >       (cd $d; echo "### Making" all "in" `pwd`;       \
> >               make  DESTDIR= all) || exit 1; \
> >done
> >make: Fatal error: Command failed for target `all'
> >
> >
> >Has anyone been able to get cyrus-imap to compile under
> >solaris-10? If I sound frustrated it's because I am. :-(
> 
> Add "--without-krb" and see if it gets you further.
> 
> Obviously, there are some problems with the build environment or the
> configure script detection logic for Solaris 10.  However, I know
> several folks from this mailing list are running Solaris 10.
> Hopefully they will chime in.  :)

I'm getting a little further. As I remember I didn't install kerberos and have found the
option for configure to not use it.

Now I get stuck here:

### Making all in /src/cyrus-imapd-2.3.16/perl/imap
cc -c  -I../../lib -I../.. -I../../com_err/et -I/opt/sasl//include -I/usr/sfw/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff
-DVERSION=\"1.00\"  -DXS_VERSION=\"1.00\" -KPIC
"-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  -DPERL_POLLUTE IMAP.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: IMAP.c: linker input file unused because linking not done
rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
LD_RUN_PATH="/usr/local/BerkeleyDB.4.7/lib:/opt/sasl//lib:/lib:/usr/lib:/usr/sfw/lib" cc
-G IMAP.o  -o blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a
../../lib/libcyrus_min.a  -L/usr/local/BerkeleyDB.4.7/lib/
-R/usr/local/BerkeleyDB.4.7/lib/ -ldb-4.7 -L/opt/sasl//lib -R/opt/sasl//lib -lsasl2
-L/usr/sfw/lib -L/usr/sfw/lib -R/usr/sfw/lib -lrt -lz -lssl -lcrypto   
cc: IMAP.o: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/Cyrus/IMAP/IMAP.so'
Current working directory /src/cyrus-imapd-2.3.16/perl/imap
*** Error code 1
The following command caused the error:
for d in  imap sieve; \
do \
        (cd $d; echo "### Making" all "in" `pwd`;       \
                if [ -f Makefile.PL -a ! -f Makefile ]; then \
                   LIB_RT="-lrt" \
                   ZLIB="-lz" \
                   BDB_LIB="-L/usr/local/BerkeleyDB.4.7/lib/
-R/usr/local/BerkeleyDB.4.7/lib/ -ldb-4.7" BDB_INC="-I/usr/local/BerkeleyDB.4.7/include/"
\
                   OPENSSL_LIB="-L/usr/sfw/lib -L/usr/sfw/lib -R/usr/sfw/lib"
OPENSSL_INC="-I/usr/sfw/include" \
                   SASL_LIB="-L/opt/sasl//lib  -R/opt/sasl//lib -lsasl2"
SASL_INC="-I/opt/sasl//include" CC="gcc" \
                     /usr/perl5/bin/perl Makefile.PL PREFIX=/opt/cyrus; \
                fi; \
                make  DESTDIR= all) || exit 1; \
done
make: Fatal error: Command failed for target `all'
Current working directory /src/cyrus-imapd-2.3.16/perl
*** Error code 1
The following command caused the error:
for d in  man com_err/et  lib  sieve master imap  imtest   perl timsieved notifyd; \
do \
        (cd $d; echo "### Making" all "in" `pwd`;       \
                make  DESTDIR= all) || exit 1; \
done
make: Fatal error: Command failed for target `all'


Notice that cc is called as the compiler. When I tried to run the only cc available I got
the error: 
bash-3.00# /usr/ucb/cc
/usr/ucb/cc:  language optional software package not installed

The advice I got on the internet was to remove the cc in /usr/ucb/cc and create a link to
gcc. I did that and got the above error. I think I'm getting close to getting it
compiled.

Frank


More information about the Info-cyrus mailing list