[Bf-committers] Scons linking errors & C++?

Alfredo de Greef bf-committers@blender.org
Mon, 1 Mar 2004 19:11:37 -0800 (PST)


Only since the auto system was replaced by scons did I
try scons for the first time, I got errors that seemed
to be caused by the recently added new csg code. So I
thought I'd wait until that was solved, trying from
time to time to compile, but still getting the same
errors.
But I have been waiting now for some time, and now I
need to commit some code and submit patches, and it
seems that others have no problems, not similar ones
as I'm having anyway.
So I just tried it again, looked more closely at the
errors, and it seems that compiling itself is no
problem but the linking is, and they all seem to be
related to C++, a 'short' excerpt from the error list:

scons: Reading SConscript files ...
sh: line 1: pkg-config: command not found
Using config file: config.opts
scons: done reading SConscript files.
scons: Building targets ...
gcc -o blender
/home/eeshlo/cpp_source/yafblend_020304/build/source/creator/d_buildinfo.o
-L/home/eeshlo/cpp_source/yafblend_020304/build/lib
-Llib -L/usr/lib/python2.2/config -L/usr/lib
-L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib
-L/usr/X11R6/lib -lblender_creator -lblender_render
-lblender_yafray -lblender_blendersrc
-lblender_renderconverter -lblender_blenloader
-lblender_writestreamglue -lblender_deflate
-lblender_writeblenfile -lblender_readblenfile
-lblender_readstreamglue -lblender_inflate
-lblender_img -lblender_radiosity -lblender_blenkernel
-lblender_blenpluginapi -lblender_imbuf -lblender_avi
-lblender_blenlib -lblender_python -lblender_makesdna
-lblender_kernel -lblender_BSP -lblender_LOD
-lblender_GHOST -lblender_STR -lblender_guardedalloc
-lblender_BMF -lblender_CTR -lblender_MEM -lblender_IK
-lblender_MT -lsoundsystem -lpython2.2 -lSDL -lpthread
-lpng -ljpeg -lz -lm -lutil -lGL -lGLU
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o)(.text+0x3845):
In function `posix_tmpnam':
: the use of `tmpnam_r' is dangerous, better use
`mkstemp'
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o)(.text+0x371f):
In function `posix_tempnam':
: the use of `tempnam' is dangerous, better use
`mkstemp'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x107):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::~Init
[in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x12e):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::basic_ostringstream<char,
std::char_traits<char>, std::allocator<char>
>::~basic_ostringstream [in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x13e):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::~basic_string [in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x14c):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::basic_ofstream<char,
std::char_traits<char> >::~basic_ofstream
[in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x15a):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::~basic_string [in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x1ab):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::__default_alloc_template<(bool)1,
(int)0>::deallocate(void*, unsigned)'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x1cc):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::__default_alloc_template<(bool)1,
(int)0>::deallocate(void*, unsigned)'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x1ed):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::__default_alloc_template<(bool)1,
(int)0>::deallocate(void*, unsigned)'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x242):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::__default_alloc_template<(bool)1,
(int)0>::deallocate(void*, unsigned)'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x297):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::__default_alloc_template<(bool)1,
(int)0>::deallocate(void*, unsigned)'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x2aa):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::ios_base::Init::Init[in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x2d8):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::~basic_string [in-charge]()'
/home/eeshlo/cpp_source/yafblend_020304/build/lib/libblender_yafray.a(api.o)(.text+0x2e6):
In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::basic_ofstream<char,
std::char_traits<char> >::~basic_ofstream
[in-charge]()'

and this goes on and on for among others
libblenderBSP.a, libblender_LOD.a, libblender_GHOST.a,
etc..

Am I doing something very stupid again (besides doing
everything from my home directory)? Which is very
possible...

Alfredo

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com