[Flightgear-devel] FGFS final link fails: _imp__pthread symbols not found

2005-05-30 Thread Giles Robertson
I've tried compiling fgfs from cvs on mingw again. There are various little 
changes which I'll roll up at some point (as in, when it's working ;).
 
However, there's an odd problem I'm getting at final link:

g++ -DPKGLIBDIR=\/point/share/FlightGear\ -g -O2 -D_REENTRANT  -L/point/lib 
-o fgfs.exe  bootstrap.o ../../src/Main/libMain.a 
../../src/Aircraft/libAircraft.a ../../src/ATC/libATC.a 
../../src/Cockpit/libCockpit.a ../../src/Cockpit/built_i
 n/libBuilt_in.a ../../src/Controls/libControls.a 
../../src/FDM/libFlight.a ../.. 
/src/FDM/Balloon/libBalloon.a ../../src/FDM/ExternalNet/libExternalNet.a 
../../s 
rc/FDM/ExternalPipe/libExternalPipe.a ../../src/FDM/JSBSim/libJSBSim.a 
../../src /FDM/YASim/libYASim.a 
../../src/FDM/JSBSim/filtersjb/libfiltersjb.a ../../src/FD  
   M/LaRCsim/libLaRCsim.a 
../../src/FDM/UIUCModel/libUIUCModel.a ../../src/FDM/SP/l   
  ibSPFDM.a ../../src/GUI/libGUI.a 
../../src/Autopilot/libAutopilot.a ../../src/In 
put/libInput.a ../../src/Instrumentation/libInstrumentation.a 
../../src/Model/li bModel.a 
../../src/AIModel/libAIModel.a ../../src/Network/libNetwork.a ../../src 
/Navaids/libNavaids.a 
../../src/Scenery/libScenery.a ../../src/Scripting/libScri  
   pting.a ../../src/Sound/libSound.a 
../../src/Airports/libAirports.a  ../../src/R   
  eplay/libReplay.a ../../src/Systems/libSystems.a 
../../src/Time/libTime.a ../../ 
src/Traffic/libTraffic.a ../../src/Environment/libEnvironment.a -lsgclouds3d 
-lsgroute -lsgsky -lsgsound -lsgephem -lsgmaterial -lsgtgdb -lsgmodel 
-lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket -lsgprops -lsgdebug -lsgmagvar 
-lsgmisc -lsgnasal -lsgxml -lsgsound -lsgserial -lsgstructure -lsgenvironment 
-lsgthreads  -lplibpu -lplibfnt -lplibjs -lplibnet -lplibssg -lplibsg -lplibul  
-lz -lglut32 -lglu32 -lopengl32 -luser32 -lgdi32 -lALut -lopenal32  -lws2_32  
-lwinmm -ldsound -ldxguid -lole32 
Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
../../src/Scenery/libScenery.a(tilemgr.o)(.text+0xb7a): In function 
`ZN9FGTileMgr16all_queues_emptyEv':
C:/msys/1.0/point/include/simgear/threads/SGThread.hxx:232: undefined reference 
to `_imp__pthread_mutex_lock'
../../src/Scenery/libScenery.a(tilemgr.o)(.text+0xb9e):C:/msys/1.0/point/include/simgear/threads/SGThread.hxx:238:
 undefined reference to `_imp__pthread_mutex_unlock'
 
This continues for many screens (and for many other calls - it's not just mutex 
related).
 
The error is the same whether or not I add -lpthread to the command.
 
Investigating the pthread library, all the calls are present in the form 
_pthread (_pthread_mutex_lock, _pthread_mutex_unlock, _pthread_cond_destroy 
etc), but none with the _imp_ prefix.
 
gcc 3.4.2 (mingw-special) with win32 thread model.
 
Does anybody have any ideas about what is going wrong?
 
Giles Robertson
 
PS: Apologies for the html email.

 

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] FGFS final link fails: _imp__pthread symbols not found

2005-05-30 Thread Harald JOHNSEN

Giles Robertson wrote:


I've tried compiling fgfs from cvs on mingw again. There are various little 
changes which I'll roll up at some point (as in, when it's working ;).

However, there's an odd problem I'm getting at final link:

g++ -DPKGLIBDIR=\/point/share/FlightGear\ -g -O2 -D_REENTRANT  -L/point/lib 
-o C:/msys/1.0/point/include/simgear/threads/SGThread.hxx:232: undefined reference to 
`_imp__pthread_mutex_lock'
../../src/Scenery/libScenery.a(tilemgr.o)(.text+0xb9e):C:/msys/1.0/point/include/simgear/threads/SGThread.hxx:238:
 undefined reference to `_imp__pthread_mutex_unlock'

This continues for many screens (and for many other calls - it's not just mutex 
related).

The error is the same whether or not I add -lpthread to the command.

Investigating the pthread library, all the calls are present in the form 
_pthread (_pthread_mutex_lock, _pthread_mutex_unlock, _pthread_cond_destroy 
etc), but none with the _imp_ prefix.

gcc 3.4.2 (mingw-special) with win32 thread model.

Does anybody have any ideas about what is going wrong?

Giles Robertson

PS: Apologies for the html email.



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

 

I know nothing about mingw but perhaps you are using the wrong 
pthread.lib(.a)
The msvc pthreadVC2.lib that I use have symbols begining with _imp, 
perhaps you should pick this one.


Harald.


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d