Subject: Re: Compiling gnumeric on Darwin 6.6 - gtk fails (rpath related?)
To: None <tech-pkg@netbsd.org>
From: Anders Andersen <aa@computer.org>
List: tech-pkg
Date: 05/27/2003 00:58:30
Sorry about this reply to my own message, but my problem with gtk seems
to be related to the following post a couple of days ago:

  http://mail-index.netbsd.org/tech-pkg/2003/05/22/0014.html


>>> Any ideas?  I did a "cvs co" of the pkgsrc this morning.  I also
>>> installed the following pkgsrc bootstrap stuff (and did the magic
>>> explained in the different README files):
>> 
>> I'm not sure what the real problem is, but it seems that:
>>  - config.{guess,sub} are old
>>  - pthread.buildlink2.mk does not work with darwin
>>  - something wrong in libtool
>> at devel/glib.
>> 
>> If you are in a hurry to build glib, please try this:
>> 0: cd pkgsrc/devel/glib/
> (...)
> 
> Thanks, this worked.  Glib compiled and installed OK.  The next
> problem seems to be with gtk.  This is the result of configure:
> 
> ===> Registering installation for x11-links-0.12
> ===> Returning to build of gtk+-1.2.10nb4
> ===> Patching for gtk+-1.2.10nb4
> ===> Applying pkgsrc patches for gtk+-1.2.10nb4
> ===> Buildlinking for gtk+-1.2.10nb4
> ===> Configuring for gtk+-1.2.10nb4
> creating cache ./config.cache
> 
> (no problems for a while, then...)
> 
> checking for IceConnectionNumber in -lICE... yes
> checking for XOpenDisplay in -lX11... no
> configure: error: *** libX11 not found. Check 'config.log' for more details.
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/x11/gtk
> *** Error code 1
> 
> (...)
> 
> The config.log file (in x11/gtk/work/gtk+-1.2.10) contains the following:
> 
> configure:5393: checking for XOpenDisplay in -lX11
> configure:5412: gcc -o conftest -O2 -I/usr/pkg/include -I/usr/X11R6/include
> -Wall  -I/usr/X11R6/include  -no-cpp-precomp -I/usr/pkg/include
> -I/usr/X11R6/include -L/usr/pkg/lib -L/usr/X11R6/lib
> -Wl,darwin_has_no_rpath/usr/X11R6/lib -L/usr/X11R6/lib
> -L/usr/X11R6/lib conftest.c -lX11  -L/usr/pkg/lib -lintl
> -L/usr/pkg/lib -liconv -L/usr/pkg/lib -lintl -L/usr/pkg/lib -liconv 1>&5
> ld: can't open: darwin_has_no_rpath/usr/X11R6/lib (No such file or
> directory, errno = 2)
> 
> 
> The problem seems to be related to "darwin_has_no_rpath"?  X11 is installed
> in /usr/X11R6.  Any ideas?
> 
> (aa)