Hi:<br>Try putting <br> "LIBC" : [ "-lm", "-lpthread" ],<br>in cm3.cfg file I think in this Ubuntu it happened the same, so try and let we know what happens.<br><br>Daniel Benavides<br><br><b><i>Dragiša Durić <dragisha@m3w.org></i></b> wrote:<br><blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> I have Fedora6 on this box, and I've building cm3 for long time on it.<br>Last night ago I've updated my local repo to CVS head, and tried this<br>script.. It breaks on every package linking pthread, looks like. Then I<br>cd to package folder, type "cm3", and it links ok. Example is at end of<br>message.<br><br>cm3.cfg changes? Here is what I think is relevant in my current.<br><br><br>% grep -i pthread /usr/local/cm3/bin/cm3.cfg -A1 -B1<br> "LIBC" : [ "-lm" ],<br> "PTHREAD" : ["-L/usr/lib", "-lpthread"],<br>%-- not on most Linux platforms<br>--<br>SYSTEM_LIBORDER = [ "OPENGL", "DECPEX",
"MOTIF", "X11", "TCP", "ODBC",<br> "POSTGRES95", "FLEX-BISON", "LEX-YACC", "LIBC",<br>"PTHREAD" ]<br><br>TIA,<br>dd<br><br><br>> === package m3-tools/m3totex ===<br>> +++ 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' +++<br>> --- building in LINUXLIBC6 ---<br>> <br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-tools/m3bundle/LINUXLIBC6/m3bundle -name B -F/var/tmp/qk<br>> new source -> compiling B.i3<br>> new source -> compiling B.m3<br>> new source -> compiling m3totex.m3<br>> -> linking m3totex<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_init'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_key_create'<br>>
/home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_attr_setstacksize'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_kill'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_getspecific'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_create'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_attr_getstacksize'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_post'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_detach'<br>>
/home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_getvalue'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `pthread_setspecific'<br>> /home/dragisha/src/cm3-cvshead-0629/cm3/m3-libs/m3core/LINUXLIBC6/libm3core.so: undefined reference to `sem_wait'<br>> collect2: ld returned 1 exit status<br>> Fatal Error: package build failed<br>> *** execution of failed ***<br>> faramir:dragisha/pts/7: src/cm3-cvshead-0629/cm3% cd m3-tools/m3totex<br>> faramir:dragisha/pts/7: cm3/m3-tools/m3totex% cm3<br>> --- building in LINUXLIBC6 ---<br>> <br>> ignoring ../src/m3overrides<br>> <br>> -> linking m3totex<br>> faramir:dragisha/pts/7: cm3/m3-tools/m3totex% which cm3<br>> /usr/local/cm3/bin/cm3<br>> faramir:dragisha/pts/7: cm3/m3-tools/m3totex% echo $CM3<br>> cm3 -DPTHREAD<br>> <br>-- <br>Dragiša Durić
<dragisha@m3w.org><br><br></dragisha@m3w.org></blockquote><br><p>
<hr size=1><br><font face="Verdana" size="-2">Web Revelación Yahoo! 2007:<br> Premio Favorita del Público - <a href="http://es.promotions.yahoo.com/revelacion2007/favoritos/">¡Vota tu preferida!</a></font>