From: Stanley H. <Stanley.Hopcroft@IPAustralia.gov.au> - 2005-05-25 05:35:31
|
Dear Folks, From a last 10 day CVS of 2.x, with gcc 3 on FreeBSD, Nagios fails to build with embedded Perl in base/utils.c. *** Configuration summary for nagios 2.0b3 04-03-2005 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagiocmd Command user/group: nagios,nagiocmd Embedded Perl: yes, with caching Event Broker: yes Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Init directory: /usr/local/etc/rc.d Host OS: freebsd5.4 Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. cd ./base && make gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c broker.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c nebmods.c nebmods.c: In function `neb_add_module': nebmods.c:103: warning: assignment makes pointer from integer without a cast gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c checks.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c config.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c commands.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c events.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c flapping.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c logging.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c notifications.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c sehandlers.c gcc -g -O2 -I/usr/local/include -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.6/mach/CORE -DHAVE_CONFIG_H -DNSCORE -c utils.c utils.c: In function `init_embedded_perl': utils.c:4549: error: invalid type argument of `unary *' utils.c:4549: warning: passing arg 2 of `Perl_doing_taint' from incompatible pointer type *** Error code 1 Stop in /usr/home/anwsmh/build/nagios-cvs/base. *** Error code 1 Stop in /usr/home/anwsmh/build/nagios-cvs. ws11114> gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 ws11114> I will try and understand what is causing this problem. The same code compiles cleanly on the (old) gcc 2 that is standard on FreeBSD RELENG4 (ie all FreeBSD 4.x with the system compiler). Yours sincerely. |