Boost logo

Boost Users :

From: Pierre-Michel Tremblay (tremblay_michel_at_[hidden])
Date: 2004-02-06 08:32:08


Bonjour,

I'm new to Boost.

My platform is a PowerBook G4 running Mac OS X 10.3.2 with the
following:
   [champignac:~] ptrembla% gcc -v
   Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
   Thread model: posix
   gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

-downloaded boost-1.31.0.tar.gz
-downloaded boost-jam-3.1.9.tgz

-created a directory in ~/CVSROOTs and moved the two downloaded files
there.
-expanded downloaded boost-jam-3.1.7.tgz and ran build.sh
-moved the executables created in
~/CVSROOTs/boost-jam-3.1.9/bin.macosxppc to /usr/bin
-expanded boost-1.31.0.tar.gz and went to directory with jam files
   [champignac:~] ptrembla% cd /Users/ptremblay/CVSROOTs/boost_1_31_0
   [champignac:~/CVSROOTs/boost_1_31_0] ptrembla% ls
   Jamfile boost.css people
   Jamfile.v2 c++boost.gif project-root.jam
   Jamrules doc rst.css
   LICENSE_1_0.txt google_logo_40wht.gif status
   README index.htm tools
   boost libs
   boost-build.jam more

-set up my environment variables relating to Python within ~/.cshrc,
i.e.
   set PYTHON_ROOT="/usr/bin/python"
   set PYTHON_VERSION="2.3"

   [champignac:~/CVSROOTs/boost_1_31_0] ptrembla% which python
   /usr/bin/python
   [champignac:~/CVSROOTs/boost_1_31_0] ptrembla% python -V
   Python 2.3

-ran bjam -sTOOLS=darwin
   [champignac:~/CVSROOTs/boost_1_31_0] ptrembla% which bjam
   /usr/bin/bjam

   [champignac:~/CVSROOTs/boost_1_31_0] ptrembla% cd
/Users/ptremblay/CVSROOTs/boost_1_31_0

   [champignac:~/CVSROOTs/boost_1_31_0] ptrembla% bjam -sTOOLS=darwin
   ---------------------------------------------------------------------
   skipping Boost.Python library build due to missing or incorrect
configuration

   couldn't find Python.h in
"/System/Library/Frameworks/Python.framework/Versions/2.2/include/
python2.2"

   You can configure the location of your python installation by setting:
   PYTHON_ROOT - currently
"/System/Library/Frameworks/Python.framework/Versions/2.2"
   PYTHON_VERSION - The 2-part python Major.Minor version number (e.g.
                    "2.2", NOT "2.2.1") - currently "2.2"

   The following are automatically configured from PYTHON_ROOT if not
   otherwise set:

       PYTHON_LIB_PATH - path to Python library object; currently

       PYTHON_INCLUDES - path to Python #include directories;
currently
"/System/Library/Frameworks/Python.framework/Versions/2.2/include/
python2.2"
   ---------------------------------------------------------------------
   ...patience...
   ...found 4834 targets...
   ...updating 315 targets...

   {Output cut here}

   MkDir1 bin/boost/libs/test
   MkDir1 bin/boost/libs/test/build
   MkDir1 bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib
   MkDir1
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin
   MkDir1
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug
   MkDir1
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/
shared-linkable-true
   darwin-C++-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/
shared-linkable-true/execution_monitor.o
   darwin-C++-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/
shared-linkable-true/cpp_main.o
   darwin-Link-DyLib-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/
shared-linkable-true/libboost_prg_exec_monitor-d-1_31.dylib
   ld: Undefined symbols:
   cpp_main(int, char**)

        
DYLD_LIBRARY_PATH=bin/boost/libs/test/build/
libboost_prg_exec_monitor.dylib/darwin/debug/shared-linkable-true
       export DYLD_LIBRARY_PATH
       ld -dynamic -m -r -d -o
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
debug/shared-linkable-true/libboost_prg_exec_monitor-d-1_31.lo"
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
debug/shared-linkable-true/execution_monitor.o"
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
debug/shared-linkable-true/cpp_main.o" \
       && \
       c++ -g -Wl,-dynamic -nostartfiles -Wl,-dylib -Wl,-ldylib1.o -o
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
debug/shared-linkable-true/libboost_prg_exec_monitor-d-1_31.dylib"
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
debug/shared-linkable-true/libboost_prg_exec_monitor-d-1_31.lo" \
           \
              \
       && \
       rm -f
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
debug/shared-linkable-true/libboost_prg_exec_monitor-d-1_31.lo"

   ...failed darwin-Link-DyLib-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/debug/
shared-linkable-true/libboost_prg_exec_monitor-d-1_31.dylib...
   MkDir1
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release
   MkDir1
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true
   darwin-C++-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/execution_monitor.o
   darwin-C++-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/cpp_main.o
   darwin-Link-DyLib-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/libboost_prg_exec_monitor-1_31.dylib
   ld: Undefined symbols:
   cpp_main(int, char**)

        
DYLD_LIBRARY_PATH=bin/boost/libs/test/build/
libboost_prg_exec_monitor.dylib/darwin/release/shared-linkable-true
       export DYLD_LIBRARY_PATH
       ld -dynamic -m -r -d -o
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/libboost_prg_exec_monitor-1_31.lo"
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/execution_monitor.o"
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/cpp_main.o" \
       && \
       c++ -Wl,-x -Wl,-dynamic -nostartfiles -Wl,-dylib -Wl,-ldylib1.o
-o
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/libboost_prg_exec_monitor-1_31.dylib"
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/libboost_prg_exec_monitor-1_31.lo" \
           \
              \
       && \
       rm -f
"bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/libboost_prg_exec_monitor-1_31.lo"

   ...failed darwin-Link-DyLib-action
bin/boost/libs/test/build/libboost_prg_exec_monitor.dylib/darwin/
release/shared-linkable-true/libboost_prg_exec_monitor-1_31.dylib...

   {Output cut here}

   ...failed updating 6 targets...
   ...updated 309 targets...

QUESTIONS

Are these failures "normal"?

If not, what can I do to make it compile correctly?

What should I do to make Boost.Python to compile correctly with 2.3?

Where are the files I should rectify to solve these errors?

Many thanks.
Pierre-Michel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net