Boost logo

Boost :

From: sebmarc_at_[hidden]
Date: 2001-10-04 18:02:25


I am a brand new boost user (a couple hours). I downloaded boost
1_25_0 yesterday because i am interested in the thread library for a
new project we are starting.

Trying to build the lib i have:
linux-cs01:boost_1_25_0> export BOOST_ROOT=/home/smarc/boost_1_25_0/
linux-cs01:boost_1_25_0> jam -f tools/build/allyourbase.jam
-sTOOLS='gcc'
...found 309 targets...
...updating 18 targets...
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/c
ondition.o
In file included from libs/thread/build/../src/condition.cpp:18:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/m
utex.o
In file included from libs/thread/build/../src/mutex.cpp:19:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/r
ecursive_mutex.o
In file included from libs/thread/build/../src/recursive_mutex.cpp:18:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/s
emaphore.o
In file included from libs/thread/build/../src/semaphore.cpp:18:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/t
hread.o
In file included from libs/thread/build/../src/thread.cpp:23:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/t
ss.o
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/x
time.o
libs/thread/build/../src/xtime.cpp:47: #error "xtime_get
implementation undefined"

    g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline
-I"libs/thread/build" -I"/home/smarc/boost_1_25_0" -o
"libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/
xtime.o" "libs/thread/build/../src/xtime.cpp"

...failed gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/x
time.o ...
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/o
nce.o
libs/thread/build/../src/once.cpp: In function `void do_once(...)':
libs/thread/build/../src/once.cpp:41: ANSI C++ forbids casting between
pointers to functions and objects

    g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline
-I"libs/thread/build" -I"/home/smarc/boost_1_25_0" -o
"libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/
once.o" "libs/thread/build/../src/once.cpp"

...failed gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/o
nce.o ...
...skipped
<libs!thread!build/libboost_thread/gcc/debug/runtime-link-dynamic>libb
oost_thread.a for lack of
<libs!thread!build/libboost_thread/gcc/debug/runtime-link-dynamic>libb
oost_thread.a(xtime.o)...
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/condition.o
In file included from libs/thread/build/../src/condition.cpp:18:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/mutex.o
In file included from libs/thread/build/../src/mutex.cpp:19:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/recursive_mutex.o
In file included from libs/thread/build/../src/recursive_mutex.cpp:18:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/semaphore.o
In file included from libs/thread/build/../src/semaphore.cpp:18:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/thread.o
In file included from libs/thread/build/../src/thread.cpp:23:
libs/thread/build/../src/timeconv.inl: In function `void
{anonymous}::to_time(unsigned int, boost::xtime &)':
libs/thread/build/../src/timeconv.inl:26: warning: comparison between
signed and unsigned
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/tss.o
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/xtime.o
libs/thread/build/../src/xtime.cpp:47: #error "xtime_get
implementation undefined"

    g++ -c -Wall -ftemplate-depth-100 -DNDEBUG -O4
-finline-functions -Wno-inline -I"libs/thread/build"
-I"/home/smarc/boost_1_25_0" -o
"libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynami
c/xtime.o" "libs/thread/build/../src/xtime.cpp"

...failed gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/xtime.o ...
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/once.o
libs/thread/build/../src/once.cpp: In function `void do_once(...)':
libs/thread/build/../src/once.cpp:41: ANSI C++ forbids casting between
pointers to functions and objects

    g++ -c -Wall -ftemplate-depth-100 -DNDEBUG -O4
-finline-functions -Wno-inline -I"libs/thread/build"
-I"/home/smarc/boost_1_25_0" -o
"libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynami
c/once.o" "libs/thread/build/../src/once.cpp"

...failed gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/release/runtime-link-dynamic
/once.o ...
...skipped
<libs!thread!build/libboost_thread/gcc/release/runtime-link-dynamic>li
bboost_thread.a for lack of
<libs!thread!build/libboost_thread/gcc/release/runtime-link-dynamic>li
bboost_thread.a(xtime.o)...
...failed updating 4 targets...
...skipped 2 targets...
...updated 12 targets...
linux-cs01:boost_1_25_0>

I am not terribly worried about the warnings at this point. I'm
confident they will be fixed soon. The problem comes from xtime.cpp:
gcc-C++-action
libs/thread/build/bin/libboost_thread/gcc/debug/runtime-link-dynamic/x
time.o
libs/thread/build/../src/xtime.cpp:47: #error "xtime_get
implementation undefined"

getttimeofday is suported on Linux but for some reason boost thinks it
is not.

I'll appreciate any workaround.

Sorry if this problem has already been reported.

Seb.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk