[M3devel] Didn't happen for long time now... pthread related error while ./scripts/do-cm3-std.sh build
Dragiša Durić
dragisha at m3w.org
Tue Jan 8 09:13:22 CET 2008
I have Fedora6 on this box, and I've building cm3 for long time on it.
Last night ago I've updated my local repo to CVS head, and tried this
script.. It breaks on every package linking pthread, looks like. Then I
cd to package folder, type "cm3", and it links ok. Example is at end of
message.
cm3.cfg changes? Here is what I think is relevant in my current.
% grep -i pthread /usr/local/cm3/bin/cm3.cfg -A1 -B1
"LIBC" : [ "-lm" ],
"PTHREAD" : ["-L/usr/lib", "-lpthread"],
%-- not on most Linux platforms
--
SYSTEM_LIBORDER = [ "OPENGL", "DECPEX", "MOTIF", "X11", "TCP", "ODBC",
"POSTGRES95", "FLEX-BISON", "LEX-YACC", "LIBC",
"PTHREAD" ]
TIA,
dd
> === package m3-tools/m3totex ===
> +++ cm3 -DPTHREAD -build -override -DROOT='/home/dragisha/src/cm3-cvshead-0629/cm3' -DCM3_VERSION_TEXT='d5.5.1' -DCM3_VERSION_NUMBER='050501' -DCM3_LAST_CHANGED='2007-12-30' +++
> --- building in LINUXLIBC6 ---
>
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-tools/m3bundle/LINUXLIBC6/m3bundle -name B -F/var/tmp/qk
> new source -> compiling B.i3
> new source -> compiling B.m3
> new source -> compiling m3totex.m3
> -> linking m3totex
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_init'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_key_create'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_attr_setstacksize'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_kill'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_getspecific'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_create'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_attr_getstacksize'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_post'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_detach'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_getvalue'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_setspecific'
> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_wait'
> collect2: ld returned 1 exit status
> Fatal Error: package build failed
> *** execution of failed ***
> faramir:dragisha/pts/7: src/cm3-cvshead-0629/cm3% cd m3-tools/m3totex
> faramir:dragisha/pts/7: cm3/m3-tools/m3totex% cm3
> --- building in LINUXLIBC6 ---
>
> ignoring ../src/m3overrides
>
> -> linking m3totex
> faramir:dragisha/pts/7: cm3/m3-tools/m3totex% which cm3
> /usr/local/cm3/bin/cm3
> faramir:dragisha/pts/7: cm3/m3-tools/m3totex% echo $CM3
> cm3 -DPTHREAD
>
--
Dragiša Durić <dragisha at m3w.org>
More information about the M3devel
mailing list