Dear [email protected] I get an error when executing make, truing to build OpenJDK-1.7.0.45/IcedTea-2.4.3 as per Beyond Linux® From Scratch - Version 2013-11-29. http://www.linuxfromscratch.org/blfs/view/svn/general/openjdk.html ".../usr/bin/ld: cannot find -lX11" I have an LFS/BLFS system with X11, Qt and KDE. I have X11 in /usr/X11. uname -a Linux lfs 3.10.1 #6 SMP Sat Sep 14 18:20:45 CEST 2013 x86_64 GNU/Linux ... unset JAVA_HOME && ./autogen.sh && ./configure --with-jdk-home=/opt/OpenJDK-1.7.0.45-bin \ --with-version-suffix=blfs \ --enable-nss \ --enable-pulse-java \ --disable-system-kerberos \ --with-parallel-jobs=$(getconf _NPROCESSORS_ONLN) && make
... make[7]: Entering directory `/source/icedtea-2.4.3/openjdk- boot/jdk/make/launchers' ========================================================= LAUNCHER: policytool MAIN_CLASS: sun.security.tools.policytool.PolicyTool ALL_ARGS: -J-ms8m sun.security.tools.policytool.PolicyTool ========================================================= Rebuilding /source/icedtea-2.4.3/openjdk.build-boot/bin/policytool because of /source/icedtea-2.4.3/openjdk.build- boot/tmp/sun/launcher/policytool/obj64/main.o gcc -o /source/icedtea-2.4.3/openjdk.build-boot/bin/policytool -Xlinker -O1 - Xlinker -version-script=../java/main/java/mapfile-amd64 -Xlinker -z -Xlinker defs -L/source/icedtea-2.4.3/openjdk.build-boot/lib/amd64 -Wl,-soname=lib.so -L /source/icedtea-2.4.3/openjdk.build-boot/lib/amd64/jli -Wl,--allow-shlib- undefined -Wl,-rpath -Wl,\$ORIGIN/../lib/amd64/jli -Wl,-rpath -Wl, \$ORIGIN/../lib/amd64 -Wl,-rpath -Wl,\$ORIGIN/../jre/lib/amd64 \ /source/icedtea-2.4.3/openjdk.build- boot/tmp/sun/launcher/policytool/obj64/main.o -lpthread -L/usr/X11R6//lib64 - lX11 -ljli -ldl -lc /usr/bin/ld: cannot find -lX11 collect2: error: ld returned 1 exit status make[7]: *** [/source/icedtea-2.4.3/openjdk.build-boot/bin/policytool] Error 1 make[7]: Leaving directory `/source/icedtea-2.4.3/openjdk- boot/jdk/make/launchers' make[6]: *** [build] Error 2 make[6]: Leaving directory `/source/icedtea-2.4.3/openjdk- boot/jdk/make/sun/security/tools' make[5]: *** [all] Error 1 make[5]: Leaving directory `/source/icedtea-2.4.3/openjdk- boot/jdk/make/sun/security' make[4]: *** [all] Error 1 make[4]: Leaving directory `/source/icedtea-2.4.3/openjdk-boot/jdk/make/sun' make[3]: *** [all] Error 1 make[3]: Leaving directory `/source/icedtea-2.4.3/openjdk-boot/jdk/make' make[2]: *** [jdk-build] Error 2 make[2]: Leaving directory `/source/icedtea-2.4.3/openjdk-boot' make[1]: *** [build_product_image] Error 2 make[1]: Leaving directory `/source/icedtea-2.4.3/openjdk-boot' make: *** [stamps/icedtea-boot.stamp] Error 2 root@lfs /source/icedtea-2.4.3# I also notice the "-L/usr/X11R6//lib64" statement in the output above, before /usr/bin/ld: cannot find -lX11 Best regards, Magnus Larsson -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
