[Python-bugs-list] [ python-Bugs-618615 ] thread_pthread:undefined ref to sem_post

noreply@sourceforge.net noreply@sourceforge.net
Fri, 04 Oct 2002 08:50:33 -0700


Bugs item #618615, was opened at 2002-10-04 10: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: Open
Resolution: None
Priority: 5
Submitted By: Jeff Bauer (jeffbauer)
Assigned to: Nobody/Anonymous (nobody)
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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=618615&group_id=5470