OT: how do I get this to link?
malcolm.kay at internode.on.net
Fri Apr 2 17:17:12 PST 2004
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, and
> 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 undefined
> 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
> gcc -c checkcreds_cclient.c -I/usr/local/include/c-client
> '-DMAIL_H="mail.h"' '-DLINKAGE_C="linkage.c"' -DIMAP_TIMEOUT=2
> gcc -o filtercmd filtercmd.o checkcreds_cclient.o -lpam -lssl -lcrypt
> -lkrb5 -lcom_err -lz -lcrypto -L/usr/local/lib -lc-client4 -lgssapi_krb5
> -lk5crypto -static
Maybe it is OK but to me the -static option at the end of the command looks
strange. And I know the documentation says that mostly the command line order
doesn't matter; but try it near the beginning.
More information about the freebsd-questions