Hello Ákos,
Ákos Balázs wrote:
> Hi all,
>
> I'm trying to build a relatively recent dailybuild of OpenSG 1.x on my
> old laptop running a slightly mixed Debian distrib (which might be the
> problem, but I generally can build complex stuff (e.g. I've recently
> built ImageMagick from source) on this box). The compile goes fine,
> but when it tries to link the SystemLib it gives me these errors:
>
> `.gnu.linkonce.t._ZN3osg6SFieldINS_6Color3IfEELi0EE14pushValueByStrEPKc'
> referenced in section `.rodata' of obj-opt/OSGPhongMaterialBase.o:
> defined in discarded section
> `.gnu.linkonce.t._ZN3osg6SFieldINS_6Color3IfEELi0EE14pushValueByStrEPKc'
> of obj-opt/OSGPhongMaterialBase.o
> `.gnu.linkonce.t._ZN3osg6SFieldINS_6Color3IfEELi0EE14pushValueByStrEPKc'
> referenced in section `.rodata' of obj-opt/OSGSimpleMaterialBase.o:
> defined in discarded section
> `.gnu.linkonce.t._ZN3osg6SFieldINS_6Color3IfEELi0EE14pushValueByStrEPKc'
> of obj-opt/OSGSimpleMaterialBase.o
> `.gnu.linkonce.t._ZN3osg6SFieldINS_15VectorInterfaceIfNS_11VecStorage3IfEEEELi0EE14pushValueByStrEPKc'
> referenced in section `.rodata' of
> obj-opt/OSGComponentTransformBase.o: defined in discarded section
> `.gnu.linkonce.t._ZN3osg6SFieldINS_15VectorInterfaceIfNS_11VecStorage3IfEEEELi0EE14pushValueByStrEPKc'
> of obj-opt/OSGComponentTransformBase.o
> [...]
>
> ...and about 200 more of these (I can supply a full log if it helps,
> but it's really just more of the same). G++ version:
>
> [EMAIL PROTECTED]:~$ g++ -v
> Reading specs from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/specs
> Configured with: ../src/configure -v
> --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
> --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
> --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> --enable-__cxa_atexit --with-system-zlib --enable-nls
> --without-included-gettext --enable-clocale=gnu --enable-debug
> --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
> i486-linux-gnu
> Thread model: posix
> gcc version 3.3.6 (Debian 1:3.3.6-7)
>
> Unfortunately I don't have the configure line I used anymore, but it
> was nothing out of the ordinary.
if you used the make/configure build you can see the configure line near
the top of config.status
> I'm building without the experimental
> GV stuff, I tried a build with the gv-beta flag enabled but that gave
> me similar errors so I thought maybe that's at fault, but building
> without the gv-beta flag seems to give the same results.
>
> Does anyone have any ideas?
is there any chance of compiler mixup, i.e. is the compiler used to
build OpenSG the one you've shown the specs for ?
AFAIK C++ standard compliance/support improved drastically with the gcc
3.4.x release series, so this might be a problem with the fairly old
compiler.
Have there been any warning when compiling
Source/Base/Field/OSGTypeInst.cpp or any other files that use
SField<Color3f> or SField<Vec3f> etc. ?
Can you try using objdump and grep to see if the symbols are present in
any of the .o files ?
Sorry, I find linker errors always very puzzeling and unfortunately
quite hard to debug,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users