[M3devel] Didn't happen for long time now... pthread related error while ./scripts/do-cm3-std.sh build

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Wed Jan 9 04:48:25 CET 2008


Hi:
Try putting 
  "LIBC"       : [ "-lm", "-lpthread" ],
in cm3.cfg file I think in this Ubuntu it happened the same, so try and let we know what happens.

Daniel Benavides

Dragiša Durić <dragisha at m3w.org> wrote:
 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ć 



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

Web Revelación Yahoo! 2007:
 Premio Favorita del Público - ¡Vota tu preferida!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080109/5b09e859/attachment-0002.html>


More information about the M3devel mailing list