Solaris 10 x86 build error

Mr. Jan Walter hopping_hol at yahoo.com
Wed Mar 4 16:32:16 UTC 2009


Understood, and obvious - but gmake on Solaris only issues a return code of "1", presumably the return code of gcc. I was also trying to save everybody having to read a full-blown description in the problem hoping someone would answer "oh, yeah, there is a typo in file x" or "set variable X in the environment." A bit more output is included this time around.

>From what I understand, the issue I encountered is a common problem - I got a number of offline emails asking for the answer should I come across it. It doesn't work, so it either wasn't tested, or the environment in which it was tested and worked wasn't documented.

System Setup: Solarix 10 x86-64, fresh installation using SUNWCprog cluster plus SUNWgmake, SUNWgm4, SUNWgccruntime, SUNWgcc, SUNWbison, SUNWbinutils, and latest Solaris 10 patch cluster. I added a symlink in /usr/sfw/bin from gmake to make since the ISC autoconf does not pick up GNU make named anything else than 'make'.

Build environment:
export PATH=/usr/sfw/bin:/usr/sfw/i386-sun-solaris2.10/bin/ :$PATH
export CPP=/usr/sfw/bin/cpp

Configure command: ./configure
Make command: make

The long list then:

make[2]: Entering directory `/opt/build/dhcp-4.1.0/common'
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT alloc.o -MD -MP -MF ".deps/alloc.Tpo" -c -o alloc.o alloc.c; \
then mv -f ".deps/alloc.Tpo" ".deps/alloc.Po"; else rm -f ".deps/alloc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT bpf.o -MD -MP -MF ".deps/bpf.Tpo" -c -o bpf.o bpf.c; \
then mv -f ".deps/bpf.Tpo" ".deps/bpf.Po"; else rm -f ".deps/bpf.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT comapi.o -MD -MP -MF ".deps/comapi.Tpo" -c -o comapi.o comapi.c; \
then mv -f ".deps/comapi.Tpo" ".deps/comapi.Po"; else rm -f ".deps/comapi.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT conflex.o -MD -MP -MF ".deps/conflex.Tpo" -c -o conflex.o conflex.c; \
then mv -f ".deps/conflex.Tpo" ".deps/conflex.Po"; else rm -f ".deps/conflex.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT ctrace.o -MD -MP -MF ".deps/ctrace.Tpo" -c -o ctrace.o ctrace.c; \
then mv -f ".deps/ctrace.Tpo" ".deps/ctrace.Po"; else rm -f ".deps/ctrace.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT discover.o -MD -MP -MF ".deps/discover.Tpo" -c -o discover.o discover.c; \
then mv -f ".deps/discover.Tpo" ".deps/discover.Po"; else rm -f ".deps/discover.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT dispatch.o -MD -MP -MF ".deps/dispatch.Tpo" -c -o dispatch.o dispatch.c; \
then mv -f ".deps/dispatch.Tpo" ".deps/dispatch.Po"; else rm -f ".deps/dispatch.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I.. -DLOCALSTATEDIR='"/var"'   -g -O2 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -Wall -Werror -fno-strict-aliasing -MT dlpi.o -MD -MP -MF ".deps/dlpi.Tpo" -c -o dlpi.o dlpi.c; \
then mv -f ".deps/dlpi.Tpo" ".deps/dlpi.Po"; else rm -f ".deps/dlpi.Tpo"; exit 1; fi
dlpi.c: In function `send_packet':
dlpi.c:538: warning: implicit declaration of function `send_fallback'
dlpi.c: In function `maybe_setup_fallback':
dlpi.c:1307: warning: implicit declaration of function `if_register_fallback'
make[2]: *** [dlpi.o] Error 1
make[2]: Leaving directory `/opt/build/dhcp-4.1.0/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/build/dhcp-4.1.0/common'
make: *** [all-recursive] Error 1


The above implies that the compile failed, the if statement returns a 1, clobbering the RC value of gcc in the shell, and that's that. The -Werror gcc argument, for a reason presumably, makes all warnings errors.




----- Original Message ----
From: Glen R. J. Neff <neff_glen at emc.com>
To: Users of ISC DHCP <dhcp-users at lists.isc.org>
Sent: Wednesday, March 4, 2009 9:22:18 AM
Subject: Re: Solaris 10 x86 build error

On Tue, 2009-03-03 at 14:48 -0800, Mr. Jan Walter wrote:

> When I un-comment #define USE_SOCKETS in includes/site.h, "make clean ; make;" , I get the following build error:
> 
> dlpi.c: In function `send_packet':
> dlpi.c:538: warning: implicit declaration of function `send_fallback'
> dlpi.c: In function `maybe_setup_fallback':
> dlpi.c:1307: warning: implicit declaration of function `if_register_fallback'
> 
These are warnings, not errors.  If the build is failing, it's likely
due to something othern than these messages.

-G

-- 
/*
* Glen R. J. Neff
* RTP TSG Network Team
* neff_glen at emc.com
*
* EMC^2 == E^2
*/
_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users



      



More information about the dhcp-users mailing list