From: Andrew F. <af...@ph...> - 2006-07-17 09:46:22
|
Folks Ideally the configure scripts should work this out - but I'm not volunteering :-) yours Andrew=20 > -----Original Message----- > From: sbm...@li...=20 > [mailto:sbm...@li...] On=20 > Behalf Of Rainer Machne > Sent: 17 July 2006 10:43 > To: W Eryk Wolski > Cc: sbm...@li... > Subject: Re: [SOSlib-devel] Compilation errors on Kubuntu=20 > linux.[Scanned] >=20 > Hi Eryk, >=20 > acosh, asinh and atanh are defined in tgmath.h, which=20 > provides some additional functions to the ones in math. >=20 > However, it wasn't availalbe on some platforms so Andrew (i=20 > think) included these functions within WIN32 tags but i=20 > removed those tags because of a general ISO C90=20 > incompatibility of tgmath.h (and SOSlib wants to be ISO C90). >=20 > Maybe your math.h includes the tgmath.h ? > I think that was the reason why it initally worked here on=20 > our machines without either those local declarations or=20 > including tgmath.h >=20 > Anyways, you can try to remove the static function=20 > definitions for acsoh, asinh and atanh from your local copy=20 > of processAST.c and rely on your local definitions (should be=20 > OK!) or check whether the math.h on your system includes=20 > tgmath.h and use another version of math.h >=20 > I am not so familiar with all that ISO C stuff. So maybe=20 > someone else can give a more detailed answer. >=20 > Maybe we need to add some tags like > #ifdef acosh > etc. around these function declarations? >=20 > Rainer >=20 >=20 >=20 >=20 >=20 >=20 > On Thu, 13 Jul 2006, W Eryk Wolski wrote: >=20 > > Dear all, > > > > Getting compilation errors on Kubuntu 6.0.6 with gcc 4.0.3 > > > > > > > > then mv -f ".deps/odeConstruct.Tpo" ".deps/odeConstruct.Po";=20 > > else rm -f ".deps/odeConstruct.Tpo"; exit 1; fi if gcc=20 > -DHAVE_CONFIG_H=20 > > -I. -I. -I../src/sbmlsolver -I/home/witek/opt/sundials/include > > -I/home/witek/opt/libsbml2.3.4/include > > -I/home/witek/opt/libsbml2.3.4/include/sbml > > -I/home/witek/opt/libsbml2.3.4/include > > -I/home/witek/opt/libsbml2.3.4/include/sbml/sbml -I. -MT > > odeModel.o -MD -MP -MF ".deps/odeModel.Tpo" -c -o odeModel.o=20 > > odeModel.c; \ > > then mv -f ".deps/odeModel.Tpo" ".deps/odeModel.Po";=20 > else rm -f=20 > > ".deps/odeModel.Tpo"; exit 1; fi > > odeModel.c: In function 'ODEModel_computeAssignmentRuleSets': > > odeModel.c:417: warning: passing argument 1 of 'ASTNode_getSymbols' > > discards qualifiers from pointer target type > > odeModel.c:424: warning: passing argument 1 of 'ASTNode_getSymbols' > > discards qualifiers from pointer target type > > odeModel.c:426: warning: passing argument 2 of 'List_add' discards=20 > > qualifiers from pointer target type > > odeModel.c: In function 'ODEModel_createFromFileWithObservables': > > odeModel.c:744: warning: passing argument 1 of 'parseModel'=20 > discards=20 > > qualifiers from pointer target type if gcc -DHAVE_CONFIG_H -I. -I.=20 > > -I../src/sbmlsolver -I/home/witek/opt/sundials/include > > -I/home/witek/opt/libsbml2.3.4/include > > -I/home/witek/opt/libsbml2.3.4/include/sbml > > -I/home/witek/opt/libsbml2.3.4/include > > -I/home/witek/opt/libsbml2.3.4/include/sbml/sbml -I. -MT > > odeSolver.o -MD -MP -MF ".deps/odeSolver.Tpo" -c -o odeSolver.o=20 > > odeSolver.c; \ > > then mv -f ".deps/odeSolver.Tpo"=20 > ".deps/odeSolver.Po"; else rm=20 > > -f ".deps/odeSolver.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I.=20 > > -I../src/sbmlsolver -I/home/witek/opt/sundials/include > > -I/home/witek/opt/libsbml2.3.4/include > > -I/home/witek/opt/libsbml2.3.4/include/sbml > > -I/home/witek/opt/libsbml2.3.4/include > > -I/home/witek/opt/libsbml2.3.4/include/sbml/sbml -I. -MT > > processAST.o -MD -MP -MF ".deps/processAST.Tpo" -c -o processAST.o=20 > > processAST.c; \ > > then mv -f ".deps/processAST.Tpo"=20 > ".deps/processAST.Po"; else=20 > > rm -f ".deps/processAST.Tpo"; exit 1; fi > > processAST.c:69: error: static declaration of 'acosh' follows=20 > > non-static declaration > > processAST.c:74: error: static declaration of 'asinh' follows=20 > > non-static declaration > > processAST.c:79: error: static declaration of 'atanh' follows=20 > > non-static declaration > > make[1]: *** [processAST.o] Error 1 > > make[1]: Leaving directory > > `/home/witek/devel/cpp/odesolver/sos3/SBML_odeSolver/src' > > make: *** [all-recursive] Error 1 > > > > > > Any suggestions > > > > Eryk > > > > > >=20 > ---------------------------------------------------------------------- > > --- Using Tomcat but need to do more? Need to support web services,=20 > > security? > > Get stuff done quickly with pre-integrated technology to=20 > make your job=20 > > easier Download IBM WebSphere Application Server v.1.0.1 based on=20 > > Apache Geronimo > >=20 > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 1216 > > 42 _______________________________________________ > > sbmlsolver-devel mailing list > > sbm...@li... > > https://lists.sourceforge.net/lists/listinfo/sbmlsolver-devel > > >=20 >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier Download IBM WebSphere Application Server=20 > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > sbmlsolver-devel mailing list > sbm...@li... > https://lists.sourceforge.net/lists/listinfo/sbmlsolver-devel >=20 |