From owner-freebsd-questions Mon Feb 24 0:40:14 2003 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 2738A37B405 for ; Mon, 24 Feb 2003 00:40:11 -0800 (PST) Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1008E43FA3 for ; Mon, 24 Feb 2003 00:40:09 -0800 (PST) (envelope-from flynn@energyhq.homeip.net) Received: from christine.energyhq.tk (christine.energyhq.tk [192.168.100.1]) by energyhq.homeip.net (Postfix) with SMTP id E9B23AF5C9; Mon, 24 Feb 2003 09:40:07 +0100 (CET) Date: Mon, 24 Feb 2003 09:40:27 +0100 From: Miguel Mendez To: Sam Izzo Cc: freebsd-questions@freebsd.org Subject: Re: linker paths & /usr/local/lib Message-Id: <20030224094027.3a6e458a.flynn@energyhq.homeip.net> In-Reply-To: <20030224073911.GA10158@kalgan.vic.optushome.com.au> References: <20030223152808.GA1391@kalgan.vic.optushome.com.au> <20030223165133.79e9aa2b.flynn@energyhq.homeip.net> <20030224011724.GA296@kalgan.vic.optushome.com.au> <20030224080534.61fa0166.flynn@energyhq.homeip.net> <20030224073911.GA10158@kalgan.vic.optushome.com.au> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386--netbsdelf) X-Face: 1j}k*2E>Y\+C~E|/wehi[:dCM,{N7/uE 3o# P,{t7gA/qnovFDDuyQV.1hdT7&#d)q"xY33}{_GS>kk'S{O]nE$A`T|\4&p\&mQyexOLb8}FO List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.0a7ei8pcC2TZAy Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 24 Feb 2003 18:39:11 +1100 Sam Izzo wrote: Howdy, > Yeah, OpenPTC doesn't accept that parameter :/ Being a curious person myself I cvs co'd the OpenPTC thing to try it here. I've tried it on a NetBSD box, but the procedure to build it on FreeBSD should be similar. First I had to patch configure. This is my patch (change /usr/pkg/lib to /usr/local/lib on FreeBSD) --- configure.orig 2003-02-24 09:30:02.000000000 +0100 +++ configure 2003-02-24 09:33:45.000000000 +0100 @@ -1946,7 +1946,7 @@ #include "confdefs.h" #include <$ac_hdr> EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_try="$ac_cpp -I/usr/pkg/include conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then Then I used this: $ env CFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" ./configure (Again, change /usr/pkg to /usr/local for FreeBSD) configure went okay. I still get an error while trying to build the lib, but it's a step. I'll post in a while if I get it to build, right now I have to get onto other things. Hope this helps a bit. Perhaps it would be worth e-mailing the developers and making an offer to help them make a more sane configure script. Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt EnergyHQ :: http://www.energyhq.tk Of course it runs NetBSD! Tired of Spam? -> http://www.trustic.com --=.0a7ei8pcC2TZAy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (NetBSD) iD8DBQE+Wdp+nLctrNyFFPERAgWLAJ4gkYH9FLHjmQUafmI2NAVweeVerACgzpG+ fSjxNXFea2VMMAYWxRn1L2E= =BU6M -----END PGP SIGNATURE----- --=.0a7ei8pcC2TZAy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message