Patch fix for 2.2.12 compilation with Sun Studio 11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux