[distcc] distc-1.1 on Solaris 8

Dimitri PAPADOPOULOS-ORFANOS papadopo at shfj.cea.fr
Tue Jan 28 08:33:56 GMT 2003


Hi,

Sorry to write directly to you, but all messages I had been
sending to distcc at lists.samba.org seem to have been lost.

Just to let you know that distcc-1.1 builds almost fine on
Solaris 8, except for this link-time error:

$ gmake
[...]
cc -g -DHAVE_CONFIG_H  -o distcc [...] -lresolv -lsocket -lnsl
ild: (undefined symbol) setenv -- referenced in the text segment of src/exec.o
gmake: *** [distcc] Error 5
$ 

The problem is that there's no setenv() function on Solaris 8
and most other older UNIX systems. setenv() has been introduced
in Single UNIX Specification version 3 and does not exist in
Single UNIX Specification version 2. Just use putenv() instead.

References:
http://www.opengroup.org/onlinepubs/007904975/functions/setenv.html
http://www.opengroup.org/onlinepubs/007908799/xsh/putenv.html
http://lists.community.tummy.com/pipermail/linux-ha-dev/2001-May/001602.html
http://www.chiark.greenend.org.uk/pipermail/userv-discuss/1999/000024.html

Regards,
--
Dimitri


More information about the distcc mailing list