Configure tests fail with old version of ld
Configuring ntpsec 0.9.7 (or master) fails on Mac OS X 10.6.8 Snow Leopard with llvm-gcc-4.2:
--- Configuring host ---
Checking for 'clang' (C compiler) : not found
Checking for 'gcc' (C compiler) : /usr/bin/llvm-gcc-4.2
Checking compiler version : 4.2.1
Checking for program 'bison' : /opt/local/bin/bison
Checking for program 'awk' : /usr/bin/awk
Checking for program 'sh' : /bin/sh
Checking for program 'asciidoc' : /opt/local/bin/asciidoc
Checking for asciidoc version >= 8.6.0 : 8.6.9
Checking for program 'a2x' : /opt/local/bin/a2x
Checking for program 'xsltproc' : /opt/local/bin/xsltproc
Building version : 0.9.7
--- Configuring main ---
Checking for endianness : little
Checking if C compiler supports PIC : no
Checking if C compiler supports PIE : no
Checking if C compiler supports gnu99 : no
Checking if C compiler supports unused : no
Checking if C compiler supports LTO : no
Checking if ld compiler supports z_now : no
Checking for type uint64_t : not found
Checking for type struct if_laddrconf : not found
Checking for type struct if_laddrreq : not found
Checking for type struct timex : not found
Checking for type struct ntptimeval : not found
Checking for header stddef.h : not found
Checking for field time_tick in struct timex : not found
Checking for field modes in struct timex : not found
Checking for field time.tv_nsec in struct ntptimeval : not found
Checking for field tai in struct ntptimeval : not found
Checking sizeof long : The configuration failed
Looking in the config.log, all the configure tests are failing for the same reason, which looks like this:
err: ld: unknown option: -o/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_ntpsec/ntpsec/work/ntpsec-0.9.7/build/.conf_check_3137299a714cbee496d5031eb7b85c5c/testbuild/main/testprog
collect2: ld returned 1 exit status
I guess old ld
wants there to be a space between -o
and the path. I don't know how to change this in your configuration system.