Gnome won't compile: cannot find -lpcre

walt wa1ter at myrealbox.com
Tue Nov 27 08:58:44 PST 2007


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.





More information about the Bugs mailing list