[dev.icinga.com #522] Problem building utils.c (function init_embedded_perl) #252

icinga-migration opened this Issue Jun 21, 2010 · 2 comments


None yet

1 participant


This issue has been migrated from Redmine: https://dev.icinga.com/issues/522

Created by tontonitch on 2010-06-21 12:06:16 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2010-06-21 15:55:05 +00:00)
Target Version: 1.0.2
Last Update: 2010-06-21 15:55:05 +00:00 (in Redmine)


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
make[1]: 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
make[1]: ***** [utils.o] Error 1
make[1]: 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




2010-06-21 15:51:01 +00:00 by mfriedrich 0a324f3

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

fixes #520
fixes #522

Updated by mfriedrich on 2010-06-21 15:43:08 +00:00

  • Category set to Other
  • Assigned to set to mfriedrich
  • Target Version set to 1.0.2

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


Updated by mfriedrich on 2010-06-21 15:55:05 +00:00

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

Applied in changeset commit:"0a324f364ee03e14eaddf6098cbe407e43f95909".

@icinga-migration icinga-migration added this to the 1.0.2 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment