Subject: Re: buildlink trouble
To: Amitai Schlair <schmonz@schmonz.com>
From: Johnny Lam <jlam@jgrind.org>
List: tech-pkg
Date: 12/08/2001 12:23:18
On Sat, Dec 08, 2001 at 02:29:10PM -0500, Amitai Schlair wrote:
> 
> cc -I/usr/src/pkg/devel/cvsgraph/work/.buildlink/include -O2
> -I/usr/pkg/share/x11-links/include  -Wall -DETCDIR=\"/usr/pkg/etc\" -c -o
> cvsgraph.o cvsgraph.c

First off...minor issue, but we're using ${PKG_SYSCONFDIR} to represent
where the config files go, now.  So, you'll need to find how ETCDIR is
being set by the configure script, and make is use ${PKG_SYSCONFDIR}
instead.  This is usually done by passing --sysconfdir=${PKG_SYSCONFDIR}
to the configure script.

> cc -I/usr/src/pkg/devel/cvsgraph/work/.buildlink/include -O2
> -I/usr/pkg/share/x11-links/include  -Wall -DETCDIR=\"/usr/pkg/etc\" -o
> cvsgraph cvsgraph.o utils.o y.tab.o lex.yy.o rcs.tab.o lex.rcs.o
> -L/usr/src/pkg/devel/cvsgraph/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lintl
> -lgd
> /usr/bin/ld: warning: libX11.so.6, needed by
> /usr/src/pkg/devel/cvsgraph/work/.buildlink/lib/libgd.so, not found (try
> using --rpath)

For some reason, I don't see -L/usr/pkg/share/x11-links/lib above.  This
is probably some problem in Makefile.in where LDFLAGS isn't being used
properly.  I see in the output you provided that LDFLAGS is correct during
the configure phase, but is wrong during the build phase.

I hope this helps you track down the problem.  If you need more help, feel
free to tar up your package and provide a URL and I can take a look.

	Cheers,

	-- Johnny Lam <jlam@jgrind.org>