-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

JonAlf Dyrland-Weaver wrote:
> On Oct 21, 2009, at 6:02 AM, Alexander Hansen wrote:
> 
>> Max Horn wrote:
>>>
>>> Am 21.10.2009 um 04:06 schrieb Alexander Hansen:
>>>
>>>> JonAlf Dyrland-Weaver wrote:
>>>>> Hello,
>>>>>
>>>>> I am running Snow Leopard on a MacBook Air, and am having a nagging
>>>>> problem while installing certain packages. I am using a fresh install
>>>>> of fink and when I try to install ddd I get the following error:
>>>>>
>>>>> checking whether compiling X headers requires -fpermissive... no
>>>>> checking for XOpenDisplay in -lX11... no
>>>>> configure: error: The X11 library '-lX11' could not be found.
>>>>>                  Please use the configure options '--x-includes=DIR'
>>>>>                  and '--x-libraries=DIR' to specify the X location.
>>>>>                  See the files 'config.log' and 'ddd/config.log'
>>>>>                  for further diagnostics.
>>>>> ### execution of ./configure failed, exit code 1
>>>>>
>>>>>
>>>>> I've tried to look up possible solutions, but I haven't found anything
>>>>> useful. Any help would be greatly appreciated.
>>>>>
>>>>> Thank you,
>>>>> -JonAlf
>>>>>
>>>>>
>>>> A number of packages have needed updates due to changes in Apple's X11
>>>> during the 10.5 era (the removal of xmkmf).  These haven't all been
>>>> fixed  yet.
>>>>
>>>> The maintainer should be able to fix this, especially since the package
>>>> was kind enough to say how to do that.
>>>>
>>>
>>> The maintainer is willing to do that, but the package only says how to
>>> set the X11 paths, not were those can be found on 10.6 :). So if
>>> somebody provides this data to him, he will consider this. Maybe it is
>>> just the same as in 10.5 ? He wouldn't know, not having access to any
>>> 10.6 system.
>>>
>>>
>>> Cheers,
>>> The maintainer ;)
>>>
>> --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
>>
>> This is the standard prescription that we've generally stuck in the
>> ConfigureParams for 10.5, and it should work for 10.6, and also doesn't
>> require a separate package for 10.4.
>>
>> Although, that being said, after I sent my reply I found that I was able
>> to build the package on 10.5 even with xmkmf out of the way.
>>
>>
>> JonAlf:  for confirmation, could you check the config.log files in the
>> ddd build directory
>> (/sw/src/fink.build/ddd-3.3.12-1/ddd-3.3.12/config.log, and possibly
>> /sw/src/fink.build/ddd-3.3.12-1/ddd-3.3.12/ddd/config.log) to see what's
>> actually getting run to detect libX11 and what the error message is.
> 
> I looked at my config.log and saw the following:
> 
> configure:26130: g++ -o conftest.exe -g -O2 -fpermissive -I/sw/include
> -L/sw/lib conftest.cpp -lX11  >&5
> ld: library not found for -lX11
> 
> 
> I also noticed the same kind of error with different X libraries:
> 
> configure:27314: g++ -o conftest.exe -g -O2 -fpermissive -I/sw/include
> -LNONE -L/sw/lib conftest.cpp -lXext  -lX11   >&5
> ld: library not found for -lXext
> i have similar error for -lXmu, -lXt
> 
> Not the same problem, but had to do with X and I wasn't sure if it was
> related:
> ld: warning: in /opt/local/lib/libXaw.dylib, file is not of required
> architecture
> 
> 
> I hope this is helpful, I've been using macports for a while but until
> moving to 10.6 never had to dive into the config logs and poke around.
> If you need any other information I'd be happy to supply it.
> 
> Thanks,
> -JonAlf
> 
> 
> 

Don't ask us about anything from Macports. :-)

The fact that there's no "-L/usr/X11/lib" or "-L/usr/X11R6/lib" on those
lines is pretty suspicious. Let's see what you get from

        fink dumpinfo -fenv ddd | grep X11

In my case (10.5), I get

$ fink dumpinfo -fenv ddd | grep X11
 
MANPATH=/sw/share/man:/usr/share/man:/usr/X11/man:/sw/lib/perl5/5.8.8/man:/usr/X11R6/man:/sw/lib/perl5-core/5.10.0/man:/sw/lib/perl5/5.10.0/man:/sw/lib/perl5-core/5.8.6/man:/sw/lib/perl5/5.8.6/man
 
PATH=/sw/var/lib/fink/path-prefix-g++-4.0:/sw/bin:/sw/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin

        
For Max:  even though the package builds for me, it's probably worth
modifying the ConfigureParams, because the X11 detection looks a little
sketchy as-is on a modern X11:

...
checking for X... no
checking whether libXext is in the standard X library path... no
checking whether libXp is in the standard X library path... no
checking whether libXmu is in the standard X library path... no
checking for Motif... libraries /sw/lib, headers in default path
checking for Xpm... libraries /usr/X11/lib, headers in default path
checking for Athena... libraries in default path, headers in default path
checking whether compiling X headers requires -fpermissive... no
checking for XOpenDisplay in -lX11... yes
checking for _Xlcmbcurmax in -lXintl... no
checking for shmap in -lipc... no
checking for XtToolkitInitialize in -lXt... yes
checking for XShapeQueryVersion in -lXext... yes
checking for XmuCvtStringToOrientation in -lXmu... yes
checking for XpmCreatePixmapFromXpmImage in -lXpm... yes
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking xpm.h usability... no
checking xpm.h presence... no
checking for xpm.h... no
...

- --
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrfTZkACgkQB8UpO3rKjQ95XQCffe32gNuteZ1+0zN5Kp9vrz16
ZsgAnj+kPzdI/kMUNsWT/Sj7euUMToVq
=UzA6
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to