help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Trouble installing GLPKMEX


From: Benjamin Webber
Subject: Re: [Help-glpk] Trouble installing GLPKMEX
Date: Wed, 06 May 2009 14:41:26 -0400
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

Andrew,

I made those changes to the glpkcc.cpp file and thankfully it successfully compiled. How would I go about linking it to the library, now? Is this a question for Nicolo?

Thank you,

Ben

Andrew Makhorin wrote:
Thanks for your quick response! I downloaded the alternate gplkcc.cpp
file and tried to reinstall GLPKMEX. I was thrown these errors,

---------------------------------------------------------------------

In function ‘char* strcpy(char*, const char*)’,
inlined from ‘void mexFunction(int, mxArray**, int, const mxArray**)’ at glpkcc.cpp:732: /usr/include/bits/string3.h:106: warning: call to char* __builtin___strcpy_chk(char*, const char*, long unsigned int) will always overflow destination buffer
In function ‘char* strcpy(char*, const char*)’,
inlined from ‘void mexFunction(int, mxArray**, int, const mxArray**)’ at glpkcc.cpp:736: /usr/include/bits/string3.h:106: warning: call to char* __builtin___strcpy_chk(char*, const char*, long unsigned int) will always overflow destination buffer

There is an error in the original glpkmex code. To fix it replace
line 724:

    char save_filetype[4];

by the following one:

    char save_filetype[5];

Nevertheless, now compilation is successful.

/usr/bin/ld: /usr/lib/libglpk.a(glpapi01.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libglpk.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

Looks like there is some incompatibility between libglpk.a and the
glpkmex object code you just compiled.

     mex: link of ' "glpkcc.mexa64"' failed.

??? Error using ==> mex at 213
Unable to complete successfully.

Error in ==> makeglpkmex at 111
eval(['mex ' cmd]);

Error in ==> run at 57
           evalin('caller', [s ';']);







reply via email to

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