[sudo-users] Build error on Solaris 9

Dagobert Michelsen dam at opencsw.org
Mon Jun 21 09:43:38 MDT 2021


Hi,

I have a problem compiling the recent sudo 1.9.7p1 on Solaris 9:

libtool: link: /opt/csw/bin/gcc-4.6 -std=gnu99 -o .libs/cvtsudoers b64_encode.o cvtsudoers.o cvtsudoers_json.o cvtsudoers_ldif.o cvtsudoers_pwutil.o .libs/fmtsudoe
udoers_cvt.o .libs/locale.o parse_ldif.o stubs.o sudo_printf.o .libs/ldap_util.o -mcpu=v8 -fstack-protector-all  -L/opt/csw/lib ./.libs/libparsesudoers.a ../../lib
sudo_util.so -lintl -lcrypto -lpthread -ldl -lrt -lsocket -lnsl  -R/opt/csw/libexec/sudo  
/opt/csw/bin/gcc-4.6 -std=gnu99 -c -I../../include -I../.. -I. -I. -DLIBDIR=\"/opt/csw/lib\" -DLOCALEDIR=\"/opt/csw/share/locale\" -D_PATH_SUDOERS=\"/etc/opt/csw/s
H_CVTSUDOERS_CONF=\"/etc/opt/csw/cvtsudoers.conf\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440 -I/opt/csw/include/sasl -I/opt/csw/include -DZLIB_CONST -I/o
ude -D_FORTIFY_SOURCE=2 -O2 -pipe -fno-omit-frame-pointer -mcpu=v8 -fvisibility=hidden   -fstack-protector-all ../../src/net_ifs.c  
../../src/net_ifs.c: In function 'get_net_ifs':  
../../src/net_ifs.c:544:72: error: 'INADDR_NONE' undeclared (first use in this function)  
../../src/net_ifs.c:544:72: note: each undeclared identifier is reported only once for each function it appears in  
gmake[1]: *** [net_ifs.o] Error 1  

This is a known issue - Solaris 9 does not have INADDR_NONE in
  /usr/include/netinet/in.h
I suggest to use a hardcoded substitute with something like
  #define       INADDR_NONE             0xffffffffU
on systems where the definition is not available.


Best regards

  — Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the sudo-users mailing list