[Flightgear-devel] solaris compile failure of simgear
I get errors like so: make all-recursive Making all in xml make[2]: Nothing to be done for `all'. Making all in debug make[2]: Nothing to be done for `all'. Making all in misc c++ -g -O2 -D_REENTRANT -L/folks/salman/bin/lib -L/usr/local/lib -o props_test props_test.o libsgmisc.a ../xml/libsgxml.a ../debug/libsgdebug.a -lm Undefined first referenced symbol in file __eh_pc /usr/local/lib/libstdc++.a(stdexcepti.o) ld: fatal: Symbol referencing errors. No output written to props_test collect2: ld returned 1 exit status make[2]: *** [props_test] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 What is going on? I have gcc 2.95.3 on my solaris box. Salman -- Salman Sheikh NASA/GSFC Code 564 Greenbelt, MD 20771 301-286-3763 301-286-0220 (fax) ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Solaris compile error
Hello All, Got past the first error. Got a new one: Making all in NetworkOLK c++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src -I/folks/salman/bin/include -I/usr/local/include -g -O2 -c net_send.cxx net_send.cxx: In function `void fgd_init()': net_send.cxx:277: `INADDR_NONE' undeclared (first use this function) net_send.cxx:277: (Each undeclared identifier is reported only once net_send.cxx:277: for each function it appears in.) make[1]: *** [net_send.o] Error 1 make: *** [all-recursive] Error 1 Any ideas anyone? Salman ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Solaris compile error
Got that fixed. Now on file linking I get the following error: c++ -DPKGLIBDIR=\"/folks/salman/bin/lib/FlightGear\" -g -O2 -L/folks/salman/bin/lib -o fgfs main.o fg_commands.o fg_init.o fg_io.o fg_props.o fgfs.o globals.o options.o splash.o viewer.o viewer_lookat.o viewer_rph.o viewmgr.o ../../src/Aircraft/libAircraft.a../../src/ATC/libATC.a ../../src/Autopilot/libAutopilot.a ../../src/Cockpit/libCockpit.a ../../src/Controls/libControls.a../../src/FDM/libFlight.a ../../src/FDM/Balloon/libBalloon.a ../../src/FDM/JSBSim/libJSBSim.a ../../src/FDM/YASim/libYASim.a ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a ../../src/FDM/LaRCsim/libLaRCsim.a ../../src/FDM/UIUCModel/libUIUCModel.a ../../src/GUI/libGUI.a ../../src/Navaids/libNavaids.a ../../src/Scenery/libScenery.a ../../src/Sound/libSound.a ../../src/Airports/libAirports.a ../../src/Network/libNetwork.a ../../src/Objects/libObjects.a ../../src/Time/libTime.a../../src/WeatherCM/libWeatherCM.a ../../src/Input/libInput.a -lsgroute -lsgsky -lsgephem -lsgtiming! -lsgio -lsgscreen -lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml -lsgserial -lplibpu -lplibfnt -lplibnet -lplibssg -lplibsg -lmk4 -lz -L/space1/glut-3.7/lib/glut -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lsocket -lpthread -lm -lplibul -lm ld: warning: relocation error: R_SPARC_32: file ../../src/Cockpit/libCockpit.a(hud_card.o): symbol .LLC238: external symbolic relocation against non-allocatable section .stab; cannot be processed at runtime: relocation ignored ld: warning: relocation error: R_SPARC_32: file ../../src/FDM/libFlight.a(LaRCsimIC.o): symbol .LLC155: external symbolic relocation against non-allocatable section .stab; cannot be processed at runtime: relocation ignored Undefined first referenced symbol in file slScheduler::playSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, slEvent, int))../../src/Sound/libSound.a(soundmgr.o) slScheduler::~slScheduler(void) ../../src/Sound/libSound.a(soundmgr.o) slDSP::open(char *, int, int, int) ../../src/Sound/libSound.a(soundmgr.o) gethostbyname ../../src/FDM/JSBSim/libJSBSim.a(FGfdmSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) smMixer::smMixer(void) ../../src/Sound/libSound.a(soundmgr.o) slDSP::close(void) ../../src/Sound/libSound.a(soundmgr.o) slScheduler::loopSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, slEvent, int))../../src/Sound/libSound.a(soundmgr.o) __slPendingError../../src/Sound/libSound.a(soundmgr.o) .LLC155 ../../src/FDM/libFlight.a(LaRCsimIC.o) gethostbyaddr ../../src/FDM/JSBSim/libJSBSim.a(FGfdmSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) slSample::autoMatch(slDSP *)../../src/Sound/libSound.a(soundmgr.o) inet_addr /folks/salman/bin/lib/libplibnet.a(netSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) slScheduler::init(void) ../../src/Sound/libSound.a(soundmgr.o) slScheduler::stopSample(slSample *, int)../../src/Sound/libSound.a(soundmgr.o) .LLC238 ../../src/Cockpit/libCockpit.a(hud_card.o) inet_ntoa /folks/salman/bin/lib/libplibnet.a(netSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) smMixer::~smMixer(void) ../../src/Sound/libSound.a(soundmgr.o) slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, slEnvelopeType)../../src/Sound/libSound.a(soundmgr.o) slSample::loadFile(char *) ../../src/Sound/libSound.a(soundmgr.o) slScheduler::realUpdate(int)../../src/Sound/libSound.a(soundmgr.o) ld: fatal: Symbol referencing errors. No output written to fgfs collect2: ld returned 1 exit status make: *** [fgfs] Error 1 On Tue, 5 Mar 2002 21:26:48 - "D Luff" <[EMAIL PROTECTED]> wrote: > Salman Sheikh writes: > > > Hello All, > > > > Got past the first error. Got a new one: > > > > Making all in NetworkOLK > > c++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src >-I/folks/salman/bin/include -I/usr/local/include -g -O2 -c net_send.cxx > > net_send.cxx: In function `void fgd_init()': > > net_send.cxx:277: `INADDR_NONE' undeclared (first use this function) > > net_send.cxx:277: (Each undeclared identifier is reported only once > > net_send.cxx:277: for each function it appears in.) > > make[1]: *** [net_send.o] Error 1 > > make: *** [all-recursive] Error 1 > > > > > > Any ideas anyone? > > Hi Salman,
Re: [Flightgear-devel] Solaris compile error
Yes, all were built with gcc version 2.95.3. Salman On Wed, 6 Mar 2002 09:29:10 -0600 (CST) "Curtis L. Olson" <[EMAIL PROTECTED]> wrote: > That looks really ugly ... could it be bugs/problems with the sun > linker? Have you tried building simple C++ programs with this same > version of gcc? Did you biuld plib, simgear, flightgear, etc. all > with the same compiler? > > Curt. > > > Salman Sheikh writes: > > Got that fixed. Now on file linking I get the following error: > > > > > > c++ -DPKGLIBDIR=\"/folks/salman/bin/lib/FlightGear\" -g -O2 >-L/folks/salman/bin/lib -o fgfs main.o fg_commands.o fg_init.o fg_io.o fg_props.o >fgfs.o globals.o options.o splash.o viewer.o viewer_lookat.o viewer_rph.o viewmgr.o >../../src/Aircraft/libAircraft.a../../src/ATC/libATC.a >../../src/Autopilot/libAutopilot.a ../../src/Cockpit/libCockpit.a >../../src/Controls/libControls.a../../src/FDM/libFlight.a >../../src/FDM/Balloon/libBalloon.a ../../src/FDM/JSBSim/libJSBSim.a >../../src/FDM/YASim/libYASim.a ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a >../../src/FDM/LaRCsim/libLaRCsim.a ../../src/FDM/UIUCModel/libUIUCModel.a >../../src/GUI/libGUI.a ../../src/Navaids/libNavaids.a >../../src/Scenery/libScenery.a ../../src/Sound/libSound.a >../../src/Airports/libAirports.a ../../src/Network/libNetwork.a >../../src/Objects/libObjects.a ../../src/Time/libTime.a >../../src/WeatherCM/libWeatherCM.a ../../src/Input/libInput.a -lsgroute >-lsgsky -lsgephem -lsgti! mi! > ng! > > -lsgio -lsgscreen -lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml > -lsgserial -lplibpu -lplibfnt -lplibnet -lplibssg -lplibsg >-lmk4 -lz -L/space1/glut-3.7/lib/glut -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE >-lXi -lXext -lX11 -lsocket -lpthread -lm -lplibul -lm > > ld: warning: relocation error: R_SPARC_32: file >../../src/Cockpit/libCockpit.a(hud_card.o): symbol .LLC238: > > external symbolic relocation against non-allocatable section .stab; > > cannot be processed at runtime: relocation ignored > > ld: warning: relocation error: R_SPARC_32: file >../../src/FDM/libFlight.a(LaRCsimIC.o): symbol .LLC155: > > external symbolic relocation against non-allocatable section .stab; > > cannot be processed at runtime: relocation ignored > > Undefined first referenced > > symbol in file > > slScheduler::playSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, >slEvent, int))../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::~slScheduler(void) ../../src/Sound/libSound.a(soundmgr.o) > > slDSP::open(char *, int, int, int) ../../src/Sound/libSound.a(soundmgr.o) > > gethostbyname >../../src/FDM/JSBSim/libJSBSim.a(FGfdmSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > smMixer::smMixer(void) ../../src/Sound/libSound.a(soundmgr.o) > > slDSP::close(void) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::loopSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, >slEvent, int))../../src/Sound/libSound.a(soundmgr.o) > > __slPendingError../../src/Sound/libSound.a(soundmgr.o) > > .LLC155 ../../src/FDM/libFlight.a(LaRCsimIC.o) > > gethostbyaddr >../../src/FDM/JSBSim/libJSBSim.a(FGfdmSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > slSample::autoMatch(slDSP *)../../src/Sound/libSound.a(soundmgr.o) > > inet_addr >/folks/salman/bin/lib/libplibnet.a(netSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > slScheduler::init(void) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::stopSample(slSample *, int)../../src/Sound/libSound.a(soundmgr.o) > > .LLC238 ../../src/Cockpit/libCockpit.a(hud_card.o) > > inet_ntoa >/folks/salman/bin/lib/libplibnet.a(netSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > smMixer::~smMixer(void) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, >slEnvelopeType)../../src/Sound/libSound.a(soundmgr.o) > > slSample::loadFile(char *) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::realUpdate(int)../../src/Sound/libSound.a(soundmgr.o) > > ld: fatal: Symbol referencing errors. No output written to fgfs > > collect2: ld returned 1 exit status > > make: *** [fgfs] Error 1 > > > > ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Solaris compile error
Its a Sparc Ultra 60 with Elite3D card. Salman On Wed, 6 Mar 2002 17:46:06 +0100 (MET) Martin Spott <[EMAIL PROTECTED]> wrote: > > > That looks really ugly ... could it be bugs/problems with the sun > > linker? > > Usually the sun assembler and linker - both in /usr/ccs/bin/ - are quite > fine with GCC. I've compiled more than 200 OpenSource packages using these > tools, so I believe you have to look somwhere else for this bug. > > After having a short look at the topic I have the impression that some > libraries might be missing at the linker command. On Solaris you will need > "-lsocket -lnsl" for binaries that do networking. > > Is this for Sparc or x86 ? I might have missed the message > > Martin. > -- > Unix _IS_ user friendly - it's just selective about who its friends are ! > -- > > ___ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel > -- Salman Sheikh NASA/GSFC Code 564 Greenbelt, MD 20771 301-286-3763 301-286-0220 (fax) ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Solaris compile error
Yes, all were built with gcc version 2.95.3. Salman On Wed, 6 Mar 2002 09:29:10 -0600 (CST) "Curtis L. Olson" <[EMAIL PROTECTED]> wrote: > That looks really ugly ... could it be bugs/problems with the sun > linker? Have you tried building simple C++ programs with this same > version of gcc? Did you biuld plib, simgear, flightgear, etc. all > with the same compiler? > > Curt. > > > Salman Sheikh writes: > > Got that fixed. Now on file linking I get the following error: > > > > > > c++ -DPKGLIBDIR=\"/folks/salman/bin/lib/FlightGear\" -g -O2 >-L/folks/salman/bin/lib -o fgfs main.o fg_commands.o fg_init.o fg_io.o fg_props.o >fgfs.o globals.o options.o splash.o viewer.o viewer_lookat.o viewer_rph.o viewmgr.o >../../src/Aircraft/libAircraft.a../../src/ATC/libATC.a >../../src/Autopilot/libAutopilot.a ../../src/Cockpit/libCockpit.a >../../src/Controls/libControls.a../../src/FDM/libFlight.a >../../src/FDM/Balloon/libBalloon.a ../../src/FDM/JSBSim/libJSBSim.a >../../src/FDM/YASim/libYASim.a ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a >../../src/FDM/LaRCsim/libLaRCsim.a ../../src/FDM/UIUCModel/libUIUCModel.a >../../src/GUI/libGUI.a ../../src/Navaids/libNavaids.a >../../src/Scenery/libScenery.a ../../src/Sound/libSound.a >../../src/Airports/libAirports.a ../../src/Network/libNetwork.a >../../src/Objects/libObjects.a ../../src/Time/libTime.a >../../src/WeatherCM/libWeatherCM.a ../../src/Input/libInput.a -lsgroute >-lsgsky -lsgephem -lsgti! mi! > ng! > > -lsgio -lsgscreen -lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml > -lsgserial -lplibpu -lplibfnt -lplibnet -lplibssg -lplibsg >-lmk4 -lz -L/space1/glut-3.7/lib/glut -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE >-lXi -lXext -lX11 -lsocket -lpthread -lm -lplibul -lm > > ld: warning: relocation error: R_SPARC_32: file >../../src/Cockpit/libCockpit.a(hud_card.o): symbol .LLC238: > > external symbolic relocation against non-allocatable section .stab; > > cannot be processed at runtime: relocation ignored > > ld: warning: relocation error: R_SPARC_32: file >../../src/FDM/libFlight.a(LaRCsimIC.o): symbol .LLC155: > > external symbolic relocation against non-allocatable section .stab; > > cannot be processed at runtime: relocation ignored > > Undefined first referenced > > symbol in file > > slScheduler::playSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, >slEvent, int))../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::~slScheduler(void) ../../src/Sound/libSound.a(soundmgr.o) > > slDSP::open(char *, int, int, int) ../../src/Sound/libSound.a(soundmgr.o) > > gethostbyname >../../src/FDM/JSBSim/libJSBSim.a(FGfdmSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > smMixer::smMixer(void) ../../src/Sound/libSound.a(soundmgr.o) > > slDSP::close(void) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::loopSample(slSample *, int, slPreemptMode, int, void (*)(slSample *, >slEvent, int))../../src/Sound/libSound.a(soundmgr.o) > > __slPendingError../../src/Sound/libSound.a(soundmgr.o) > > .LLC155 ../../src/FDM/libFlight.a(LaRCsimIC.o) > > gethostbyaddr >../../src/FDM/JSBSim/libJSBSim.a(FGfdmSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > slSample::autoMatch(slDSP *)../../src/Sound/libSound.a(soundmgr.o) > > inet_addr >/folks/salman/bin/lib/libplibnet.a(netSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > slScheduler::init(void) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::stopSample(slSample *, int)../../src/Sound/libSound.a(soundmgr.o) > > .LLC238 ../../src/Cockpit/libCockpit.a(hud_card.o) > > inet_ntoa >/folks/salman/bin/lib/libplibnet.a(netSocket.o) (symbol belongs to implicit >dependency /usr/lib/libnsl.so.1) > > smMixer::~smMixer(void) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::addSampleEnvelope(slSample *, int, int, slEnvelope *, >slEnvelopeType)../../src/Sound/libSound.a(soundmgr.o) > > slSample::loadFile(char *) ../../src/Sound/libSound.a(soundmgr.o) > > slScheduler::realUpdate(int)../../src/Sound/libSound.a(soundmgr.o) > > ld: fatal: Symbol referencing errors. No output written to fgfs > > collect2: ld retur
[Flightgear-devel] Solaris Compile of FG 0.7.10
Hello, I almost have Flight-Gear compiled for solaris. I am down to the following error: gmake[1]: Entering directory `/folks/salman/FlightGear-0.7.10/src/Main' c++ -DPKGLIBDIR=\"/opt/sis/lib/FlightGear\" -g -O2 -L/opt/sis/lib -L/usr/local/lib -o fgfs main.o fg_commands.o fg_init.o fg_io.o fg_props.o fgfs.o globals.o logger.o options.o splash.o viewer.o viewmgr.o location.o ../../src/Aircraft/libAircraft.a ../../src/ATC/libATC.a ../../src/Autopilot/libAutopilot.a ../../src/Cockpit/libCockpit.a ../../src/Cockpit/built_in/libBuilt_in.a ../../src/Controls/libControls.a ../../src/FDM/libFlight.a ../../src/FDM/Balloon/libBalloon.a ../../src/FDM/JSBSim/libJSBSim.a ../../src/FDM/YASim/libYASim.a ../../src/FDM/JSBSim/filtersjb/libfiltersjb.a ../../src/FDM/LaRCsim/libLaRCsim.a ../../src/FDM/UIUCModel/libUIUCModel.a ../../src/GUI/libGUI.a ../../src/Model/libModel.a ../../src/Navaids/libNavaids.a ../../src/Scenery/libScenery.a ../../src/Sound/libSound.a ../../src/Airports/libAirports.a ../../src/Network/libNetwork.a ../../src/Objects/libObjects.a ../../src/Time/libTime.a ../../src/WeatherCM/libWeatherCM.a ../../src/Input/libInput.a -lsgroute -lsgsky -lsgephem -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgdebug -lsgmagvar -lsgmisc -lsgxml -lsgserial -lplibpu -lplibfnt -lplibnet -lplibssg -lplibsg -lplibsl -lplibsm -lmk4 -lz -lnsl -lsocket -L/usr/openwin/lib -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lsocket -lpthread -lm -lplibul -lm ../../src/Cockpit/libCockpit.a(hud_card.o): In function `hud_card::zoomed_scale(int, int)': /folks/salman/FlightGear-0.7.10/src/Cockpit/hud_card.cxx:1263: undefined reference to `LLC177' ../../src/FDM/libFlight.a(LaRCsimIC.o): In function `LaRCsimIC::solve(double *, double)': /folks/salman/FlightGear-0.7.10/src/FDM/LaRCsimIC.cxx:382: undefined reference to `LLC150' collect2: ld returned 1 exit status gmake[1]: *** [fgfs] Error 1 gmake[1]: Leaving directory `/folks/salman/FlightGear-0.7.10/src/Main' gmake: *** [all-recursive] Error 1 Also, I had other errors but I eliminated them by adding -lplibsl and -lplibsm to the Makefile in the src/Main directory. I would have thought those would automatically be included. I am using simgear0.18 and plib-1.4.2. Any ideas? I don't see any functions LLC177 and LLC150 in the files hud_card.cxx an LaRCsimIC.cxx in the lines referenced in the errors above. Line 1263 in the hud_card.cxx file is drawOneLine(xpoint,ypoint+10.0,xpoint-5.0,ypoint+5.0); and Line 382 in the LaRCsimIC.cxx file is: return success; -- Salman Sheikh 301-286-3763 301-286-0220 (fax) ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel