Help - Search - Members - Calendar
Full Version: Cannot find -lpthread
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Linux Applications
Fromwithin
As the only Spectrum emulators I can find for the Zaurus are awful slow Java ones, I did a search and found fbzx which uses SDL.

So I downloaded it and am trying to compile it on the Zaurus itself using gcc 2.95.2. It gets pretty far before coming up with:

ld: cannot find -lpthread
collect2: ld returned 1 exit status

The line causing this includes -lpthread to the linker, but libpthread is definitely in the path. I think the SDL libraries need to link with it as if I remove the reference, it complains that the SDL library can't find various thread functions.

Anybody got any ideas? Searching for the problem via Google brings up references to the same problem on FreeBSD and various other apps, but no solutions that work.

It's driving me mad.
Zazz
Just a guess: you only have something like libpthread-0.9.so and/or libpthread.so.0 but the symlink to libpthread.so is missing.
Fromwithin
QUOTE
Just a guess: you only have something like libpthread-0.9.so and/or libpthread.so.0 but the symlink to libpthread.so is missing.


I thought it might be something like that, but the location of libpthread.so.0 is read only so I didn't bother trying. Now that you've also thought of it, I'll give it a go. I'll put a link to it in one of the other library folders and give it a whirl. If that doesn't work, I'll have to remount as rw and try it in the original location.

Thanks.
Fromwithin
Bloody hell, it worked.

Cool. Now to get it running properly. smile.gif

Cheers.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.