help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Linking error in AIX 6.1 for glpk 4.47


From: Reginald Beardsley
Subject: Re: [Help-glpk] Linking error in AIX 6.1 for glpk 4.47
Date: Mon, 31 Dec 2012 05:45:26 -0800 (PST)

The only things in all of glpk 4.47 that start with _glp are a set of #defines 
in glpk.h which rename a large number of functions in any file which includes 
glpk.h.  So removing these from glpk.h is unlikely to correct the problem 
unless the compiler is objecting to the leading underscore in an obtuse manner.

I think the threadsafe point may be nearer the mark.  My experience of the AIX 
compilers was that the depth of semantic analysis was much deeper than the Sun 
& HP compilers.  The link could be failing because the compiler detected that 
some code is not threadsafe, but the error message is unclear about the problem.

Without the symbol table information from nm(1) all of this is somewhat 
speculative.  The fact that the code compiles and presumably runs on Solaris, 
Linux and HP suggests that a compiler option is causing the problem.  I'd also 
suggest looking closely at the compile time messages from building GLPK for a 
"not threadsafe" message.  My leading supposition is still that the libglpk.a 
names have been mangle, but not the names in the caller.

Have Fun!
Reg

--- On Mon, 12/31/12, Nigel Galloway <address@hidden> wrote:

