[collectd] perl compilation error

Sebastian Harl sh at tokkee.org
Mon Apr 28 14:10:39 CEST 2008


Hi again,

On Mon, Apr 28, 2008 at 02:00:44PM +0200, Sebastian Harl wrote:
> -	PERL_SYS_INIT3 (&argc, &argv, &environ);
> +	{
> +		/* make gcc on FreeBSD happy :-/ */
> +		int dummy = PERL_SYS_INIT3 (&argc, &argv, &environ);
> +	}

Damn... this will make gcc complain about an unused variable and thus
fail again. Also, it doesn't work on x86 Linux, because PERL_SYS_INIT3()
seems to "return" a pointer. :-(

Any suggestions are welcome!

Cheers,
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/03af0af8/attachment.pgp 


More information about the collectd mailing list