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
You were right, pcre was not a dependency, so it wasn't added in the
buildlink process. pcre was included in the gtk2 link with a "-lpcre"
statement, for a reason I still don't understand. I could'nt find why
that flag is added, since nothing in gtk2 requires it, not even in the
gtk2 pkgsrc build files.
Anyway, I solved the problem by adding pcre as a dependency in gtk2, and
everything is fine since. If somebody ever finds why this flag was
added, please advise me.
Thanks for the help.
SR
walt a écrit :
> 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]