[M3devel] problem using -DPTHREAD

Olaf Wagner wagner at plane.elego.de
Wed Jan 24 08:04:34 CET 2007


On Wed, Jan 24, 2007 at 04:49:17AM +0100, Daniel Alejandro Benavides D. wrote:
> 
>    Hi everybody:
>    Im trying to start a new compilation with the PTHREAD support.
>    So I did
>    export CM3="/usr/cm3/bin/cm3 -DPTHREAD"
>    This is the directory where the boot is installed with cminstall.
>    Then I got this:
>    root at danielb-desktop:/home/danielb/cm3-5.4-Rc_/cm3/scripts#
>    ./do-cm3-std.sh buildship | tee "log.txt" CM3C =
>    /home/danielb/cm3-5.4-Rc_/cm3/scripts/pkgmap.sh -c "/usr/cm3/bin/cm3
>    -DPTHREAD -build  -DROOT='/home/danielb/cm3-5.4-Rc_/cm3'  &&
>    /usr/cm3/bin/cm3 -DPTHREAD -ship
>    -DROOT='/home/danielb/cm3-5.4-Rc_/cm3' " m3gc-simple m3core libm3
...
>    "/home/danielb/cm3-5.4-Rc_/cm3/m3-libs/m3core/src/thread/PTHREAD/m3mak
>    efile", line 10: quake runtime error: Unable to use definition of
>    "SYSTEM_LIBS" from configuration file "/usr/cm3/bin/cm3.cfg": does not
>    define a value for "PTHREAD"
>    --procedure--  -line-  -file---
>    import_sys_lib      --  <builtin>
>    include_dir        10
>    /home/danielb/cm3-5.4-Rc_/cm3/m3-libs/m3core/src/thread/PTHREAD/m3make
>    file

You need to define the system's pthread library you want to link
with (/usr/lib/libpthread.a?) in cm3.cfg in the SYSTEM_LIBS array.

Olaf
-- 
elego Software Solutions GmbH                           HRB 77719
Olaf Wagner                            E-Mail: wagner(at)elego.de
Ohmstraße 9                               Tel: +49 30 40 04 19 29
10179 Berlin                              Fax: +49 30 23 45 86 95
Cranachstraße 7                           Tel: +49 30 85 58 01 81
12157 Berlin                              Fax: +49 30 85 58 01 88
 ------------------> WWW: http://www.elego-software-solutions.com



More information about the M3devel mailing list