[Debburn-devel] cdrkit-1.0 build error on Solaris 2.8

Brian Lindholm lindholmb at adelphia.net
Mon Dec 4 23:40:20 CET 2006


Brian Lindholm wrote:
> Eduard,
>
> It very nearly finished this time. However, it still died with the same
> "gethostbyname" error, this time on icedax.
>
> I ran a verbose build and discovered that "-lnls" was included in the 
> link
> command. This seems like the proper thing to do, but for reasons that 
> I don't
> understand, this doesn't work on Solaris 2.8. It seems to require 
> "-lxnet"
> instead. This is true for both "icedax" and "netscsid".
>
> When I replaced "-lnls" with "-lxnet" in 
> CMakeFiles/icedax.dir/build.make and
> CMakeFiles/netscsid.dir/build.make, the build finished successfully.
>
> In autoconfig-land, this would be fixed by adding something like
> "AC_CHECK_LIB(xnet, gethostbyname)" to the configure.ac script. I have 
> no idea
> how to do this in cmake-land.
>
> Brian
>
>
> make -C build all
> <trimmed...>
> [ 87%] Built target paranoia
> make[3]: Entering directory `/tmp/lindhobe/cdrkit/build'
> Linking C executable icedax
> Undefined first referenced
> symbol in file
> gethostbyname CMakeFiles/icedax.dir/toc.o (symbol belongs to implicit 
> dependency /usr/lib/libnsl.so.1)
> ld: fatal: Symbol referencing errors. No output written to icedax
> collect2: ld returned 1 exit status
> make[3]: *** [icedax/icedax] Error 1
> make[3]: Leaving directory `/tmp/lindhobe/cdrkit/build'
> make[2]: *** [icedax/CMakeFiles/icedax.dir/all] Error 2
> make[2]: Leaving directory `/tmp/lindhobe/cdrkit/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/tmp/lindhobe/cdrkit/build'
> make: *** [all] Error 2
>
> Brian
>

I can happily report that the recently released cdrkit-1.1 built without 
errors on Solaris 2.8.  Thanks for the fixes.

Brian




More information about the Debburn-devel mailing list