pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
cannot find -lX11
Greetings,
I'm new to pkgsrc (I've only been playing around with it for a few days)
but I seem to have run into a problem with it on an x86_64 SLES 10
(Linux) system. From various searches, it looks like this problem has
cropped up before, but I haven't seen a solution.
For whatever reason, the build process does not seem to be correctly linking
against libX11.so. I note for example that ~/pkg/share/x11-links/ has lib/
directory containing symlinks to the systems's 32-bit libraries, but there isn't
a lib64 directory.
libtool: compile: gcc -DHAVE_CONFIG_H -I.
-I/nobackupp10/imorgan/pkgsrc/graphics/aalib/work/.buildlink/include -Wno-error
-Wno-format -fno-builtin
-I/nobackupp10/imorgan/pkgsrc/graphics/aalib/work/.x11-buildlink/include -c
aarecfunc.c -o aarecfunc.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -Wno-error -Wno-format -fno-builtin
-I/home4/imorgan/pkg/include -I/usr/X11R6/include -L/home4/imorgan/pkg/lib
-Wl,-R/home4/imorgan/pkg/lib -L/usr/X11R6/lib64 -Wl,-R/usr/X11R6/lib64 -o
libaa.la -rpath /home4/imorgan/pkg/lib -L/home4/imorgan/pkg/lib
-Wl,-R/home4/imorgan/pkg/lib -L/usr/X11R6/lib64 -Wl,-R/usr/X11R6/lib64
-version-info 1:4:0 aafont.lo aafonts.lo aavyhen.lo aamktabl.lo aamem.lo
aaprintf.lo aahelp.lo aaslnkbd.lo aaslang.lo aafastre.lo aalinux.lo
aalinuxkbd.lo aax.lo aaxkbd.lo aaxmouse.lo fontgl.lo font16.lo font14.lo
fontx16.lo fontx13.lo fontx13b.lo fontcour.lo aarec.lo font9.lo font8.lo
fontline.lo aacurses.lo aacurkbd.lo aacurmou.lo aalib.lo aaflush.lo
aarender.lo aaout.lo aain.lo aaedit.lo aaregist.lo aakbdreg.lo aagpm.lo
aamoureg.lo aasave.lo aastdout.lo aastdin.lo aaparse.lo aaimgwidth.lo
aaimgheight.lo aascrwidth.lo aascrheight.lo aammwidth.lo aammheight.lo
aaimage.lo aatext.lo aacurrfnt.lo aaattrs.lo aaputpixel.lo aarecfunc.lo -lm
-L/usr/X11R6/lib64 -lX11
libtool: link: gcc -shared .libs/aafont.o .libs/aafonts.o .libs/aavyhen.o
.libs/aamktabl.o .libs/aamem.o .libs/aaprintf.o .libs/aahelp.o .libs/aaslnkbd.o
.libs/aaslang.o .libs/aafastre.o .libs/aalinux.o .libs/aalinuxkbd.o .libs/aax.o
.libs/aaxkbd.o .libs/aaxmouse.o .libs/fontgl.o .libs/font16.o .libs/font14.o
.libs/fontx16.o .libs/fontx13.o .libs/fontx13b.o .libs/fontcour.o .libs/aarec.o
.libs/font9.o .libs/font8.o .libs/fontline.o .libs/aacurses.o .libs/aacurkbd.o
.libs/aacurmou.o .libs/aalib.o .libs/aaflush.o .libs/aarender.o .libs/aaout.o
.libs/aain.o .libs/aaedit.o .libs/aaregist.o .libs/aakbdreg.o .libs/aagpm.o
.libs/aamoureg.o .libs/aasave.o .libs/aastdout.o .libs/aastdin.o
.libs/aaparse.o .libs/aaimgwidth.o .libs/aaimgheight.o .libs/aascrwidth.o
.libs/aascrheight.o .libs/aammwidth.o .libs/aammheight.o .libs/aaimage.o
.libs/aatext.o .libs/aacurrfnt.o .libs/aaattrs.o .libs/aaputpixel.o
.libs/aarecfunc.o
-L/nobackupp10/imorgan/pkgsrc/graphics/aalib/work/.buildlink/lib
-L/nobackupp10/imorgan/pkgsrc/graphics/aalib/work/.x11-buildlink/lib64 -lm
-lX11 -Wl,-R/home4/imorgan/pkg/lib -Wl,-soname -Wl,libaa.so.1 -o
.libs/libaa.so.1.0.4
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
*** Error code 1
Stop.
bmake: stopped in
/nobackupp10/imorgan/pkgsrc/graphics/aalib/work/aalib-1.4.0/src
*** Error code 1
Stop.
bmake: stopped in /nobackupp10/imorgan/pkgsrc/graphics/aalib/work/aalib-1.4.0
*** Error code 1
Stop.
bmake: stopped in /nobackup/imorgan/pkgsrc/graphics/aalib
*** Error code 1
Stop.
bmake: stopped in /nobackup/imorgan/pkgsrc/graphics/aalib
Replacing the symlinks in work/.buildlink/lib with ones pointing to the 64-bit
libraries and (for good measure) adding a link for libX11.so does the trick, but
I would think there should be a better way.
Is there anything I can add to the mk.conf (or some other file) to address this?
--
Iain Morgan
PS: My apologies for raising an issue which appears to have been raised beofre.
Home |
Main Index |
Thread Index |
Old Index