Subject: Re: Error building gtk2 from pkgsrc...
To: Jeremy C. Reed <reed@reedmedia.net>
From: Adam K Kirchhoff <adamk@voicenet.com>
List: tech-pkg
Date: 11/08/2004 14:33:20
Jeremy C. Reed wrote:

>On Mon, 8 Nov 2004, Adam K Kirchhoff wrote:
>
>  
>
>>checking for XOpenDisplay in -lX11... no
>>configure: error: *** libX11 not found. Check 'config.log' for more details.
>>    
>>
>
>Look also in the config.log for the specific error.
>
>  
>
configure:28002: gcc -o conftest -O2 -I/usr/pkg/include -I/usr/include 
-I/usr/pkg/include/freetype2 -Wall -I
/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -W
l,-R/usr/lib -L/usr/pkg/xorg/lib -Wl,-R/usr/pkg/xorg/lib conftest.c 
-lX11  -Wl,-R/usr/pkg/lib -Wl, -L/usr/pk
g/lib -L/usr/pkg/xorg/lib -lXft -lfreetype -lXrender -lX11 -lfontconfig 
-lX11 -lintl  >&5
ld: cannot open : No such file or directory
configure:28008: $? = 1
configure: failed program was:

<snip>

configure:28034: result: no
configure:28039: error: *** libX11 not found. Check 'config.log' for 
more details.

I can post the failed program, if you think it's important.  That's the 
only reference I see to libX11

>>[ root@sorrow - /usr/pkgsrc/x11/gtk2 ]: ls -l /usr/pkg/xorg/lib/libX11.*
>>-rw-r--r--  1 root  wheel  1318984 Nov  8 08:01 /usr/pkg/xorg/lib/libX11.a
>>lrwxr-xr-x  1 root  wheel       11 Nov  8 08:01
>>/usr/pkg/xorg/lib/libX11.so -> libX11.so.6
>>lrwxr-xr-x  1 root  wheel       13 Nov  8 08:01
>>/usr/pkg/xorg/lib/libX11.so.6 -> libX11.so.6.2
>>-rwxr-xr-x  1 root  wheel   875577 Nov  8 08:01
>>/usr/pkg/xorg/lib/libX11.so.6.2
>>    
>>
>
>Is your mk.conf setup to use the xorg?
>X11_TYPE=xorg
>
>  
>
Yep. 

>Did the xorg-libs get buildlinked?  (ls -lda work/.buildlink/xorg*)
>
>  
>
[ root@sorrow - /usr/pkgsrc/x11/gtk2 ]: ls -l 
work/.buildlink/.buildlink_xorg-libs_done
-rw-r--r--  1 root  wheel  60023 Nov  8 12:02 
work/.buildlink/.buildlink_xorg-libs_done
[ root@sorrow - /usr/pkgsrc/x11/gtk2 ]: ls -l 
work/.buildlink/lib/libX11.*             
lrwxrwxrwx  1 root  wheel  26 Nov  8 12:02 work/.buildlink/lib/libX11.a 
-> /usr/pkg/xorg/lib/libX11.a
lrwxrwxrwx  1 root  wheel  27 Nov  8 12:02 work/.buildlink/lib/libX11.so 
-> /usr/pkg/xorg/lib/libX11.so
lrwxrwxrwx  1 root  wheel  29 Nov  8 12:02 
work/.buildlink/lib/libX11.so.6 -> /usr/pkg/xorg/lib/libX11.so.6
lrwxrwxrwx  1 root  wheel  31 Nov  8 12:02 
work/.buildlink/lib/libX11.so.6.2 -> /usr/pkg/xorg/lib/libX11.so.6.2

That looks right to me, but I'm not hugely familiar with pkgsrc :-) 

Adam