> From: Nigel Galloway <address@hidden>
> Subject: Re: [Help-glpk] Linking error in AIX 6.1 for glpk 4.47
> To: address@hidden
> Date: Monday, December 31, 2012, 6:53 AM
> xlC128_r requests a compilation using
> C++ which is thread safe. Neither
> is true for glpk. Do you get the same problem with xlc128 ?
> You could
> also try gxlc which converts gnu C to XL C then calls xlc.
> 
> Failing which you can delete things starting _ from glpk.h
> and the
> problem may well go away.
> -- 
>   Nigel Galloway
>   address@hidden
> 
> On Sun, Dec 30, 2012, at 06:43 AM, Souvik Sutradhar wrote:
> > Hello Heinrich ,
> > 
> > Thanks for replying. Below are the installation steps
> for GLPK
> > 
> > 1. ./configure CC=xlC128_r
> --prefix=/data4/balios/glpk-4.47/glpkgenerated
> > 2. make
> > 3. make install
> > 
> > I am using xlC128_r compiler version 8 for both GLPK
> and the program.
> > 
> > The command line for compiling the program :
> > 
> > xlC128_r -g -brtl -b64 -qnotempinc -qrtti=all -qenum=8
> -qfuncsect
> > -bnoquiet  
> > -D_RWBUILDSHARED -DRW_MULTI_THREAD -D_RWCONFIG_12d
> -D_THREAD_SAFE
> > -DNOMINMAX 
> >  -DACE_HAS_EXCEPTIONS -DCORBA_TAO -DAIX -D 
> > USE_STD -I./Include
> -I/data1/rwbuild/RogueWave/SourcePro/Ed10u1
> > -I/data4/balios/TAO 
> >  -I/data4/balios/TAO/TAO
> -I/data4/balios/TAO/TAO/orbsvcs
> >  -I/data4/balios/TAO/TAO/orbsvcs/ImplRepo_Service
> 
> >  -I/data4/balios/tcl8.5.12/generic
> >  -I/data4/balios/glpk-4.47/glpkgenerated/include 
> >  -DSOREQUEST_UNIXSYSTEM -q64 -D_DEBUG -g
>
> -I/data4/balios/xerces-c_2_8_0-powerpc_64-aix-xlc_7_0/include
> 
> >  -DMODULE_NAME="LCR" -o ./UIBSLCRDataset.o -c
> UIBSLCRDataset.cpp
> > 
> > The command for linking :
> > 
> > xlC128_r -g -brtl -b64 -qnotempinc -qrtti=all -qenum=8
> -qfuncsect
> > -bnoquiet  
> > -D_RWBUILDSHARED -DRW_MULTI_THREAD -D_RWCONFIG_12d
> -D_THREAD_SAFE
> > -DNOMINMAX 
> >  -DACE_HAS_EXCEPTIONS -DCORBA_TAO -DAIX -D 
> > USE_STD -I./Include
> -I/data1/rwbuild/RogueWave/SourcePro/Ed10u1
> > -I/data4/balios/TAO 
> >  -I/data4/balios/TAO/TAO
> -I/data4/balios/TAO/TAO/orbsvcs
> >  -I/data4/balios/TAO/TAO/orbsvcs/ImplRepo_Service
> 
> >  -I/data4/balios/tcl8.5.12/generic
> >  -I/data4/balios/glpk-4.47/glpkgenerated/include 
> >  -DSOREQUEST_UNIXSYSTEM -q64 -D_DEBUG -g
> -DMODULE_NAME="LCR" -o Bin/LCR 
> > UIBSLCRDataset.o
> -L/data4/balios/glpk-4.47/glpkgenerated/lib
> > -L/data4/balios/TAO/lib 
> >  -L/data4/balios/tcl8.5.12/unix
> >  -L/data1/rwbuild/RogueWave/SourcePro/Ed10u1/lib 
> >  -L/data2/ora10g/oracle/product/10.2.0/db_1/lib
> -lACE -lTAO
> >  -lTAO_CosNaming  
> > -lTAO_PortableServer -lTAO_AnyTypeCode
> -lTAO_ImR_Locator
> > -lTAO_ImR_Locator_IDL 
> >  -lTAO_ImR_Client -ldbt7012d -lthread3012d
> -ltls8012d -lnetwork2012d
> >  -litc2412d 
> >  -lthrexcept2412d -lfunctor2412d -lpointer2612d
> -ltrace2412d
> >  -lfunctor_list2412d 
> >  -lsync3012d -lfunctor_map2412d -lfactory1512d
> -ltypes1412d -lclntsh
> >  -ltcl8.5 
> >  -lnsl -lintl -lpthread -lX11 -lm -ldl -lthread
> -lXext -lglpk
> > 
> > 
> > 
> > 
> > ----- Original Message ----- 
> > From: "Xypron" <address@hidden>
> > To: "Souvik Sutradhar" <address@hidden>
> > Cc: <address@hidden>;
> <address@hidden>
> > Sent: Sunday, December 30, 2012 1:01 AM
> > Subject: Re: [Help-glpk] Linking error in AIX 6.1 for
> glpk 4.47
> > 
> > 
> > > Hello Souvik,
> > >
> > > when going through the default installation
> sequence you will not have to 
> > > define any library path for the compiler. For gcc
> you would simply
> > > add a parameter -lglpk to include the dynamic load
> library (libglpk.so).
> > >
> > > How did you install GLPK? Did you run:
> > > ./configure
> > > make
> > > sudo make install
> > > sudo ldconfig
> > >
> > > Which compiler do you use (e.g. IBM XL C/C++ for
> AIX)?
> > > What is the command line you used to compile and
> link your C++ program?
> > >
> > > Best regards
> > >
> > > Heinrich Schuchardt
> > >
> > >
> > >
> > >
> > > On 29.12.2012 19:30, Souvik Sutradhar wrote:
> > >> Hi
> > >> I am trying to run a c++ program in IBM AIX
> 6.1, which is using glpk 
> > >> 4.47. The same program is running on SOLARIS,
> Linux and HP-UX platform. 
> > >> But when I am trying to run the program on
> AIX, compilation is successful 
> > >> but at the time of linking it is giveing the
> following error
> > >>
> > >> ld: 0711-317 ERROR: Undefined symbol:
> ._glp_lpx_create_prob
> > >> ld: 0711-317 ERROR: Undefined symbol:
> ._glp_lpx_set_prob_name
> > >> ld: 0711-317 ERROR: Undefined symbol:
> ._glp_lpx_add_rows
> > >> ld: 0711-317 ERROR: Undefined symbol:
> ._glp_lpx_add_cols
> > >> ld: 0711-317 ERROR: Undefined symbol:
> ._glp_lpx_set_row_bnds
> > >> ld: 0711-317 ERROR: Undefined symbol:
> ._glp_lpx_set_col_name
> > >> ....
> > >>
> > >> I have included the library path of glpk and
> the libglpk.a library in 
> > >> link command.
> > >>
> > >> Thanks&  Regards,
> > >>
> > >>
> > >>
> > >> Souvik Sutradhar
> > >>
> > >> Senior Software Engineer | Service Group
> > >>
> > >>
> > >>
> > >> PS Srijan Tech Park, 4th Floor, DN-52, Salt
> Lake Sector V, 
> > >> Kolkata-700091, India.
> > >>
> > >> T : +91-33-40134880 | M : +91-9836987928
> > >>
> > >> E : address@hidden
> | W : www.ushacomm.com | Time Zone: GMT 
> > >> +5:30
> > >>
> > >>
> > >>
> > >> The information transmitted is intended only
> for the person or entity to 
> > >> which it is addressed and may contain
> confidential and/or privileged 
> > >> material. Any review, retransmission,
> dissemination or other use of, or 
> > >> taking of any action in reliance upon, this
> information by persons or 
> > >> entities other than the intended recipient is
> prohibited. If you received 
> > >> this in error, please contact the sender and
> delete the material from any 
> > >> computer.
> > >>
> > >>
> > >>
> > >>
> > >>
> _______________________________________________
> > >> Help-glpk mailing list
> > >> address@hidden
> > >> https://lists.gnu.org/mailman/listinfo/help-glpk
> > > 
> > 
> > 
> > _______________________________________________
> > Help-glpk mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/help-glpk
> 
> -- 
> http://www.fastmail.fm - Send your email first class
> 
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-glpk
>



reply via email to

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