Subject: Re: Problems building gedit, gimp, etc
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 05/12/2007 22:08:14
On Sun, 13 May 2007, Jan Danielsson wrote:

>    Hmm... It seems that the linker can't find popt, so I jumped the gun
> on the version issue. I do have libpopt.{a,so} in /usr/pkg/lib, though.
> 
> ----------------------------------
> configure:23891: checking for poptStrippedArgv in -lpopt
> configure:23926: cc -o conftest -O2 -pipe -I/usr/pkg/include
> -I/usr/include -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -Wl,-R/
> ld: cannot find -lpopt
> 
> [wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
> /pkg_comp/obj/pkgsrc/devel/libbonobo/default/.gcc/bin/gcc -o conftest
> -O2 -pipe -I/pkg_comp/obj/pkgsrc/devel/libbonobo/default/.buil

It needs to be buildlinked. For example, I have (under libbonobo):

$ cat work/.buildlink/.buildlink_popt_done 
/usr/pkg/include/popt.h
/usr/pkg/lib/libpopt.a
/usr/pkg/lib/libpopt.la (created)
/usr/pkg/lib/libpopt.so
/usr/pkg/lib/libpopt.so.0
/usr/pkg/lib/libpopt.so.0.0.0

$ ls -l work/.buildlink/lib/libpopt.*
lrwxrwxrwx 1 reed reed  22 2007-05-12 17:11 work/.buildlink/lib/libpopt.a -> /usr/pkg/lib/libpopt.a
-rw-r--r-- 1 reed reed 878 2007-05-12 17:11 work/.buildlink/lib/libpopt.la
lrwxrwxrwx 1 reed reed  23 2007-05-12 17:11 work/.buildlink/lib/libpopt.so -> /usr/pkg/lib/libpopt.so
lrwxrwxrwx 1 reed reed  25 2007-05-12 17:11 work/.buildlink/lib/libpopt.so.0 -> /usr/pkg/lib/libpopt.so.0
lrwxrwxrwx 1 reed reed  29 2007-05-12 17:11 work/.buildlink/lib/libpopt.so.0.0.0 -> /usr/pkg/lib/libpopt.so.0.0.0



  Jeremy C. Reed