[Python-bugs-list] [ python-Bugs-618615 ] thread_pthread:undefined ref to sem_post
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 06 Oct 2002 04:48:46 -0700
Bugs item #618615, was opened at 2002-10-04 17:50
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=618615&group_id=5470
Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jeff Bauer (jeffbauer)
Assigned to: Martin v. Löwis (loewis)
Summary: thread_pthread:undefined ref to sem_post
Initial Comment:
On Solaris 2.6, thread_pthread.h:412:
undefined reference to 'sem_post'
gcc version 2.95.2 19991024 (release)
ar cr libpython2.3.a Modules/threadmodule.o
Modules/signalmodule.o Modules/posixmodule.o
Modules/errnomodule.o Modules/_sre.o
Modules/symtablemodule.o Modules/xxsubtype.o
ranlib libpython2.3.a
gcc -Xlinker --export-dynamic -o python \
Modules/python.o \
libpython2.3.a -lsocket -lnsl -ldl
-lpthread -lm
libpython2.3.a(thread.o): In function
`PyThread_allocate_lock':
/export/home/jbauer/CVSPython/python/dist/src/Python/thread_pthread.h:334:
undefined reference to `sem_init'
libpython2.3.a(thread.o): In function
`PyThread_free_lock':
/export/home/jbauer/CVSPython/python/dist/src/Python/thread_pthread.h:358:
undefined reference to `sem_destroy'
libpython2.3.a(thread.o): In function
`PyThread_acquire_lock':
/export/home/jbauer/CVSPython/python/dist/src/Python/thread_pthread.h:387:
undefined reference to `sem_wait'
/export/home/jbauer/CVSPython/python/dist/src/Python/thread_pthread.h:389:
undefined reference to `sem_trywait'
libpython2.3.a(thread.o): In function
`PyThread_release_lock':
/export/home/jbauer/CVSPython/python/dist/src/Python/thread_pthread.h:412:
undefined reference to `sem_post'
collect2: ld returned 1 exit status
make: *** [python] Error 1
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-10-06 13:48
Message:
Logged In: YES
user_id=21627
Fixed with configure.in 1.352; configure 1.341;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=618615&group_id=5470