More problems

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to pthread_create' /usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../libSDL.so: undefined reference topthread_cancel’
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to sem_destroy' /usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../libSDL.so: undefined reference tosem_wait’
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to sem_post' /usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../libSDL.so: undefined reference topthread_mutexattr_setkind_np’
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to sem_init' /usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../libSDL.so: undefined reference topthread_sigmask’
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to sem_trywait' /usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../libSDL.so: undefined reference topthread_mutexattr_init’
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to sem_getvalue' /usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../libSDL.so: undefined reference topthread_join’
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to `pthread_cond_timedwait’
collect2: ld returned 1 exit status–
Wie viele Microsoft Angestellte braucht man um eine Gl?hbirne
auszuwechseln?
Keinen, sie rufen bei INTEL an, weil es ein Hardwareproblem ist.

Not sure if anyone ever responded to this, but it looks like you are missing
the pthreads library. I’m actually shocked, I didn’t think there were any
RPM-based distros anymore that shiped without libpthreads ;-)On Saturday 25 August 2001 7:25am, David Weisgerber wrote:

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to `pthread_create’


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Tux4Kids: < http://www.geekcomix.com/tux4kids/ >

Samuel Hart wrote:

Because I couldn’t compile, I installed the rpms, now I get this:
/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to `pthread_create’
Not sure if anyone ever responded to this, but it looks like you are missing
the pthreads library. I’m actually shocked, I didn’t think there were any
RPM-based distros anymore that shiped without libpthreads :wink:
tss…
one things is sure: you don’t link with pthread ! (the message don’t
list any missing library, but missing function)

so you must link with pthread by adding to your LDFLAGS: -lpthread

Remember the standard installation instructions for most RPMs you find out
there on the net involve forced ignore all dependencies, which kinda
defeats the purpose of a package manager but whatever… I’m sure it’s
there. Installed by default is another question though.On Mon, Aug 27, 2001 at 02:44:28PM -0700, Samuel Hart wrote:

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to `pthread_create’

Not sure if anyone ever responded to this, but it looks like you are missing
the pthreads library. I’m actually shocked, I didn’t think there were any
RPM-based distros anymore that shiped without libpthreads :wink:


Joseph Carter Free software developer

should a bug be marked critical if it only affects one arch?
jt: rc for that arch maybe, but those kind of arch
specific bugs are rare…
not when it’s caused by a bug in gcc
jt: get gcc removed from that arch. :slight_smile:

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20010827/33d34a6b/attachment.pgp

As a side question from a newbie in the linux world … what exactly does the
pthreads library do? Thread management?> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Samuel Hart
Sent: Monday, August 27, 2001 5:44 PM
To: sdl at libsdl.org
Subject: Re: [SDL] More problems

On Saturday 25 August 2001 7:25am, David Weisgerber wrote:

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to `pthread_create’

Not sure if anyone ever responded to this, but it looks like you are missing

the pthreads library. I’m actually shocked, I didn’t think there were any
RPM-based distros anymore that shiped without libpthreads :wink:


Sam “Criswell” Hart AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Tux4Kids: < http://www.geekcomix.com/tux4kids/ >


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so:
undefined
reference to `pthread_create’

I am a little confused to when you get this error. Have you searched for the
libpthread.so in all possible directories? It should be in either /usr/lib og
/lib directory?
Maybe you just need to link with the pthreads library in your application. I
know this because I encountered this same linker error in an application. SDL
compiled alright, but I had to link with -lpthread to get my application to link
together (this even though I had -lSDL too)

/Gorm

As a side question from a newbie in the linux world … what exactly does the
pthreads library do? Thread management?

It provides posix-allmost-compliant threads under linux.
One good way to see what a library contains is to use the
"nm" command. Coupled with a few lines of shell script, it allows you to
find what library contains the definition of “that bloody undefined
reference”.On Tue, 28 Aug 2001, Cameron Aycock wrote:


Johann Deneux

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so:
undefined
reference to `pthread_create’

I am a little confused to when you get this error. Have you searched for the
libpthread.so in all possible directories? It should be in either /usr/lib og
/lib directory?
Maybe you just need to link with the pthreads library in your application. I
know this because I encountered this same linker error in an application. SDL
compiled alright, but I had to link with -lpthread to get my application to link
together (this even though I had -lSDL too)

I used to believe it was possible to include depedencies when building
shared libraries.
Anyway, your sdl library should come with a nice little shell script,
sdl-config, that tells you what flags should be passed to compile and link
correctly a soft using SDL.On Wed, 29 Aug 2001 gorm at lai.as wrote:


Johann Deneux
http://www.esil.univ-mrs.fr/~jdeneux/projects/

Yes. It’s a posix compliant API that allows you to create and manage
threads (with shared memory and file descriptors, but separate CPU
contexts and stacks) and various sync constructs.

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Tuesday 28 August 2001 16:58, Cameron Aycock wrote:

As a side question from a newbie in the linux world … what exactly
does the pthreads library do? Thread management?

Yes. It’s the POSIX API for threads.–
Paulo Pinto

----- Original Message -----
From: cameron@himark.com (Cameron Aycock)
To:
Sent: Tuesday, August 28, 2001 3:58 PM
Subject: RE: [SDL] More problems

As a side question from a newbie in the linux world … what exactly does
the
pthreads library do? Thread management?

-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Samuel Hart
Sent: Monday, August 27, 2001 5:44 PM
To: sdl at libsdl.org
Subject: Re: [SDL] More problems

On Saturday 25 August 2001 7:25am, David Weisgerber wrote:

Because I couldn’t compile, I installed the rpms, now I get this:

/usr/lib/gcc-lib/i586-mandrake-linux/2.96/…/…/…/libSDL.so: undefined
reference to `pthread_create’

Not sure if anyone ever responded to this, but it looks like you are
missing

the pthreads library. I’m actually shocked, I didn’t think there were any
RPM-based distros anymore that shiped without libpthreads :wink:


Sam “Criswell” Hart AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Tux4Kids: < http://www.geekcomix.com/tux4kids/ >


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl