From owner-freebsd-questions@FreeBSD.ORG Fri Apr 2 17:17:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 389D616A4CE for ; Fri, 2 Apr 2004 17:17:12 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6807A43D2D for ; Fri, 2 Apr 2004 17:17:09 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp38-176.lns1.adl1.internode.on.net [150.101.38.176])i331H1UK043726; Sat, 3 Apr 2004 10:47:07 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: at home To: ste@smxy.org, freebsd-questions@freebsd.org Date: Sat, 3 Apr 2004 10:47:01 +0930 User-Agent: KMail/1.4.3 References: <406D1265.1030102@smxy.org> In-Reply-To: <406D1265.1030102@smxy.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200404031047.01289.malcolm.kay@internode.on.net> Subject: Re: OT: how do I get this to link? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 01:17:12 -0000 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