pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: to compile x11/tk under Mac OS X 10.5.2 (for math/maxima)



Bernd Limbach schrieb:
Hi all,

I guess this is really simple, but I cannot get tk to compile under Mac OS X 10.5.2 with pkgsrc-current:

--------8<--------
Scale.o .libs/tkUnixScrlbr.o .libs/tkUnixSelect.o .libs/tkUnixSend.o .libs/tkUnixWm.o .libs/tkUnixXId.o -lpthread -lX11 -L/Users/bernd/pkgsrc/x11/tk/work/.buildlink/lib -ltclstub84 -framework CoreFoundation -install_name /Users/bernd/pkg/lib/libtk84.1.dylib -compatibility_version 2 -current_version 2.0
ld: library not found for -lX11
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /Users/bernd/pkgsrc/x11/tk/work/tk8.4.16/unix
*** Error code 1
--------8<--------

If I see this correctly, the linker does not find a library (libX11.dylib or libX11.a ?) to link against. This should be linked against native X11, which is located under /usr/X11 and also there.

--------8<--------
himmerich:lib bernd$ ls -al libX11*
lrwxr-xr-x 1 root wheel 14 Dec 1 17:32 libX11.6.2.0.dylib -> libX11.6.dylib
-rwxr-xr-x  1 root  wheel  4608240 Dec  6 03:33 libX11.6.dylib
lrwxr-xr-x 1 root wheel 14 Dec 1 17:32 libX11.dylib -> libX11.6.dylib
-rwxr-xr-x  1 root  wheel      863 Sep  9 07:34 libX11.la
--------8<--------

Am I missing something Mac specific?
Can somebody please enlight me what needs to be done?


Interesting what can be found on the net, if the right approach is chosen...

Does my description fit to this?

http://osdir.com/ml/netbsd.devel.pkgsrc.user/2006-05/msg00003.html

If yes, my question would be, what would be in pkgtools/x11-links/work/.buildlink/lib ?

Should there be a link to the native -lfoo?

Thanks, Bernd


Home | Main Index | Thread Index | Old Index