bugmldonkey, a multi-networks file-sharing client - Bugs: bug #14281, Pthread Problem

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14281: Pthread Problem

Submitter:  Elliot <ellmout>
Submitted:  Wed 24 Aug 2005 07:07:38 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Compilation problem Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed
Release:  2.6.3 Release: 
Operating System:  Linux Binaries Origin:  CVS / Self compiled
CPU type:  Intel x86

Jump to the original submission

Sun 13 Nov 2005 02:16:53 PM UTC, comment #9: 

It's now working for me.
It was a Glibc compilation error.

Elliot <ellmout>
Thu 25 Aug 2005 01:21:11 PM UTC, comment #8: 

configure:10868: checking whether pthreads work with -pthread
configure:10951: gcc -o conftest -g -O2 -pthread   conftest.c  -lcharset  /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib >&5
/tmp/ccwfeATv.o: In function `main':
/usr/local/mldonkey/mldonkey-2.5-3/mldonkey/config/configure:10942: undefined reference to `__pthread_register_cancel'
/usr/local/mldonkey/mldonkey-2.5-3/mldonkey/config/configure:10943: undefined reference to `__pthread_unregister_cancel'
collect2: ld returned 1 exit status
configure:10954: $? = 1
configure: failed program was:
#line 10936 "configure"
#include "confdefs.h"
#include <pthread.h>
int
main ()
{
pthread_t th; pthread_join(th, 0);
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  ;
  return 0;
}
configure:10972: result: no

:-S

Elliot <ellmout>
Thu 25 Aug 2005 01:10:02 PM UTC, comment #7: 

Look for this line:

configure:12560: checking whether pthreads work with -pthread

further it looks like this here:

configure:12646: gcc -o conftest -g -O2 -pthread   conftest.c    >&5
configure:12652: $? = 0
configure:12655: test -z                         || test ! -s conftest.err
configure:12658: $? = 0
configure:12661: test -s conftest
configure:12664: $? = 0
configure:12678: result: yes

spiralvoice <spiralvoice>
Group administrator
Thu 25 Aug 2005 12:49:56 PM UTC, comment #6: 

configure:10763: checking for pthread_join in LIBS=yes with CFLAGS=
configure:10785: gcc -o conftest -g -O2    conftest.c yes -lcharset  /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib >&5
gcc: yes: No such file or directory
configure:10788: $? = 1
configure: failed program was:
#line 10765 "configure"
#include "confdefs.h"

/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char pthread_join ();
int
main ()
{
pthread_join ();
  ;
  return 0;
}

in config.log

Elliot <ellmout>
Thu 25 Aug 2005 11:59:11 AM UTC, comment #5: 

home:/usr/lib# ls -la | grep pthread
lrwxr-xr-x    1 root        root           26 Mar 11 20:51 libgcrypt-pthread.so.7 -> libgcrypt-pthread.so.7.3.0
-rw-r--r--    1 root        root         301K Jul 15  2004 libgcrypt-pthread.so.7.3.0
-rw-r--r--    1 root        root         710K Aug  4 19:41 libpthread.a
-rw-r--r--    1 root        root          216 Aug  4 19:41 libpthread.so
-rw-r--r--    1 root        root          13K Aug  4 19:41 libpthread_nonshared.a
home:/usr/lib# cat libpthread.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a

I'm on debian :-)

Some other program are using Pthread but mldonkey can't find it !

Elliot <ellmout>
Thu 25 Aug 2005 10:58:35 AM UTC, comment #4: 

On Gentoo & Debian it looks like this:

checking whether pthreads work with -pthread... yes

gentoo lib # pwd
/lib
gentoo lib # ls -la | grep pthread
-rwxr-xr-x   1 root root  112766 16. Aug 16:21 libpthread-2.3.5.so
lrwxrwxrwx   1 root root      19 16. Aug 16:21 libpthread.so.0 -> libpthread-2.3.5.so

debian:/lib# pwd
/lib
debian:/lib# ls -la | grep pthread
-rw-r--r--   1 root root   81127 2005-05-10 22:01 libpthread-0.10.so
lrwxrwxrwx   1 root root      18 2005-05-11 22:36 libpthread.so.0 -> libpthread-0.10.so

debian:/lib# cd /usr/lib
debian:/usr/lib# ls -la | grep pthread
-rw-r--r--   1 root root  2123830 2005-05-10 21:55 libpthread.a
-rw-r--r--   1 root root    52264 2005-05-10 21:55 libpthread_nonshared.a
-rw-r--r--   1 root root      216 2005-05-10 21:55 libpthread.so
debian:/usr/lib# cat libpthread.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )

spiralvoice <spiralvoice>
Group administrator
Thu 25 Aug 2005 10:51:11 AM UTC, comment #3: 

Which Linux distro are you using?

spiralvoice <spiralvoice>
Group administrator
Thu 25 Aug 2005 09:37:58 AM UTC, comment #2: 

home:/usr/local/lib# ls | grep pthread
-rwxr-xr-x   1 root root   1.1M Aug 25 11:34 libpthread-0.10.so
-rwxr-xr-x   1 root root    232 Aug 25 11:33 libpthread-2.3.5.so
-rw-r--r--   1 root root   2.2M Aug 22 16:16 libpthread.a
lrwxrwxrwx   1 root root     19 Aug 22 15:46 libpthread.so -> libpthread-2.3.5.so
lrwxrwxrwx   1 root root     18 Aug 25 11:35 libpthread.so.0 -> libpthread-0.10.so
-rw-r--r--   1 root root    53K Aug 22 16:16 libpthread_nonshared.a
-rw-r--r--   1 root root   2.2M Aug 22 16:16 libpthread_p.a

Elliot <ellmout>
Thu 25 Aug 2005 09:09:17 AM UTC, comment #1: 

Do you have a file libpthread.so?
On Debian? Do you have libc6-dev installed?

spiralvoice <spiralvoice>
Group administrator
Wed 24 Aug 2005 07:07:38 PM UTC, original submission:  

./configure return

checking for pthread_join in LIBS=yes with CFLAGS=... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no

but Glibc return :

/usr/local/lib/libc.so.6
GNU C Library stable release version 2.3.5, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.2.
Compiled on a Linux 2.6.12.2 system on 2005-08-09.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

What do i need to make Threads work ??



Elliot <ellmout>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #3400:  config.log added by ellmout (43KiB - application/octet-stream - Log of Configure)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-11-13 spiralvoice Open/ClosedOpen Closed
2005-11-13 spiralvoice StatusNeed Info Wont Fix
2005-08-25 ellmout Attached File- Added config.log, #2861
2005-08-25 spiralvoice StatusNone Need Info

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code