glkp java problem when building. I'm using sun-jdk-1.4.2.03 Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~x86" emerge glpk Actual Results: [snip] gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.2\" -DSTDC_HEADERS=1 -I. -I. -I../include -mcpu=athlon -O3 -pipe -funroll-loops -c glpstr.c gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.2\" -DSTDC_HEADERS=1 -I. -I. -I../include -mcpu=athlon -O3 -pipe -funroll-loops -c glptsp.c rm -f libglpk.a ar cru libglpk.a glpavl.o glpchol.o glpdmp.o glphbsm.o glpies1.o glpies2.o glpies3.o glpiet.o glpinv.o glpios1.o glpios2.o glpios3.o glpipm.o glplib1a.o glplib1b .o glplib2.o glplib3.o glplib4.o glplpp1.o glplpp2.o glplpt.o glplpx1.o glplpx2.o glplpx3.o glplpx4.o glplpx5.o glplpx6a.o glplpx6b.o glplpx6c.o glplpx6d.o glplp x7.o glplpx8a.o glplpx8b.o glplpx8c.o glplpx8d.o glpluf.o glpmat.o glpmip1.o glpmpl1.o glpmpl2.o glpmpl3.o glpmpl4.o glpmps.o glpqmd.o glpspm.o glpspx1.o glpspx2 .o glpstr.o glptsp.o ranlib libglpk.a make[1]: Leaving directory `/tmp/portage/glpk-4.2/work/glpk-4.2/src' Making all in examples make[1]: Entering directory `/tmp/portage/glpk-4.2/work/glpk-4.2/examples' gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.2\" -DSTDC_HEADERS=1 -I. -I. -I../include -mcpu=athlon -O3 -pipe -funroll-loops -c glpsol.c gcc -mcpu=athlon -O3 -pipe -funroll-loops -o glpsol glpsol.o ../src/libglpk.a -lm make[1]: Leaving directory `/tmp/portage/glpk-4.2/work/glpk-4.2/examples' make[1]: Entering directory `/tmp/portage/glpk-4.2/work/glpk-4.2' make[1]: Nothing to be done for `all-am'. make[1]: Leaving directory `/tmp/portage/glpk-4.2/work/glpk-4.2' java (cd java; make) make[1]: Entering directory `/tmp/portage/glpk-4.2/work/glpk-4.2/contrib/jni/java' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. javac -d ./ GlpkHookIFC.java GlpkSolverBnds.java GlpkSolverInfo.java GlpkSolver.java GlpkSolverKktConditions.java GlpkSolverLoader.java GlpkSolverMatElement.java GlpkSolverObjChg.java GlpkSolverPoint.java jar cf glpk.jar org javah -classpath ./ org.gnu.glpk.GlpkSolver make[1]: Leaving directory `/tmp/portage/glpk-4.2/work/glpk-4.2/contrib/jni/java' (cd c; make) make[1]: Entering directory `/tmp/portage/glpk-4.2/work/glpk-4.2/contrib/jni/c' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gcc -Wall -I../java -I/usr/local/include -I/opt/sun-jdk-1.4.2.03/include -I`find /opt/sun-jdk-1.4.2.03/include -name jni_md.h | sed -e "s/\/jni_md.h//"` -c -o glpk.o glpk.c glpk.c:30:18: glpk.h: No such file or directory glpk.c:37: error: syntax error before "LPX" glpk.c: In function `put_lpx': glpk.c:38: error: `env' undeclared (first use in this function) glpk.c:38: error: (Each undeclared identifier is reported only once [snip] glpk.c: In function `Java_org_gnu_glpk_GlpkSolver_estimObjChg': glpk.c:1235: error: `LPX' undeclared (first use in this function) glpk.c:1235: error: `lp' undeclared (first use in this function) glpk.c:1248: warning: implicit declaration of function `lpx_estim_obj_chg' make[1]: *** [glpk.o] Error 1 make[1]: Leaving directory `/tmp/portage/glpk-4.2/work/glpk-4.2/contrib/jni/c' make: *** [libglpk_jni.so] Error 2 !!! ERROR: app-sci/glpk-4.2 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! emake java failed Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-rc2-gentoo) ================================================================= System uname: 2.6.3-rc2-gentoo i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon -O3 -pipe -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.inode.at/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad matrox mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Looks like it assumes glpk is already installed. No good idea. Fixed version should soon be in portage, thanks for the hint.
*** Bug 46955 has been marked as a duplicate of this bug. ***