Bug #522

Problem building utils.c (function init_embedded_perl)

Added by tontonitch almost 5 years ago. Updated almost 5 years ago.

Status:ResolvedStart date:06/21/2010
Priority:NormalDue date:
Assignee:dnsmichi% Done:


Target version:1.0.2
Icinga Version: OS Version:



I'm trying to build icinga core from the last sources (git snapshot of the 21/06/2010), and facing compilation problems.

During compilation, it seems that the function init_embedded_perl has some problems with its arguments.

monitor2:/var/tmp/install/icinga/icinga-core# make all
cd ./base && make
make1: Entering directory `/var/tmp/install/icinga/icinga-core/base'
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c
utils.c: In function âinit_embedded_perlâ:
utils.c:3599: error: âargcâ undeclared (first use in this function)
utils.c:3599: error: (Each undeclared identifier is reported only once
utils.c:3599: error: for each function it appears in.)
utils.c:3599: warning: passing argument 2 of âPerl_sys_init3â from incompatible pointer type
make1: * [utils.o] Error 1
make1: Leaving directory `/var/tmp/install/icinga/icinga-core/base'
make: *
[all] Error 2

Built prepared with the following configure arguments:
./configure --with-icinga-user=icinga --with-icinga-group=icinga --with-command-group=icinga-cmd --enable-idoutils --enable-ssl --enable-embedded-perl --with-perlcache --enable-perl-modules --enable-event-broker



Associated revisions

Revision 0a324f36
Added by dnsmichi almost 5 years ago

remove -Wall cflags, incompatible with solaris; fix deleted argc

fixes #520
fixes #522


#1 Updated by dnsmichi almost 5 years ago

  • Category set to Other
  • Assignee set to dnsmichi
  • Target version set to 1.0.2

ups - this happened through warnings cleanup. thanks for reporting :)

#2 Updated by dnsmichi almost 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF