Hi there, I've been using pkgsrc, so everything installs into ~/pkg/ I got the source from svn, rev 750 it says.
I wondered about the linking stuff, but the name of the file (libboost_thread-mt.so) is the same as the symbolic link on my ubuntu system, so I thought that should be fine. The problem appears to be uncovered in the config.log (below) Can I turn on threading support in the compiler with the scons program? http://trac.mapnik.org/browser/trunk/INSTALL here it says I should be able to run python scons/scons.py -h to see the build options, but that does the same as with out the -h... Red Hat 3.4.6-8 is the server.. ################## The offending config.log section: scons: Configure: Checking for C++ library boost_thread-mt... .sconf_temp/conftest_16.cpp <- | | |#include "boost/thread/mutex.hpp" | |int |main() { | |return 0; |} | g++ -o .sconf_temp/conftest_16.o -c -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 .sconf_temp/conftest_16.cpp In file included from /home/jjbca/pkg/include/boost/thread/detail/platform.hpp:17, from /home/jjbca/pkg/include/boost/thread/mutex.hpp:12, from .sconf_temp/conftest_16.cpp:3: /home/jjbca/pkg/include/boost/config/requires_threads.hpp:47:5: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" In file included from /home/jjbca/pkg/include/boost/thread/mutex.hpp:12, from .sconf_temp/conftest_16.cpp:3: /home/jjbca/pkg/include/boost/thread/detail/platform.hpp:67:9: #error "Sorry, no boost threads are available for this platform." In file included from .sconf_temp/conftest_16.cpp:3: /home/jjbca/pkg/include/boost/thread/mutex.hpp:18:2: #error "Boost threads unavailable on this platform" scons: Configure: no ############# and the output of ls libboost* -l in ~/pkg: rw-rw-r-- 1 j j 116810 Oct 30 11:03 libboost_date_time-mt.a -rw-rw-r-- 1 j j 668038 Oct 30 10:41 libboost_date_time-mt-d.a -rwxrwxr-x 1 j j 559469 Oct 30 10:36 libboost_date_time-mt-d.so -rwxrwxr-x 1 j j 65580 Oct 30 10:53 libboost_date_time-mt.so -rw-rw-r-- 1 j j 196602 Oct 30 11:03 libboost_filesystem-mt.a -rw-rw-r-- 1 j j 884808 Oct 30 10:41 libboost_filesystem-mt-d.a -rwxrwxr-x 1 j j 710525 Oct 30 10:36 libboost_filesystem-mt-d.so -rwxrwxr-x 1 j j 110444 Oct 30 10:53 libboost_filesystem-mt.so -rw-rw-r-- 1 j j 1392340 Oct 30 11:03 libboost_graph-mt.a -rw-rw-r-- 1 j j 20901454 Oct 30 10:42 libboost_graph-mt-d.a -rwxrwxr-x 1 j j 18122373 Oct 30 10:37 libboost_graph-mt-d.so -rwxrwxr-x 1 j j 662504 Oct 30 10:53 libboost_graph-mt.so -rw-rw-r-- 1 j j 57254 Oct 30 11:03 libboost_iostreams-mt.a -rw-rw-r-- 1 j j 451760 Oct 30 10:42 libboost_iostreams-mt-d.a -rwxrwxr-x 1 j j 385704 Oct 30 10:37 libboost_iostreams-mt-d.so -rwxrwxr-x 1 j j 40588 Oct 30 10:53 libboost_iostreams-mt.so -rw-rw-r-- 1 j j 171780 Oct 30 11:09 libboost_math_c99f-mt.a -rw-rw-r-- 1 j j 5756926 Oct 30 10:48 libboost_math_c99f-mt-d.a -rwxrwxr-x 1 j j 5126430 Oct 30 10:31 libboost_math_c99f-mt-d.so -rwxrwxr-x 1 j j 53288 Oct 30 10:59 libboost_math_c99f-mt.so -rw-rw-r-- 1 j j 174842 Oct 30 11:10 libboost_math_c99l-mt.a -rw-rw-r-- 1 j j 5781034 Oct 30 10:49 libboost_math_c99l-mt-d.a -rwxrwxr-x 1 j j 5131725 Oct 30 10:32 libboost_math_c99l-mt-d.so -rwxrwxr-x 1 j j 52836 Oct 30 11:00 libboost_math_c99l-mt.so -rw-rw-r-- 1 j j 173280 Oct 30 11:09 libboost_math_c99-mt.a -rw-rw-r-- 1 j j 5767162 Oct 30 10:47 libboost_math_c99-mt-d.a -rwxrwxr-x 1 j j 5132775 Oct 30 10:30 libboost_math_c99-mt-d.so -rwxrwxr-x 1 j j 54356 Oct 30 10:58 libboost_math_c99-mt.so -rw-rw-r-- 1 j j 2621504 Oct 30 11:06 libboost_math_tr1f-mt.a -rw-rw-r-- 1 j j 17222778 Oct 30 10:45 libboost_math_tr1f-mt-d.a -rwxrwxr-x 1 j j 11721178 Oct 30 10:40 libboost_math_tr1f-mt-d.so -rwxrwxr-x 1 j j 347732 Oct 30 10:56 libboost_math_tr1f-mt.so -rw-rw-r-- 1 j j 2606168 Oct 30 11:08 libboost_math_tr1l-mt.a -rw-rw-r-- 1 j j 16916750 Oct 30 10:46 libboost_math_tr1l-mt-d.a -rwxrwxr-x 1 j j 11530815 Oct 30 10:41 libboost_math_tr1l-mt-d.so -rwxrwxr-x 1 j j 323980 Oct 30 10:58 libboost_math_tr1l-mt.so -rw-rw-r-- 1 j j 2600990 Oct 30 11:05 libboost_math_tr1-mt.a -rw-rw-r-- 1 j j 17028366 Oct 30 10:44 libboost_math_tr1-mt-d.a -rwxrwxr-x 1 j j 11586270 Oct 30 10:38 libboost_math_tr1-mt-d.so -rwxrwxr-x 1 j j 324240 Oct 30 10:55 libboost_math_tr1-mt.so -rw-rw-r-- 1 j j 84518 Oct 30 11:12 libboost_prg_exec_monitor-mt.a -rw-rw-r-- 1 j j 591900 Oct 30 10:50 libboost_prg_exec_monitor-mt-d.a -rwxrwxr-x 1 j j 485797 Oct 30 10:33 libboost_prg_exec_monitor-mt-d.so -rwxrwxr-x 1 j j 51904 Oct 30 11:01 libboost_prg_exec_monitor-mt.so -rw-rw-r-- 1 j j 773782 Oct 30 11:10 libboost_program_options-mt.a -rw-rw-r-- 1 j j 4452920 Oct 30 10:49 libboost_program_options-mt-d.a -rwxrwxr-x 1 j j 3171004 Oct 30 10:32 libboost_program_options-mt-d.so -rwxrwxr-x 1 j j 345348 Oct 30 11:00 libboost_program_options-mt.so -rw-rw-r-- 1 j j 667736 Oct 30 10:07 libboost_python-mt.a -rw-rw-r-- 1 j j 7896246 Oct 30 10:05 libboost_python-mt-d.a -rwxrwxr-x 1 j j 6254538 Oct 30 10:05 libboost_python-mt-d.so -rwxrwxr-x 1 j j 350200 Oct 30 10:06 libboost_python-mt.so -rw-rw-r-- 1 j j 1724762 Oct 30 11:11 libboost_regex-mt.a -rw-rw-r-- 1 j j 8667310 Oct 30 10:49 libboost_regex-mt-d.a -rwxrwxr-x 1 j j 6207885 Oct 30 10:32 libboost_regex-mt-d.so -rwxrwxr-x 1 j j 792300 Oct 30 11:01 libboost_regex-mt.so -rw-rw-r-- 1 j j 1564254 Oct 30 11:11 libboost_serialization-mt.a -rw-rw-r-- 1 j j 12454590 Oct 30 10:50 libboost_serialization-mt-d.a -rwxrwxr-x 1 j j 9443324 Oct 30 10:33 libboost_serialization-mt-d.so -rwxrwxr-x 1 j j 500808 Oct 30 11:01 libboost_serialization-mt.so -rw-rw-r-- 1 j j 142534 Oct 30 11:12 libboost_signals-mt.a -rw-rw-r-- 1 j j 1327042 Oct 30 10:50 libboost_signals-mt-d.a -rwxrwxr-x 1 j j 1057111 Oct 30 10:33 libboost_signals-mt-d.so -rwxrwxr-x 1 j j 78016 Oct 30 11:01 libboost_signals-mt.so -rw-rw-r-- 1 j j 18330 Oct 30 11:03 libboost_system-mt.a -rw-rw-r-- 1 j j 98826 Oct 30 10:41 libboost_system-mt-d.a -rwxrwxr-x 1 j j 87457 Oct 30 10:36 libboost_system-mt-d.so -rwxrwxr-x 1 j j 13552 Oct 30 10:53 libboost_system-mt.so -rw-rw-r-- 1 j j 603356 Oct 30 11:02 libboost_test_exec_monitor-mt.a -rw-rw-r-- 1 j j 4781030 Oct 30 10:33 libboost_test_exec_monitor-mt-d.a -rw-rw-r-- 1 j j 98156 Oct 30 11:12 libboost_thread-mt.a -rw-rw-r-- 1 j j 618078 Oct 30 10:50 libboost_thread-mt-d.a -rwxrwxr-x 1 j j 505899 Oct 30 10:34 libboost_thread-mt-d.so -rwxrwxr-x 1 j j 66364 Oct 30 11:02 libboost_thread-mt.so -rw-rw-r-- 1 j j 770530 Oct 30 11:12 libboost_unit_test_framework-mt.a -rw-rw-r-- 1 j j 5786242 Oct 30 10:50 libboost_unit_test_framework-mt-d.a -rwxrwxr-x 1 j j 4315727 Oct 30 10:34 libboost_unit_test_framework-mt-d.so -rwxrwxr-x 1 j j 348192 Oct 30 11:02 libboost_unit_test_framework-mt.so -rw-rw-r-- 1 j j 2947176 Oct 30 11:13 libboost_wave-mt.a -rw-rw-r-- 1 j j 54960594 Oct 30 10:52 libboost_wave-mt-d.a -rwxrwxr-x 1 j j 47317441 Oct 30 10:36 libboost_wave-mt-d.so -rwxrwxr-x 1 j j 1266380 Oct 30 11:03 libboost_wave-mt.so -rw-rw-r-- 1 j j 1124554 Oct 30 11:12 libboost_wserialization-mt.a -rw-rw-r-- 1 j j 9849016 Oct 30 10:50 libboost_wserialization-mt-d.a -rwxrwxr-x 1 j j 7743694 Oct 30 10:33 libboost_wserialization-mt-d.so -rwxrwxr-x 1 j j 384464 Oct 30 11:01 libboost_wserialization-mt.so Jon Burgess wrote: > On Thu, 2008-10-30 at 12:12 -0700, Jeff Burton wrote: >> Hi, >> >> Sent this before but from the wrong address... >> >> I'm trying to build mapnik in a shared hosting environment and having >> trouble. >> The webhost IT support suggested using pkgsrc to install mapnik. the >> package on pkgsrc is 0.4.something, so I did not use that. >> >> So I've tried to install all the required packages and then build >> mapnik, and things have been going ok, but now I am stuck: >> >> ... >> Checking for C++ library boost_system-mt... yes >> Checking for C++ library boost_filesystem-mt... yes >> Checking for C++ library boost_regex-mt... yes >> Checking for C++ library boost_iostreams-mt... yes >> Checking for C++ library boost_program_options-mt... yes >> Checking for C++ library boost_thread-mt... no >> Could not find header or shared library for boost thread, exiting! >> >> libboost_thread-mt.so and etc is in the lib dir with the rest of the >> libraries, so I am at a loss to understand why it is not found. > > Sometimes the scons system gets a little confused. Try doing: > $ rm -fR .scons* > Then run scons again. > > If it still fails then take a look at the end of the config.log. This > will tell you all the commands that scons is executing while performing > the checks above. The relevant lines for the boost_thread-mt check > should look something like... > > scons: Configure: Checking for C++ library boost_thread-mt... > .sconf_temp/conftest_16.cpp <- > | > | > |#include "boost/thread/mutex.hpp" > | > |int > |main() { > | > |return 0; > |} > | > g++ -o .sconf_temp/conftest_16.o -c -DHAVE_CAIRO > -DBOOST_PROPERTY_TREE_XML_PARSER_TINYXML -DTIXML_USE_STL -Iagg/include > -Itinyxml -Iinclude -I. -I/usr/include -I/usr > /local/include -I/usr/include/gdal -I/usr/include/freetype2 > -I/usr/include/cairomm-1.0 -I/usr/include/cairo .sconf_temp/conftest_16.cpp > g++ -o .sconf_temp/conftest_16 .sconf_temp/conftest_16.o -Lagg -Lsrc > -L/usr/lib64 -L/usr/local/lib64 -lfreetype -lcairomm-1.0 -lcairo -lm -lltdl > -lpng -ltiff -lz -lj > peg -lproj -lpq -licuuc -licudata -lgdal -lboost_filesystem-mt > -lboost_regex-mt -lboost_iostreams-mt -lboost_program_options-mt > -lboost_thread-mt > scons: Configure: yes > > If you are still stuck, send us this config.log. > > Jon > > _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

