help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Error in compiling Math::GLPK::Solve


From: Retvari Gabor
Subject: Re: [Help-glpk] Error in compiling Math::GLPK::Solve
Date: Sun, 24 Oct 2004 22:30:06 +0200
User-agent: KMail/1.7

Hi,

this is a known issue with Math::GLPK::Solve - as the GLPK API keeps on 
improving, the module has to follow the changes in the GLPK API. The API 
version against which the module is generated is always the GLPK version in 
Debian testing, which is currently v4.6. I plan to implement automatic GLPK 
API detection into the next version. Until it happens, you can use 

http://qosip.tmit.bme.hu/~retvari/perl-modules/glpk_v4.7/Math-GLPK-Solve-0.03.tar.gz

which was assembled especially for GLPK v4.7 or regenerate the interface using 
SWIG (see the INSTALL and README files on how to do that).

 cheers, gabor


On Friday 22 October 2004 06:32, Samik Raychaudhuri wrote:
> Hello,
> I am trying to compile Math::GLPK::Solve. I followed the instructions
> and installed GLPK 4.7. It went on smoothly. When I try to run 'make'
> for Math::GLPK::Solve, I get the following error message:
>
> address@hidden >make
> rm -f blib/arch/auto/Math/GLPK/Solve/Solve.dll
> LD_RUN_PATH="" ld2  -s -L/usr/local/lib GLPK_wrap.o  -o
> blib/arch/auto/Math/GLPK/Solve/Solve.dll  /u
> sr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a -lglpk
> gcc -shared -o  Solve.dll -Wl,--out-implib=libSolve.dll.a
> -Wl,--export-all-symbols -Wl,--enable-auto
> -import -Wl,--stack,8388608 \
> -s -L/usr/local/lib GLPK_wrap.o
> /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a -
> lglpk
> /usr/local/lib/libglpk.a(glplpx8a.o)(.text+0x7590): In function
> `glp_lpx_read_freemps':
> /home/samikrc/packages/glpk-4.7/src/glplpx8a.c:2145: multiple definition
> of `_glp_lpx_read_freemps'
> GLPK_wrap.o(.text+0xfc0):GLPK_wrap.c: first defined here
> /usr/local/lib/libglpk.a(glplpx8a.o)(.text+0x8240): In function
> `glp_lpx_write_freemps':
> /home/samikrc/packages/glpk-4.7/src/glplpx8a.c:2367: multiple definition
> of `_glp_lpx_write_freemps'
>
> GLPK_wrap.o(.text+0xff0):GLPK_wrap.c: first defined here
> /usr/local/lib/libglpk.a(glplpx1.o)(.text+0x1dd0): In function
> `glp_lpx_order_matrix':
> /home/samikrc/packages/glpk-4.7/src/glplpx1.c:982: multiple definition
> of `_glp_lpx_order_matrix'
> GLPK_wrap.o(.text+0xee0):GLPK_wrap.c: first defined here
> /usr/local/lib/libglpk.a(glplpx1.o)(.text+0x2a10): In function
> `glp_lpx_create_index':
> /home/samikrc/packages/glpk-4.7/src/glplpx1.c:1354: multiple definition
> of `_glp_lpx_create_index'
> GLPK_wrap.o(.text+0xf10):GLPK_wrap.c: first defined here
> /usr/local/lib/libglpk.a(glplpx1.o)(.text+0x2b70): In function
> `glp_lpx_find_row':
> /home/samikrc/packages/glpk-4.7/src/glplpx1.c:1384: multiple definition
> of `_glp_lpx_find_row'
> GLPK_wrap.o(.text+0xf30):GLPK_wrap.c: first defined here
> /usr/local/lib/libglpk.a(glplpx1.o)(.text+0x2c30): In function
> `glp_lpx_find_col':
> /home/samikrc/packages/glpk-4.7/src/glplpx1.c:1402: multiple definition
> of `_glp_lpx_find_col'
> GLPK_wrap.o(.text+0xf60):GLPK_wrap.c: first defined here
> /usr/local/lib/libglpk.a(glplpx1.o)(.text+0x2cc0): In function
> `glp_lpx_delete_index':
> /home/samikrc/packages/glpk-4.7/src/glplpx1.c:1420: multiple definition
> of `_glp_lpx_delete_index'
> GLPK_wrap.o(.text+0xf90):GLPK_wrap.c: first defined here
> Creating library file: libSolve.dll.a
> GLPK_wrap.o(.text+0x1d4e3):GLPK_wrap.c: undefined reference to
> `_lpx_read_lpt'
> GLPK_wrap.o(.text+0x1d89f):GLPK_wrap.c: undefined reference to
> `_lpx_write_lpt'
> collect2: ld returned 1 exit status
> perlld: *** system() failed to execute
> gcc -shared -o  Solve.dll -Wl,--out-implib=libSolve.dll.a
> -Wl,--export-all-symbols -Wl,--enable-auto
> -import -Wl,--stack,8388608 \
> -s -L/usr/local/lib GLPK_wrap.o
> /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a -
> lglpk
>
> make: *** [blib/arch/auto/Math/GLPK/Solve/Solve.dll] Error 1
> ---------------------------------------------------------------------------
>----------------
>
> Other information:
> I am using Win XP SP2 with Cygwin. Trying to install this on Cygwin.
> Any suggestion/pointers about what I am doing wrong? Please let me know
> if you require any other information.
> Thanks.
> -Samik
>
>
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]