Ok i'm really confused on what it is your trying to do. Are you trying to
build a package with pth libpthread instead of the system libpthread?

If so you should install pth libpthread somewhere other than the system lib
and include dirs, such as /usr/local/lib and /usr/local/include. Then
whatever your building with the pth libpthread makesure that it looks in
/usr/local first when resolving includes and libs, i.e to build a program
called test.c with pth threads do the following.

gcc -o test test.c -I/usr/lcoal/include -L/usr/local/lib -lpthread

I'm running on Mandrake 9.0 and building Opensource packages using this
technic.

However I did build pth myself and didn't use the Mandrake package, which
you might want to try, heres the link to the source.

http://www.gnu.org/directory/GNU/pth.html

Hope this helps some.

P.S. Is this mondo not working with native threads?




-----Original Message-----
From: Kevin Cosgrove [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: can pthread and pth coexist 



On 23 October 2003 at 14:42, Steve Alstrin <[EMAIL PROTECTED]> wrote:

> Yes you did miss something, but it's not your fault, heehee. Include the
> pthread.h file before any other system files and that should fix the
> problem.

OK, I just did that and it didn't work.  But, I fixed it after that.
Here's the story:

- I'm running Pth 1.4.1 on Mandrake 9.0
- The libpth14-devel package _doesn't_ include libpthread stuff
- I rebuilt libpth14-devel adding libpthread to it
- The Pth makefile doesn't install the .a nor .so.* files -- Mandrake
  caught this and fixed it in the RPM for the libpth stuff
- I copied the .a & .so.* files to their required location after
  doing the make install
- After all of the above mondo contained its own shutdown() function
  which conflicted with a system shutdown() function -- this didn't 
  conflict until I installed Pth's pthread API stuff.
- I renamed mondo's shutdown() to mondo_shutdown() and the conflict
  went away
- Mondo built just fine after that

Then I ran mondo and the non-working results looked _exactly_ like 
the non-working results I got when using pthreads from glibc 2.2.5.

Thanks for the Pth help!

Back to the drawing board for me....


______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
Development Site                      http://www.ossp.org/pkg/lib/pth/
Distribution Files                          ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots                 ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
Development Site                      http://www.ossp.org/pkg/lib/pth/
Distribution Files                          ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots                 ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to