Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-11-2008, 12:12 PM   #1
Registered: Jan 2007
Location: Portugal
Distribution: Slackware 13.0
Posts: 52

Rep: Reputation: 15 must be installed for pthread_cancel to work

This happens on a custom app using lots of threads, the conditions of why this happens are not very clear, wouldn't it be a multi-threaded program.

I use the -lpthread flags to gcc when compiling it.

find / -iname 'libgcc_s*' -print 2> /dev/null

Last edited by dlinux; 10-11-2008 at 12:18 PM.
Old 10-11-2008, 01:54 PM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,874

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
The app is probably written in C++, so it needs the compiler libs. I could be wrong, but I think this will explain it...
Old 10-11-2008, 06:51 PM   #3
Registered: Jan 2007
Location: Portugal
Distribution: Slackware 13.0
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for the reply, the app is written in C.
If i add -lgcc_s to the compilation it now works(it does not give that error, just a too many threads error if i create above
1000 threads but POSIX says that the max number of simultaneous threads is implementation-defined, so ok).

The problem is then resolved, although i think it's a toolchain problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post in RHEL3 Dreamchild Red Hat 2 06-06-2007 09:24 AM
Need to get furiousV Linux - Newbie 4 08-05-2005 09:40 AM
pthread_cancel(pthread_t thread) wrong on Redhat 9!!!! tclwp Programming 3 01-14-2005 08:08 AM for RedHat 6.0 Killbot_5000 Linux - Software 0 10-08-2004 03:47 PM is not installed londonboi Linux - Software 2 08-08-2003 01:35 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration