Re: [Glpk-java-help] Error on make check - glp_error_hook
Java language binding for the GNU Linear Programming Kit (GLPK)
Brought to you by:
xypron
|
From: Alex S. <al...@ho...> - 2016-02-25 16:55:02
|
Heinrich, I followed your instructions, now give me a new error /bin/sh: line 1: 4458 Aborted (core dumped) java -Djava.library.path=../../swig/.libs -classpath ../../swig/glpk-java.jar:. Gmpl marbles.modmake[1]: *** [check] Error 134make[1]: Leaving directory `/root/libglpk-java-1.3.1/swig'make: *** [check-recursive] Error 1 But I try to install and work fine. About remove the old glpk it is funny, because on GLPK-java web site says that the prerequisites should be installed GLPK -devel which has glpk dependencehttp://glpk-java.sourceforge.net/gettingStarted.htmlsudo yum install gcc glpk-devel java-1.7.0-openjdk-devel libtool swig But anyway, I really appreciated your help and thank you. > Subject: Re: [Glpk-java-help] Error on make check - glp_error_hook > To: al...@ho...; glp...@li... > From: xyp...@gm... > CC: xyp...@gm... > Date: Wed, 24 Feb 2016 18:32:31 +0100 > > Hello Alex, > > the error indicates that the glpk library referenced is very old. > > Please, uninstall the glpk library delivered with CentOS using > yum remove. > > Fedora based system do not include /usr/local/lib in the library search > path. > > If your GLPK-4.58 library is installed in /usr/local, please, use > > export LD_LIBRARY_PATH=/usr/local/lib > > Best regards > > Heinrich Schuchardt > > On 24.02.2016 16:06, Alex Silva wrote: > > Hi , > > > > I'm trying to compile libglpk-java-1.3.1 with glpk-4.58 or glpk-5.57 in > > CentOS linux, the glpk-4.5x was sucessfully installed. > > > > On make check Java: symbol lookup error: > > /root/libglpk-java-1.3.1/swig/.libs/libglpk_java.so.36.2.0: undefined > > symbol: glp_error_hook > > > > Any one know what is wrong ? Thanks everybody > > > > # ./configure --enable-libpath -> ok or just ./configure --> same > > error on make check > > # make -> ok > > > > # make check -> **Error I stop here > > # make install > > > > # ldconfig > > > > The Output > > > > [root@... libglpk-java-1.3.1]# ./configure --enable-libpath checking for > > a BSD-compatible install... /usr/bin/install -c checking whether build > > environment is sane... yes checking for a thread-safe mkdir -p... > > /bin/mkdir -p checking for gawk... gawk checking whether make sets > > $(MAKE)... yes checking build system type... x86_64-unknown-linux-gnu > > checking host system type... x86_64-unknown-linux-gnu checking how to > > print strings... printf checking for style of include used by make... > > GNU checking for gcc... gcc checking whether the C compiler works... yes > > checking for C compiler default output file name... a.out checking for > > suffix of executables... checking whether we are cross compiling... no > > checking for suffix of object files... o checking whether we are using > > the GNU C compiler... yes checking whether gcc accepts -g... yes > > checking for gcc option to accept ISO C89... none needed checking > > dependency style of gcc... none checking for a sed that does not > > truncate output... /bin/sed checking for grep that handles long lines > > and -e... /bin/grep checking for egrep... /bin/grep -E checking for > > fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld > > checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- > > or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name > > lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s > > works... yes checking the maximum length of command line arguments... > > 1966080 checking whether the shell understands some XSI constructs... > > yes checking whether the shell understands "+="... yes checking how to > > convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu > > format... func_convert_file_noop checking how to convert > > x86_64-unknown-linux-gnu file names to toolchain format... > > func_convert_file_noop checking for /usr/bin/ld option to reload object > > files... -r checking for objdump... objdump checking how to recognize > > dependent libraries... pass_all checking for dlltool... no checking how > > to associate runtime and link libraries... printf %s\n checking for > > ar... ar checking for archiver @FILE support... @ checking for strip... > > strip checking for ranlib... ranlib checking command to parse > > /usr/bin/nm -B output from gcc object... ok checking for sysroot... no > > checking for mt... no checking if : is a manifest tool... no checking > > how to run the C preprocessor... gcc -E checking for ANSI C header > > files... yes checking for sys/types.h... yes checking for sys/stat.h... > > yes checking for stdlib.h... yes checking for string.h... yes checking > > for memory.h... yes checking for strings.h... yes checking for > > inttypes.h... yes checking for stdint.h... yes checking for unistd.h... > > yes checking for dlfcn.h... yes checking for objdir... .libs checking if > > gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to > > produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... > > yes checking if gcc static flag -static works... no checking if gcc > > supports -c -o file.o... yes checking if gcc supports -c -o file.o... > > (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) > > supports shared libraries... yes checking whether -lc should be > > explicitly linked in... no checking dynamic linker characteristics... > > GNU/Linux ld.so checking how to hardcode library paths into programs... > > immediate checking whether stripping libraries is possible... yes > > checking if libtool supports shared libraries... yes checking whether to > > build shared libraries... yes checking whether to build static > > libraries... yes checking for gcc... (cached) gcc checking whether we > > are using the GNU C compiler... (cached) yes checking whether gcc > > accepts -g... (cached) yes checking for gcc option to accept ISO C89... > > (cached) none needed checking dependency style of gcc... (cached) none > > checking for gcc... yes checking whether ln -s works... yes checking for > > swig... /usr/bin/swig checking for javac... /usr/bin/javac checking for > > javadoc... /usr/bin/javadoc checking for jar... /usr/bin/jar checking > > for mvn... no configure: WARNING: Maven is missing checking whether to > > load GLPK library from java.library.path... yes checking glpk.h > > usability... yes checking glpk.h presence... yes checking for glpk.h... > > yes checking jni.h usability... yes checking jni.h presence... yes > > checking for jni.h... yes configure: CFLAGS = -g -O2 configure: CPPFLAGS > > = -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include/linux configure: > > LDFLAGS = configure: creating ./config.status config.status: creating > > Makefile config.status: creating doc/Makefile config.status: creating > > swig/Makefile config.status: creating config.h config.status: config.h > > is unchanged config.status: executing depfiles commands config.status: > > executing libtool commands [root@... libglpk-java-1.3.1]# > > > > [root@... libglpk-java-1.3.1]# make make all-recursive make[1]: Entering > > directory `/root/libglpk-java-1.3.1' Making all in doc make[2]: Entering > > directory `/root/libglpk-java-1.3.1/doc' gzip -c libglpk-java.3 > > > libglpk-java.3.gz make[2]: Leaving directory > > `/root/libglpk-java-1.3.1/doc' Making all in swig make[2]: Entering > > directory `/root/libglpk-java-1.3.1/swig' mkdir -p target/classes mkdir > > -p target/apidocs mkdir -p src/c mkdir -p src/main/java/org/gnu/glpk cp > > *.java src/main/java/org/gnu/glpk /usr/bin/swig > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include/linux -I/usr/include > > -I/usr/local/include -java -package org.gnu.glpk \ -o src/c/glpk_wrap.c > > -outdir src/main/java/org/gnu/glpk glpk.i /usr/local/include/glpk.h:194: > > Warning(451): Setting a const char * variable may leak memory. /bin/sh > > ../libtool --mode=compile gcc -g -O2 > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include/linux -I. -c -fPIC \ > > src/c/glpk_wrap.c libtool: compile: gcc -g -O2 > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include/linux -I. -c -fPIC > > src/c/glpk_wrap.c -fPIC -DPIC -o .libs/glpk_wrap.o libtool: compile: gcc > > -g -O2 -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include > > -I/usr/lib/jvm/java-1.7.0-openjdk.x86_64/include/linux -I. -c -fPIC > > src/c/glpk_wrap.c -o glpk_wrap.o >/dev/null 2>&1 /bin/sh ../libtool > > --mode=link \ gcc -version-info 38:0:2 -revision 1.3.1 \ -g -O -o > > libglpk_java.la -rpath /usr/local/lib/jni glpk_wrap.lo \ -lglpk libtool: > > link: rm -fr .libs/libglpk_java.a .libs/libglpk_java.la > > .libs/libglpk_java.lai .libs/libglpk_java.so .libs/libglpk_java.so.36 > > .libs/libglpk_java.so.36.2.0 libtool: link: gcc -shared -fPIC -DPIC > > .libs/glpk_wrap.o -lglpk -O -Wl,-soname -Wl,libglpk_java.so.36 -o > > .libs/libglpk_java.so.36.2.0 libtool: link: (cd ".libs" && rm -f > > "libglpk_java.so.36" && ln -s "libglpk_java.so.36.2.0" > > "libglpk_java.so.36") libtool: link: (cd ".libs" && rm -f > > "libglpk_java.so" && ln -s "libglpk_java.so.36.2.0" "libglpk_java.so") > > libtool: link: ar cru .libs/libglpk_java.a glpk_wrap.o libtool: link: > > ranlib .libs/libglpk_java.a libtool: link: ( cd ".libs" && rm -f > > "libglpk_java.la" && ln -s "../libglpk_java.la" "libglpk_java.la" ) > > /usr/bin/javadoc -locale en_US \ -encoding UTF-8 -charset UTF-8 > > -docencoding UTF-8 \ -sourcepath ./src/main/java org.gnu.glpk -d > > ./target/apidocs Loading source files for package org.gnu.glpk... > > Constructing Javadoc information... Standard Doclet version 1.7.0_95 > > Building tree for all the packages and classes... Generating > > ./target/apidocs/org/gnu/glpk/glp_arc.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_attr.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_bfcp.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_cpxcp.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_graph.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_iocp.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_iptcp.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_java_arc_data.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_java_vertex_data.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_mpscp.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_prob.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_smcp.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_tran.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_tree.html... Generating > > ./target/apidocs/org/gnu/glpk/glp_vertex.html... Generating > > ./target/apidocs/org/gnu/glpk/GLPK.html... Generating > > ./target/apidocs/org/gnu/glpk/GlpkCallback.html... Generating > > ./target/apidocs/org/gnu/glpk/GlpkCallbackListener.html... Generating > > ./target/apidocs/org/gnu/glpk/GLPKConstants.html... Generating > > ./target/apidocs/org/gnu/glpk/GlpkException.html... Generating > > ./target/apidocs/org/gnu/glpk/GLPKJNI.html... Generating > > ./target/apidocs/org/gnu/glpk/GlpkTerminal.html... Generating > > ./target/apidocs/org/gnu/glpk/GlpkTerminalListener.html... Generating > > ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_double.html... Generating > > ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_f_p_q_const__char_v_______void.html... > > Generating > > ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_f_p_struct_glp_tree_p_void__void.html... > > Generating > > ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_f_p_void__void.html... > > Generating > > ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_f_p_void_p_q_const__char__int.html... > > Generating ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_int.html... > > Generating ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_p_glp_vertex.html... > > Generating ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_size_t.html... > > Generating ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_va_list.html... > > Generating ./target/apidocs/org/gnu/glpk/SWIGTYPE_p_void.html... > > Generating ./target/apidocs/org/gnu/glpk/package-frame.html... > > Generating ./target/apidocs/org/gnu/glpk/package-summary.html... > > Generating ./target/apidocs/org/gnu/glpk/package-tree.html... Generating > > ./target/apidocs/constant-values.html... Generating > > ./target/apidocs/serialized-form.html... Building index for all the > > packages and classes... Generating > > ./target/apidocs/overview-tree.html... Generating > > ./target/apidocs/index-all.html... Generating > > ./target/apidocs/deprecated-list.html... Building index for all > > classes... Generating ./target/apidocs/allclasses-frame.html... > > Generating ./target/apidocs/allclasses-noframe.html... Generating > > ./target/apidocs/index.html... Generating > > ./target/apidocs/help-doc.html... /usr/bin/jar cf glpk-java-javadoc.jar > > -C ./target/apidocs . /usr/bin/jar cf glpk-java-sources.jar -C > > ./src/main/java . /usr/bin/javac -source 1.6 -target 1.6 -classpath > > ./src/main/java \ -d ./target/classes *.java warning: [options] > > bootstrap class path not set in conjunction with -source 1.6 1 warning > > /usr/bin/jar cf glpk-java.jar -C ./target/classes . make[2]: Leaving > > directory `/root/libglpk-java-1.3.1/swig' make[2]: Entering directory > > `/root/libglpk-java-1.3.1' make[2]: Leaving directory > > `/root/libglpk-java-1.3.1' make[1]: Leaving directory > > `/root/libglpk-java-1.3.1' [root@... libglpk-java-1.3.1]# > > > > > > [root@.. libglpk-java-1.3.1]# make check > > > > Making check in doc > > make[1]: Entering directory `/root/libglpk-java-1.3.1/doc' > > make[1]: Nothing to be done for `check'. > > make[1]: Leaving directory `/root/libglpk-java-1.3.1/doc' > > Making check in swig > > make[1]: Entering directory `/root/libglpk-java-1.3.1/swig' > > cd ../examples/java;/usr/bin/javac -source 1.6 -target 1.6 \ > > -classpath ../../swig/glpk-java.jar Gmpl.java > > warning: [options] bootstrap class path not set in conjunction with > > -source 1.6 > > 1 warning > > cd ../examples/java;java -Djava.library.path=../../swig/.libs \ > > -classpath ../../swig/glpk-java.jar:. Gmpl marbles.mod > > java: symbol lookup error: > > /root/libglpk-java-1.3.1/swig/.libs/libglpk_java.so.36.2.0: undefined > > symbol: glp_error_hook > > make[1]: *** [check] Error 127 > > make[1]: Leaving directory `/root/libglpk-java-1.3.1/swig' > > make: *** [check-recursive] Error 1 > > [root@... libglpk-java-1.3.1]# > > > > Any > > > > > > *Alex Silva* > > > > > > ------------------------------------------------------------------------------ > > Site24x7 APM Insight: Get Deep Visibility into Application Performance > > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > > Monitor end-to-end web transactions and take corrective actions now > > Troubleshoot faster and improve end-user experience. Signup Now! > > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > > > > > > > > _______________________________________________ > > Glpk-java-help mailing list > > Glp...@li... > > https://lists.sourceforge.net/lists/listinfo/glpk-java-help > > |