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

Jay jayk123 at hotmail.com
Tue Jan 8 14:24:00 CET 2008


Not my area of expertise, but, try this:
 > "LIBC" : [ "-lm", "-L/usr/lib", "-lpthread" ],  > "PTHREAD" : [ ], 
 
and look here:
 
http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/src/config/LINUXLIBC6?rev=1.20;content-type=text%2Fplain
 
or here:
 
http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/src/config-no-install/LINUXLIBC6?rev=1.10;content-type=text%2Fplain
 
..ok, which suggests really, try this:
 
  "LIBC"       : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-lm", "-L/usr/lib", "-lpthread" ],
and remove the PTHREAD line. (My suggest was from memory of -lpthread being on the LIBC line.)
 
 - Jay



> From: dragisha at m3w.org> To: m3devel at elegosoft.com> Date: Tue, 8 Jan 2008 09:13:22 +0100> Subject: [M3devel] Didn't happen for long time now... pthread related error while ./scripts/do-cm3-std.sh build> > 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>> 
_________________________________________________________________
Watch "Cause Effect," a show about real people making a real difference.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080108/b525959c/attachment-0002.html>


More information about the M3devel mailing list