samba-3.6.12 configure and ld
Thomas Bork
tombork at web.de
Mon Feb 18 11:04:01 MST 2013
Hi @all,
configure of samba-3.6.12 does not recognize ld properly:
[...]
checking if the linker used by compiler is GNU ld... yes
checking GNU ld release date...
checking GNU ld release version...
checking GNU ld release version major...
checking GNU ld release version minor...
./configure: line 7825: test: : integer expression expected
./configure: line 7825: test: : integer expression expected
./configure: line 7828: test: : integer expression expected
[...]
In configure is ac_cv_gnu_ld_version defined as follows:
ac_cv_gnu_ld_version=`$CC -Wl,-v /dev/null 2>&1 < /dev/null | grep "GNU ld"`
On my system this results in:
referencetest26 # gcc -Wl,-v /dev/null 2>&1 < /dev/null | grep "GNU ld"
GNU ld (GNU Binutils) 2.19.1/dev/null: file not recognized: File truncated
Thats why all following definitions have unexpected results:
- ac_cv_gnu_ld_date
- ac_cv_gnu_ld_vernr
- ac_cv_gnu_ld_vernr_major
- ac_cv_gnu_ld_vernr_minor
If I'm replacing
ac_cv_gnu_ld_version=`$CC -Wl,-v /dev/null 2>&1 < /dev/null | grep "GNU ld"`
with
ac_cv_gnu_ld_version=`ld -v | grep "GNU ld"`
then all works as expected:
[...]
checking if the linker used by compiler is GNU ld... yes
checking GNU ld release date...
checking GNU ld release version... 2.19
checking GNU ld release version major... 2
checking GNU ld release version minor... 19
[...]
My ld version does not output a release date:
referencetest26 # ld -v
GNU ld (GNU Binutils) 2.19.1
--
der tom
More information about the samba-technical
mailing list