DragonFly bugs List (threaded) for 2007-11
DragonFly BSD
DragonFly bugs List (threaded) for 2007-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Gnome won't compile: cannot find -lpcre


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Tue, 27 Nov 2007 08:58:44 -0800

On Tue, 27 Nov 2007, Stephane Russell wrote:

> Hi, I'm really having a hard time compiling gnome with pkgsrc 2007Q3.
> Most problems are minors, but I'm getting this one that's less obvious:
>
> /usr/libexec/binutils217/elf/ld: cannot find -lpcre
>
> The pcgr package is well installed and /usr/pkg/lib is added in the ld
> library list in /etc/rc.conf. It looks like this "ld" from binutils
> ignores it...

>  -L/usr/obj/pkgsrc/x11/gtk2/work/.buildlink/lib
                              ^^^^^^^^^^^^^^^^^^^

The pkgsource build system does not look in /usr/pkg/lib during the
compile.  It looks in the .buildlink/lib directory instead, as I
marked above.  Now, the real question is whether libpcre appears
in your .buildlink/lib directory.

Here is mine, for example:

~# ls -l  /usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpcre.*
/usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpcre.a -> /usr/pkg/lib/libpcre.a
/usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpcre.la
/usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpcre.so -> /usr/pkg/lib/libpcre.so
/usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpcre.so.0 -> /usr/pkg/lib/libpcre.so.0
/usr/pkgsrc/x11/gtk2/work/.buildlink/lib/libpcre.so.0.0.1 -> /usr/pkg/lib/libpcre.so.0.0.1

If those links are not created properly during the buildlink phase,
the compile will fail later on.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]