<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Not my area of expertise, but, try this:<BR>
<BR> > "LIBC" : [ "-lm", "-L/usr/lib", "-lpthread" ], <BR> > "PTHREAD" : [ ], <BR>
<BR>
and look here:<BR>
<BR>
<A href="http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/src/config/LINUXLIBC6?rev=1.20;content-type=text%2Fplain">http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/src/config/LINUXLIBC6?rev=1.20;content-type=text%2Fplain</A><BR>
<BR>
or here:<BR>
<BR>
<A href="http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/src/config-no-install/LINUXLIBC6?rev=1.10;content-type=text%2Fplain">http://dcvs.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-sys/cminstall/src/config-no-install/LINUXLIBC6?rev=1.10;content-type=text%2Fplain</A><BR>
<BR>
..ok, which suggests really, try this:<BR>
<BR>
"LIBC" : [ "-Xlinker", "-Bdynamic", "-L/usr/lib", "-lm", "-L/usr/lib", "-lpthread" ],<BR><BR>
and remove the PTHREAD line. (My suggest was from memory of -lpthread being on the LIBC line.)<BR>
<BR>
- Jay<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> From: dragisha@m3w.org<BR>> To: m3devel@elegosoft.com<BR>> Date: Tue, 8 Jan 2008 09:13:22 +0100<BR>> Subject: [M3devel] Didn't happen for long time now... pthread related error while ./scripts/do-cm3-std.sh build<BR>> <BR>> 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><BR><br /><hr />Watch "Cause Effect," a show about real people making a real difference. <a href='http://im.live.com/Messenger/IM/MTV/?source=text_watchcause' target='_new'>Learn more</a></body>
</html>