misc/106830: ports failing with libgthread-2.0,
pthread_getschedparam missing
Roberto F. Arroyo
robfram at ugr.es
Sun Dec 17 03:20:22 PST 2006
>Number: 106830
>Category: misc
>Synopsis: ports failing with libgthread-2.0, pthread_getschedparam missing
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 17 11:20:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Roberto F. Arroyo
>Release: FreeBSD 6.1-STABLE
>Organization:
Universidad de Granada
>Environment:
FreeBSD caleacpc.cjb.net 6.1-STABLE FreeBSD 6.1-STABLE #19: Sun Oct 1 10:43:33 CEST 2006 root at caleacpc:/usr/src/sys/i386/compile/MYKERNEL i386
>Description:
Trying to run several applications gives the the same problem commented in
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/101458
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/102843
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/102844
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/103322
I use this report to add a list of ports currently failing to run due to undefined symbol pthread_getschedparam.
I don't know really if glib20->libgthread2 must be compiled with specific options to handle threads correctly. I have devel/pth for providing a libpthread.so.
Ports to patch:
devel/geany
audio/tagtool
>How-To-Repeat:
devel/geany:
Execute it and choose File->Open, instead the dialog it will exit with the message:
/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam"
I apply the
> -LDFLAGS=3D"-L${LOCALBASE}/lib"
> +LDFLAGS=3D"-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
patch to Makefile, and it added the -pthread correctly, but with identical results.
Testing with the workarounds it fails just as it start:
env LD_PRELOAD=/usr/lib/libc_r.so geany
Fatal error 'Spinlock called when not threaded.' at line 87 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
Segmentation fault: 11 (core dumped)
audio/tagtool:
Simply execute it.
This port came with the ${PTHREAD_LIBS}, but the same message results at end.
$ tagtool
/libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.0: Undefined symbol "pthread_getschedparam"
$ env LD_PRELOAD=/usr/lib/libc_r.so tagtool
Fatal error 'Cannot allocate red zone for initial thread' at line 378 in file /usr/src/lib/libc_r/uthread/uthread_init.c (errno = 12)
Abort trap: 6 (core dumped)
>Fix:
geany package seems to work fine. I didn't test tagtool, but I suppose it will work fine too.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list