Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 09:40:27 +0100
From:      Miguel Mendez <flynn@energyhq.homeip.net>
To:        Sam Izzo <izzo@humbug.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--=.0a7ei8pcC2TZAy
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Mon, 24 Feb 2003 18:39:11 +1100
Sam Izzo <izzo@humbug.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030224094027.3a6e458a.flynn>