From: Rainer M. <ra...@tb...> - 2006-07-18 09:13:14
|
i have added this to the wiki. On Mon, 17 Jul 2006, Andrew Finney wrote: > Folks > > Ideally the configure scripts should work this out - but I'm not > volunteering :-) > > yours > > Andrew > >> -----Original Message----- >> From: sbm...@li... >> [mailto:sbm...@li...] On >> 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 >> linux.[Scanned] >> >> Hi Eryk, >> >> acosh, asinh and atanh are defined in tgmath.h, which >> provides some additional functions to the ones in math. >> >> However, it wasn't availalbe on some platforms so Andrew (i >> think) included these functions within WIN32 tags but i >> removed those tags because of a general ISO C90 >> incompatibility of tgmath.h (and SOSlib wants to be ISO C90). >> >> Maybe your math.h includes the tgmath.h ? >> I think that was the reason why it initally worked here on >> our machines without either those local declarations or >> including tgmath.h >> >> Anyways, you can try to remove the static function >> definitions for acsoh, asinh and atanh from your local copy >> of processAST.c and rely on your local definitions (should be >> OK!) or check whether the math.h on your system includes >> tgmath.h and use another version of math.h >> >> I am not so familiar with all that ISO C stuff. So maybe >> someone else can give a more detailed answer. >> >> Maybe we need to add some tags like >> #ifdef acosh >> etc. around these function declarations? >> >> Rainer >> >> >> >> >> >> >> On Thu, 13 Jul 2006, W Eryk Wolski wrote: >> >>> Dear all, >>> >>> Getting compilation errors on Kubuntu 6.0.6 with gcc 4.0.3 >>> >>> >>> >>> then mv -f ".deps/odeConstruct.Tpo" ".deps/odeConstruct.Po"; >>> else rm -f ".deps/odeConstruct.Tpo"; exit 1; fi if gcc >> -DHAVE_CONFIG_H >>> -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 >>> odeModel.c; \ >>> then mv -f ".deps/odeModel.Tpo" ".deps/odeModel.Po"; >> else rm -f >>> ".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 >>> qualifiers from pointer target type >>> odeModel.c: In function 'ODEModel_createFromFileWithObservables': >>> odeModel.c:744: warning: passing argument 1 of 'parseModel' >> discards >>> qualifiers from pointer target type if gcc -DHAVE_CONFIG_H -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 >>> odeSolver.o -MD -MP -MF ".deps/odeSolver.Tpo" -c -o odeSolver.o >>> odeSolver.c; \ >>> then mv -f ".deps/odeSolver.Tpo" >> ".deps/odeSolver.Po"; else rm >>> -f ".deps/odeSolver.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -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 >>> processAST.o -MD -MP -MF ".deps/processAST.Tpo" -c -o processAST.o >>> processAST.c; \ >>> then mv -f ".deps/processAST.Tpo" >> ".deps/processAST.Po"; else >>> rm -f ".deps/processAST.Tpo"; exit 1; fi >>> processAST.c:69: error: static declaration of 'acosh' follows >>> non-static declaration >>> processAST.c:74: error: static declaration of 'asinh' follows >>> non-static declaration >>> processAST.c:79: error: static declaration of 'atanh' follows >>> 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 >>> >>> >>> >> ---------------------------------------------------------------------- >>> --- Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to >> make your job >>> easier Download IBM WebSphere Application Server v.1.0.1 based on >>> Apache Geronimo >>> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216 >>> 42 _______________________________________________ >>> sbmlsolver-devel mailing list >>> sbm...@li... >>> https://lists.sourceforge.net/lists/listinfo/sbmlsolver-devel >>> >> >> >> -------------------------------------------------------------- >> ----------- >> Using Tomcat but need to do more? Need to support web >> services, security? >> Get stuff done quickly with pre-integrated technology to make >> your job easier Download IBM WebSphere Application Server >> v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057& >> dat=121642 >> _______________________________________________ >> sbmlsolver-devel mailing list >> sbm...@li... >> https://lists.sourceforge.net/lists/listinfo/sbmlsolver-devel >> > |