[collectd] perl compilation error

Sebastian Harl sh at tokkee.org
Mon Apr 28 11:10:32 CEST 2008


Hi,

On Mon, Apr 28, 2008 at 02:46:20AM +0400, Oleg King wrote:
>   I have tried to compile 4.3.3 on FreeBSD 7.0 and found following
>   error:
> 
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -DPREFIX='"/opt/collectd"'  -DCONFIGFILE='"/opt/collectd/etc/collectd.conf"'  -DLOCALSTATEDIR='"/opt/collectd/var"'  -DPKGLOCALSTATEDIR='"/opt/collectd/var/lib/collectd"'  -DPIDFILE='"/opt/collectd/var/run/collectd.pid"' -DPLUGINDIR='"/opt/collectd/lib/collectd"' -I/usr/local/include -Wall -Werror  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include  -I/usr/local/lib/perl5/5.8.8/mach/CORE  -DXS_VERSION=\"4.3.3\" -DVERSION=\"4.3.3\" -g -O2 -MT perl_la-perl.lo -MD -MP -MF .deps/perl_la-perl.Tpo -c -o perl_la-perl.lo `test -f 'perl.c' || echo './'`perl.c
> gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/opt/collectd\" -DCONFIGFILE=\"/opt/collectd/etc/collectd.conf\" -DLOCALSTATEDIR=\"/opt/collectd/var\" -DPKGLOCALSTATEDIR=\"/opt/collectd/var/lib/collectd\" -DPIDFILE=\"/opt/collectd/var/run/collectd.pid\" -DPLUGINDIR=\"/opt/collectd/lib/collectd\" -I/usr/local/include -Wall -Werror -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.8/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/local/lib/perl5/5.8.8/mach/CORE -DXS_VERSION=\"4.3.3\" -DVERSION=\"4.3.3\" -g -O2 -MT perl_la-perl.lo -MD -MP -MF .deps/perl_la-perl.Tpo -c perl.c  -fPIC -DPIC -o .libs/perl_la-perl.o
> cc1: warnings being treated as errors
> perl.c: In function 'init_pi':
> perl.c:1367: warning: value computed is not used
> *** Error code 1

Just to make sure, we're talking about the same thing: What does line
1367 in src/perl.c say? Is it "PERL_SYS_INIT3 (&argc, &argv,
&environ);"?

If that's the case, please check what it expands to on your platform:

  cd src
  gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -Wall \
    -I/usr/local/lib/perl5/5.8.8/mach/CORE \
    -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.8/BSDPAN \
    -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DXS_VERSION=\"4.3.3\" \
    .deps/perl_la-perl.Tpo \
    -g -O2 -MT perl_la-perl.lo -MD -MP -MF -E -fPIC -DPIC perl.c

If you're unsure how to get the relevant parts out of that output,
please send all of the output to the list.

TIA,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080428/89b113d4/attachment.pgp 


More information about the collectd mailing list