Date: Sun, 17 Dec 2006 11:16:07 GMT From: "Roberto F. Arroyo"<robfram@ugr.es> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/106830: ports failing with libgthread-2.0, pthread_getschedparam missing Message-ID: <200612171116.kBHBG72w048612@www.freebsd.org> Resent-Message-ID: <200612171120.kBHBKGJZ040501@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612171116.kBHBG72w048612>