glpk-java-help Mailing List for GLPK for Java
Java language binding for the GNU Linear Programming Kit (GLPK)
Brought to you by:
xypron
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2015 |
Jan
(4) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
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 > > |
From: Heinrich S. <xyp...@gm...> - 2016-02-24 17:32:52
|
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 > |
From: Alex S. <al...@ho...> - 2016-02-24 15:06:28
|
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_hookAny 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 checkMaking check in docmake[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 swigmake[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.javawarning: [options] bootstrap class path not set in conjunction with -source 1.61 warningcd ../examples/java;java -Djava.library.path=../../swig/.libs \ -classpath ../../swig/glpk-java.jar:. Gmpl marbles.modjava: symbol lookup error: /root/libglpk-java-1.3.1/swig/.libs/libglpk_java.so.36.2.0: undefined symbol: glp_error_hookmake[1]: *** [check] Error 127make[1]: Leaving directory `/root/libglpk-java-1.3.1/swig'make: *** [check-recursive] Error 1[root@... libglpk-java-1.3.1]# Any Alex Silva |
From: Heinrich S. <xyp...@gm...> - 2015-04-10 00:28:15
|
<html> <head> </head> <body>Hello Mohammad,<br> <br> GLPK forJava 1.0.37 should be compiled against GLPK 4.55 as indicated in file ChangeLog.<br> <br> I suggest that you uninstall the old GLPK version, and build GLPK from the source.<br> <br> See ftp://<a href="http://ftp.gnu.org/gnu/glpk/glpk-4.55.tar.gz">ftp.gnu.org/gnu/glpk/glpk-4.55.tar.gz</a><br> <br> <br> <br> Best regards<br> <br> Heinrich Schuchardt<br><br><div class="gmail_quote"><br> <br> mohammad haghani <mkh...@ya...>schrieb:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div style="color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: HelveticaNeue , Helvetica Neue , Helvetica , Arial , Lucida Grande , sans-serif;font-size: 14.0px;"> <pre class="" id="yui_3_16_0_1_1428585471336_18308" style="margin-top: 0.0px;margin-bottom: 0.0px;padding: 15.0px;border-width: 0.0px 0.0px 0.0px 1.0px;border-left-style: solid;border-left-color: rgb(229,229,229);outline: 0.0px;font-size: 13.0px;vertical-align: baseline;background-color: transparent;font-family: monospace , sans-serif;overflow: auto;color: rgb(85,85,85);line-height: 18.0px;"> Hi, I'm trying to compile libglpk-java-1.0.37 on mac os x 10.10.1 but <span class="" id="yui_3_16_0_1_1428585471336_18381" style="background-color: transparent;">when running the "make" command I get</span><span id="yui_3_16_0_1_1428585471336_18383" style="background-color: transparent;"> the following errors:</span></pre> <pre class="" id="yui_3_16_0_1_1428585471336_18308" style="margin-top: 0.0px;margin-bottom: 0.0px;padding: 15.0px;border-width: 0.0px 0.0px 0.0px 1.0px;border-left-style: solid;border-left-color: rgb(229,229,229);outline: 0.0px;font-size: 13.0px;vertical-align: baseline;background-color: transparent;font-family: monospace , sans-serif;overflow: auto;color: rgb(85,85,85);line-height: 18.0px;"> <div class="" id="yui_3_16_0_1_1428585471336_18436" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> Mohammads-MacBook-Pro:libglpk-java-1.0.37 Mohammad$ make </div> <div class="" id="yui_3_16_0_1_1428585471336_18437" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive </div> <div class="" id="yui_3_16_0_1_1428585471336_18448" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> Making all in doc </div> <div class="" id="yui_3_16_0_1_1428585471336_18829" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> gzip -c libglpk-java.3 > libglpk-java.3.gz </div> <div class="" id="yui_3_16_0_1_1428585471336_18828" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> Making all in swig </div> <div class="" id="yui_3_16_0_1_1428585471336_18827" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> mkdir -p target/classes </div> <div class="" id="yui_3_16_0_1_1428585471336_18826" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> mkdir -p target/apidocs </div> <div class="" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> mkdir -p src/c </div> <div class="" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> mkdir -p src/main/java/org/gnu/glpk </div> <div class="" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> cp *.java src/main/java/org/gnu/glpk </div> <div class="" id="yui_3_16_0_1_1428585471336_18449" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/bin/swig -I/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include/linux -I/usr/include -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/local/include -java -package org.gnu.glpk \ </div> <div class="" id="yui_3_16_0_1_1428585471336_18451" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> <span class="" id="yui_3_16_0_1_1428585471336_18450" style="white-space: pre;"> </span> -o src/c/glpk_wrap.c -outdir src/main/java/org/gnu/glpk glpk.i </div> <div class="" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:37: Warning 302: Identifier 'glp_prob' redefined (ignored), </div> <div class="" id="yui_3_16_0_1_1428585471336_18452" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> glpk_java.h:39: Warning 302: previous definition of 'glp_prob'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18453" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:144: Warning 302: Identifier 'glp_tree' redefined (ignored), </div> <div class="" id="yui_3_16_0_1_1428585471336_18454" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> glpk_java.h:45: Warning 302: previous definition of 'glp_tree'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18458" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:254: Warning 302: Identifier 'glp_tran' redefined (ignored), </div> <div class="" id="yui_3_16_0_1_1428585471336_18457" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> glpk_java.h:42: Warning 302: previous definition of 'glp_tran'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18456" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:150: Error: 'GLP_MSG_OFF_get' is multiply defined in the generated target language module in scope 'GLPKJNI'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18455" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:114: Error: Previous declaration of 'GLP_MSG_OFF_get' </div> <div class="" id="yui_3_16_0_1_1428585471336_18459" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:151: Error: 'GLP_MSG_ERR_get' is multiply defined in the generated target language module in scope 'GLPKJNI'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18461" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:115: Error: Previous declaration of 'GLP_MSG_ERR_get' </div> <div class="" id="yui_3_16_0_1_1428585471336_18460" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:152: Error: 'GLP_MSG_ON_get' is multiply defined in the generated target language module in scope 'GLPKJNI'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18462" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:116: Error: Previous declaration of 'GLP_MSG_ON_get' </div> <div class="" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:153: Error: 'GLP_MSG_ALL_get' is multiply defined in the generated target language module in scope 'GLPKJNI'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18464" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:117: Error: Previous declaration of 'GLP_MSG_ALL_get' </div> <div class="" id="yui_3_16_0_1_1428585471336_18435" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:154: Error: 'GLP_MSG_DBG_get' is multiply defined in the generated target language module in scope 'GLPKJNI'. </div> <div class="" id="yui_3_16_0_1_1428585471336_18463" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> /usr/local/include/glpk.h:118: Error: Previous declaration of 'GLP_MSG_DBG_get' </div> <div class="" id="yui_3_16_0_1_1428585471336_18470" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> make[2]: *** [all] Error 10 </div> <div class="" id="yui_3_16_0_1_1428585471336_18471" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> make[1]: *** [all-recursive] Error 1 </div> <div class="" id="yui_3_16_0_1_1428585471336_18477" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;line-height: normal;font-family: "Andale Mono";color: rgb(32,207,12);background-color: rgb(0,0,0);"> make: *** [all] Error 2 </div> </pre> <div class="" id="yui_3_16_0_1_1428585471336_18279"> <br class=""/> </div> <div class="" id="yui_3_16_0_1_1428585471336_18279"> swig --version: </div> <div class="" id="yui_3_16_0_1_1428585471336_18279"> <br/> </div> <div class="" id="yui_3_16_0_1_1428585471336_18753" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;font-family: "Andale Mono";"> SWIG Version 3.0.2 </div> <div class="" id="yui_3_16_0_1_1428585471336_18750" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;font-family: "Andale Mono";"> Compiled with g++ [x86_64-apple-darwin14.0.0] </div> <div class="" id="yui_3_16_0_1_1428585471336_18279"> </div> <div class="" id="yui_3_16_0_1_1428585471336_18752" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;font-family: "Andale Mono";"> Configured options: +pcre </div> <div class="" id="yui_3_16_0_1_1428585471336_18279"> <br/> </div> <div class="" id="yui_3_16_0_1_1428585471336_18279"> glpsol --version: </div> <div class="" id="yui_3_16_0_1_1428585471336_18498" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;font-family: "Andale Mono";"> <font id="yui_3_16_0_1_1428585471336_18646">GLPSOL: GLPK LP/MIP Solver 4.35</font> </div> <div class="" id="yui_3_16_0_1_1428585471336_18498" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;font-family: "Andale Mono";"> <font><br/> </font> </div> <div class="" id="yui_3_16_0_1_1428585471336_18498" style="margin-top: 0.0px;margin-bottom: 0.0px;font-size: 18.0px;font-family: "Andale Mono";"> <span class="" id="yui_3_16_0_1_1428585471336_18830" style="font-family: Consolas , Monaco , "Nimbus Mono L" , monospace;font-size: 13.0px;">any kind of help would be appreciated.</span><br class=""/> </div> </div> ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises<a href="http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-" target="_blank"> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-</a> event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF_______________________________________________ Glpk-java-help mailing list Glp...@li...<a href="https://lists.sourceforge.net/lists/listinfo/glpk-java-help" target="_blank"> https://lists.sourceforge.net/lists/listinfo/glpk-java-help</a> </blockquote></div></body> </html> |
From: mohammad h. <mkh...@ya...> - 2015-04-09 19:26:47
|
Hi, I'm trying to compile libglpk-java-1.0.37 on mac os x 10.10.1 but when running the "make" command I get the following errors:Mohammads-MacBook-Pro:libglpk-java-1.0.37 Mohammad$ make/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursiveMaking all in docgzip -c libglpk-java.3 > libglpk-java.3.gzMaking all in swigmkdir -p target/classesmkdir -p target/apidocsmkdir -p src/cmkdir -p src/main/java/org/gnu/glpkcp *.java src/main/java/org/gnu/glpk/usr/local/bin/swig -I/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/include/linux -I/usr/include -I/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/JavaVM.framework/Headers -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:37: Warning 302: Identifier 'glp_prob' redefined (ignored),glpk_java.h:39: Warning 302: previous definition of 'glp_prob'./usr/local/include/glpk.h:144: Warning 302: Identifier 'glp_tree' redefined (ignored),glpk_java.h:45: Warning 302: previous definition of 'glp_tree'./usr/local/include/glpk.h:254: Warning 302: Identifier 'glp_tran' redefined (ignored),glpk_java.h:42: Warning 302: previous definition of 'glp_tran'./usr/local/include/glpk.h:150: Error: 'GLP_MSG_OFF_get' is multiply defined in the generated target language module in scope 'GLPKJNI'./usr/local/include/glpk.h:114: Error: Previous declaration of 'GLP_MSG_OFF_get'/usr/local/include/glpk.h:151: Error: 'GLP_MSG_ERR_get' is multiply defined in the generated target language module in scope 'GLPKJNI'./usr/local/include/glpk.h:115: Error: Previous declaration of 'GLP_MSG_ERR_get'/usr/local/include/glpk.h:152: Error: 'GLP_MSG_ON_get' is multiply defined in the generated target language module in scope 'GLPKJNI'./usr/local/include/glpk.h:116: Error: Previous declaration of 'GLP_MSG_ON_get'/usr/local/include/glpk.h:153: Error: 'GLP_MSG_ALL_get' is multiply defined in the generated target language module in scope 'GLPKJNI'./usr/local/include/glpk.h:117: Error: Previous declaration of 'GLP_MSG_ALL_get'/usr/local/include/glpk.h:154: Error: 'GLP_MSG_DBG_get' is multiply defined in the generated target language module in scope 'GLPKJNI'./usr/local/include/glpk.h:118: Error: Previous declaration of 'GLP_MSG_DBG_get'make[2]: *** [all] Error 10make[1]: *** [all-recursive] Error 1make: *** [all] Error 2 swig --version: SWIG Version 3.0.2Compiled with g++ [x86_64-apple-darwin14.0.0]Configured options: +pcre glpsol --version:GLPSOL: GLPK LP/MIP Solver 4.35 any kind of help would be appreciated. |
From: Heinrich S. <xyp...@gm...> - 2015-01-22 21:31:51
|
Hello Victor, please, provide the output of make not of make check. Best regards Heinrich |
From: Victor M. <vic...@gm...> - 2015-01-22 21:29:36
|
Hi, Yes I did execute the ldconfig command as root. The whole output is: [dgm@ces-9554l libglpk-java-1.0.37]$ make check Making check in doc make[1]: Entering directory `/home/dgm/libglpk-java-1.0.37/doc' make[2]: Entering directory `/home/dgm/libglpk-java-1.0.37' make[2]: Leaving directory `/home/dgm/libglpk-java-1.0.37' if test ! -f glpk-java.pdf;then echo glpk-java.pdf not found;exit 1; fi make[1]: Leaving directory `/home/dgm/libglpk-java-1.0.37/doc' Making check in swig make[1]: Entering directory `/home/dgm/libglpk-java-1.0.37/swig' make[2]: Entering directory `/home/dgm/libglpk-java-1.0.37' make[2]: Leaving directory `/home/dgm/libglpk-java-1.0.37' 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: /home/dgm/libglpk-java-1.0.37/swig/.libs/libglpk_java .so.36.1.2: undefined symbol: glp_error_hook make[1]: *** [check] Error 127 make[1]: Leaving directory `/home/dgm/libglpk-java-1.0.37/swig' make: *** [check-recursive] Error 1 [dgm@ces-9554l libglpk-java-1.0.37]$ 2015-01-22 19:26 GMT-02:00 Heinrich Schuchardt <xyp...@gm...>: > Hello Victor, > > On 22.01.2015 22:20, Victor Maryama wrote: > > Hi, > > > > I'm trying to compile libglpk-java-1.0.37 with glpk-4.55 (sucessfully > > installed) in CentOS linux and when running the "make check" command I > > get the following error: > > > > java: symbol lookup error: > > /home/dgm/libglpk-java-1.0.37/swig/.libs/libglpk_java.so.36.1.2: > > undefined symbol: glp_error_hook > > > > What could be wrong? I'm using OpenJDK 1.7.0._75. > > > > please, provide the complete output of make. > > Did you execute > sudo ldconfig > after installing glpk-4.55? > > Best regards > > Heinrich Schuchardt > |
From: Heinrich S. <xyp...@gm...> - 2015-01-22 21:26:17
|
Hello Victor, On 22.01.2015 22:20, Victor Maryama wrote: > Hi, > > I'm trying to compile libglpk-java-1.0.37 with glpk-4.55 (sucessfully > installed) in CentOS linux and when running the "make check" command I > get the following error: > > java: symbol lookup error: > /home/dgm/libglpk-java-1.0.37/swig/.libs/libglpk_java.so.36.1.2: > undefined symbol: glp_error_hook > > What could be wrong? I'm using OpenJDK 1.7.0._75. > please, provide the complete output of make. Did you execute sudo ldconfig after installing glpk-4.55? Best regards Heinrich Schuchardt |
From: Victor M. <vic...@gm...> - 2015-01-22 21:20:45
|
Hi, I'm trying to compile libglpk-java-1.0.37 with glpk-4.55 (sucessfully installed) in CentOS linux and when running the "make check" command I get the following error: java: symbol lookup error: /home/dgm/libglpk-java-1.0.37/swig/.libs/libglpk_java.so.36.1.2: undefined symbol: glp_error_hook What could be wrong? I'm using OpenJDK 1.7.0._75. Thank you! |
From: glpk x. <xyp...@gm...> - 2009-11-21 22:45:18
|
Hello Yi, the documentation of the GLPK library can be found in file doc/glpk.pdf of the GLPK source distribution available at ftp://ftp.gnu.org/gnu/glpk/glpk-4.40.tar.gz The routine to solve integer problems is int glp_intopt(glp_prob *mip, const glp_iocp *parm); For a complete example see appendix. Best regards Xypron -------- Original-Nachricht -------- > Datum: Fri, 20 Nov 2009 21:09:19 +0300 > Von: "Zong, Yi" > An: hel...@gn... > Betreff: [Help-glpk] help! I need a small example to use GLPK java for MIP > To it may concern, > > I want to use GLPK-java to solve a > simple MIP. > > // Maximize z = 17 * x1 + 12* x2 > > > > // subject to > > // 10*x1+7*x2 <= 40 > > // x1+ x2 <= 5 > > // where, > > // 0.0 <= x1 integer > > // 0.0 <= x2 integer > > // result: max=68: x1=4, x2=0; ?? > > > > > > The code is shown as following. The > problem is how I can get integer solution? > -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 |
From: glpk x. <xyp...@gm...> - 2009-10-30 06:44:51
|
GLPK-Java 1.0.5 has been released Version 1.0.5, 2009-10-29 Fixed error in Windows build files Version 1.0.4, 2009-10-29 Added documentation Added check files to Windows directories Adjusted buildfiles for swigwin-1.3.40 Version 1.0.3, 2009-07-26 Adjusted examples and makefiles for GLPK 4.39 Added usage help to GLPKSwig.java Correction of typos Version 1.0.2, 2009-06-11 Makefile target test renamed to check Use libtool object file for linking Add /usr/local/include to include path Version 1.0.1, 2009-06-06 Corrected swig/Makefile to allow testing before install Added target dist to Makefile to create distribution files Best regards Xypron -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser |