Date: Sat, 3 Apr 2004 10:47:01 +0930 From: Malcolm Kay <malcolm.kay@internode.on.net> To: ste@smxy.org, freebsd-questions@freebsd.org Subject: Re: OT: how do I get this to link? Message-ID: <200404031047.01289.malcolm.kay@internode.on.net> In-Reply-To: <406D1265.1030102@smxy.org> References: <406D1265.1030102@smxy.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 02 April 2004 16:42, Shaun T. Erickson wrote: > I can't get the program to link. In the output below, the things that > c-client4.a is complaining about are found in the pam and ssl libs > earlier in the line (I grep'd for a number of them, in /usr/lib/*.a, an= d > they were found in those two libs). I have tried many different ways of > ordering the libs, and this is the one that produces the least undefine= d > references. I have all the libs found in /usr/lib first and the libs > from /usr/local/lib second. > Here's the output: > > peter# make > gcc -c filtercmd.c > -DSQUIRRELMAILCONFIGFILE=3D'"/usr/local/www/squirrelmail/config/config.= php"' > gcc -c checkcreds_cclient.c -I/usr/local/include/c-client > '-DMAIL_H=3D"mail.h"' '-DLINKAGE_C=3D"linkage.c"' -DIMAP_TIMEOUT=3D2 > '-DMAILBOXFLAGS=3D"/norsh/tls/novalidate-cert"' > gcc -o filtercmd filtercmd.o checkcreds_cclient.o -lpam -lssl -lcrypt > -lkrb5 -lcom_err -lz -lcrypto -L/usr/local/lib -lc-client4 -lgssapi_krb= 5 > -lk5crypto -static Maybe it is OK but to me the -static option at the end of the command loo= ks=20 strange. And I know the documentation says that mostly the command line o= rder=20 doesn't matter; but try it near the beginning. Malcolm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404031047.01289.malcolm.kay>