Cool VL Viewer forum
http://sldev.free.fr/forum/

building 1.28.2.18 from source fails at the linker stage
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2159
Page 1 of 1

Author:  Lance Corrimal [ 2021-04-10 11:57:05 ]
Post subject:  building 1.28.2.18 from source fails at the linker stage

Hi,

I'm trying to build from source (rpm packages for openSUSE and Fedora) and 1.29.2.18 fails to build - it dies at the linker stage:

Code:
[  851s] [100%] Linking CXX executable CoolVLViewer
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libfmod.so: .dynsym local symbol at index 2 (>= sh_info of 2)
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libfmod.so: .dynsym local symbol at index 3 (>= sh_info of 2)
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libfmod.so: .dynsym local symbol at index 4 (>= sh_info of 2)
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libcollada14dom.a(daeUtils.o): in function `cdom::getRandomFileName[abi:cxx11]()':
[ 1354s] /root/cvlv-colladadom/colladadom/src/dae/daeUtils.cpp:171: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libfmod.so: .dynsym local symbol at index 2 (>= sh_info of 2)
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libfmod.so: .dynsym local symbol at index 3 (>= sh_info of 2)
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/../lib/release/libfmod.so: .dynsym local symbol at index 4 (>= sh_info of 2)
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /tmp/ccrmHMDl.ltrans6.ltrans.o: in function `LLSettingsDay::getSettingsNearKeyframe(float, int, float) const':
[ 1354s] /home/abuild/rpmbuild/BUILD/linden/indra/llinventory/llsettingsdaycycle.cpp:904: undefined reference to `LLSettingsBase::INVALID_TRACKPOS'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/llinventory/llsettingsdaycycle.cpp:911: undefined reference to `LLSettingsBase::INVALID_TRACKPOS'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/llinventory/llsettingsdaycycle.cpp:937: undefined reference to `LLSettingsBase::INVALID_TRACKPOS'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /tmp/ccrmHMDl.ltrans16.ltrans.o: in function `encodeAlteredFields':
[ 1354s] /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:173: undefined reference to `LLPathfindingLinkset::MAX_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:173: undefined reference to `LLPathfindingLinkset::MIN_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:179: undefined reference to `LLPathfindingLinkset::MAX_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:179: undefined reference to `LLPathfindingLinkset::MIN_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:185: undefined reference to `LLPathfindingLinkset::MAX_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:185: undefined reference to `LLPathfindingLinkset::MIN_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:191: undefined reference to `LLPathfindingLinkset::MAX_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llpathfindinglinkset.cpp:191: undefined reference to `LLPathfindingLinkset::MIN_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /tmp/ccrmHMDl.ltrans21.ltrans.o: in function `onWalkabilityCoefficientEntered':
[ 1354s] /home/abuild/rpmbuild/BUILD/linden/indra/newview/llfloaterpathfindinglinksets.cpp:577: undefined reference to `LLPathfindingLinkset::MAX_WALKABILITY_VALUE'
[ 1354s] /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/linden/indra/newview/llfloaterpathfindinglinksets.cpp:577: undefined reference to `LLPathfindingLinkset::MIN_WALKABILITY_VALUE'
[ 1354s] collect2: error: ld returned 1 exit status


any ideas?

Author:  Henri Beauchamp [ 2021-04-10 12:24:32 ]
Post subject:  Re: building 1.28.2.18 from source fails at the linker stage

It looks like a 'ld' bug... What is its type ("gold" ld or not) and version on your system ?

Author:  Lance Corrimal [ 2021-04-10 13:44:05 ]
Post subject:  Re: building 1.28.2.18 from source fails at the linker stage

Code:
lemmy@kumiko:~> ld --version
GNU ld (GNU Binutils; openSUSE Leap 15.2) 2.35.1.20201123-lp152.4.6
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.


the interesting part is that it happens on fedora builds too...

Author:  Henri Beauchamp [ 2021-04-10 13:47:21 ]
Post subject:  Re: building 1.28.2.18 from source fails at the linker stage

I have no issue with "GNU ld (GNU Binutils) 2.34"...

Anyway, I changed the three occurrences of constexpr in v1.28.2.19, which should work around this issue (hoping it will not get other issues elsewhere)...

Author:  Lance Corrimal [ 2021-04-10 13:48:40 ]
Post subject:  Re: building 1.28.2.18 from source fails at the linker stage

I just noticed 1.28.2.19 :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/