From: Andrew F. <af...@ph...> - 2006-06-08 14:17:48
|
Rainer I managed to substitute expat for xerces But I still can't link to libsbml in the config.log (attached) I get the following: --------------------------------- configure:4155: checking correct functioning of SBML configure:4185: gcc -o conftest -g -O2 -I/hpc/home/finneya/programs/include -Wl,-rpath,/hpc/home/finneya/programs/lib -L/hpc/home/finneya/programs/lib conftest.c -lexpat -lsbml >&5 ld: 0706-012 The -p flag is not recognized. ld: 0706-012 The -a flag is not recognized. ld: 0706-012 The -t flag is not recognized. ld: 0706-012 The -h flag is not recognized. collect2: ld returned 255 exit status configure:4191: $? =3D 1 configure: failed program was: | /* confdefs.h. */ |=20 | #define PACKAGE_NAME "odeSolver" | #define PACKAGE_TARNAME "SBML_odeSolver" | #define PACKAGE_VERSION "1.5.0" | #define PACKAGE_STRING "odeSolver 1.5.0" | #define PACKAGE_BUGREPORT "{raim,xtof}@tbi.univie.ac.at" | #define PACKAGE "SBML_odeSolver" | #define VERSION "1.5.0" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | #include <sbml/SBMLTypes.h> | int | main () | { | SBMLReader_t *sr; sr =3D SBMLReader_create(); SBMLReader_free(sr); | ; | return 0; | } configure:4220: result: no: CFLAGS=3D-g -O2 -I/hpc/home/finneya/programs/include LDFLAGS=3D -Wl,-rpath,/hpc/home/finneya/programs/lib -L/hpc/home/finneya/programs/lib LIBS=3D -lexpat -lsbml configure:4228: error: Can not link to SBML Library: Please, make sure to use libSBML version >=3D 2.3.2 ------------------ It looks as if the loader (ld) isn't performing as expected :-( what's the -rpath supposed to do? yours Andrew =20 > -----Original Message----- > From: Rainer Machne [mailto:ra...@tb...]=20 > Sent: 08 June 2006 14:13 > To: Andrew Finney > Cc: SOSlib Development > Subject: Re: building SBML ODE Solver for AIX - can I use=20 > expat?[Scanned] >=20 > Hi Andrew >=20 > Unfortunately we completely forgot about libSBML with expat. >=20 > There is a bug report in sourceforge with short instructions. > http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D14204 > 89&group_id=3D139893&atid=3D744811 >=20 >=20 > Copied from there, with slight corrections: >=20 > This bug can temporarily be solved simply by replacing all=20 > occurences of >=20 > `-lxerces-c' >=20 > in the files: >=20 > configure > src/Makefile.am > src/Makefile.in > examples/Makefile.am > examples/Makefile.in > odeSolver/Makefile.am > odeSolver/Makefile.in >=20 > with `-lexpat' >=20 > e.g. by usind sed: >=20 > sed 's/xerces-c/expat/g' configure >configure.new mv=20 > configure.new configure >=20 > for all above files. >=20 >=20 > I tried it once and it worked! Please let me know if you suceed! >=20 > Rainer >=20 >=20 >=20 > On Thu, 8 Jun 2006, Andrew Finney wrote: >=20 > > Rainer > > > > I'm trying to build SOS on AIX > > > > for some reason I'm having problems linking with xerces for that=20 > > platform > > > > Is there a way to configure SOS to use expat? > > > > Andrew > > >=20 |