Alexei Batyr' writes:
Hello Sam,I've tried to compile latest development Courier snapshot on FreeBSD 8.2 amd64 (libtool 2.4) and got these errors: Making all in en-us /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -I.. -I./.. -static -L/usr/local/lib -o showmsg2html showmsg2html.o libwebmail.la -lcrypt libtool: link: gcc -g -O2 -Wall -I.. -I./.. -o showmsg2html showmsg2html.o -L/usr/local/lib ./.libs/libwebmail.a /usr/local/lib/libidn.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so /usr/local/lib/libgdbm.so -lcrypt -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib ./.libs/libwebmail.a(cgi.o)(.text+0x5b8): In function `enomem': /usr/local/src/courier/courier/cgi/cgi.c:69: undefined reference to `error'
Strange. It's definitely missing, when I work out the linkage manually -- the code in question is not used by this specific binary -- but I must be resolving the symbol to something; or gcc/binutils must be optimizing out the unused code, and its undefined reference.
Just append the definition for error() into showmsg2html.c: void error(const char *p) { fprintf(stderr, "%s\n", p); exit(1); }
pgpxhyNbErVIe.pgp
Description: PGP signature
------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users