Patch fix for 2.2.12 compilation with Sun Studio 11

Dale Ghent daleg at umbc.edu
Fri Dec 8 15:39:47 EST 2006


I'm not on the -devel list, and this was a quick fix, so I'm just  
posting this here....

Compiling on Solaris with Sun Studio 11 with CFLAGS=-xO3 yields a  
unresolved symbol error when linking sievec:

cc -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib -R/usr/local/ 
lib  -o sievec sievec.o libsieve.a ../lib/libcyrus.a ../lib/ 
libcyrus_min.a  libsieve.a -lsasl2 -lresolv -ldl  -lfl  -lresolv - 
lsocket -lnsl  -L/usr/local/lib  -R/usr/local/lib -ldb-4.1 -lssl - 
lcrypto -lrt ../et/libcom_err.a
Undefined                       first referenced
symbol                             in file
write_int                           libsieve.a(bc_emit.o)

write_int() is an inline function in sieve/bc_emit.c which has no  
definition. This might be okay in GCC-land, but not with Sun Studio.  
The fix is a one-liner which defines the inline function:

      http://elektronkind.org/osol/cyrus-imap-inline-def.patch

/dale

--
Dale Ghent
UNIX Systems Specialist
UMBC - Office of Information Technology
ECS 201 - x51705





More information about the Info-cyrus mailing list