Author Topic: Cannot find -lpthread  (Read 6644 times)

Fromwithin

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • http://fromwithin.com/
Cannot find -lpthread
« on: May 30, 2004, 11:03:25 am »
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

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Cannot find -lpthread
« Reply #1 on: May 30, 2004, 11:23:16 am »
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

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • http://fromwithin.com/
Cannot find -lpthread
« Reply #2 on: May 30, 2004, 12:31:10 pm »
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

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • http://fromwithin.com/
Cannot find -lpthread
« Reply #3 on: May 30, 2004, 12:35:31 pm »
Bloody hell, it worked.

Cool. Now to get it running properly.

Cheers.