Subject: | Module Ace fails to compile with "non-void function should return a value" error |
Date: | Fri, 10 Nov 2017 15:26:49 -0500 |
To: | bug-AcePerl [...] rt.cpan.org |
From: | Anton Molyboha <anton.stay.connected [...] gmail.com> |
Hi,
I am trying to install Ace on a MacOS under Gentoo Prefix environment.
After fixing a couple of other (probably Gentoo-specific) issues, I am
getting a compilation error:
RPC.xs:157:6: error: non-void function 'constant' should return a value
[-Wreturn-type]
The lines 154 -- 161 in RPC.xs look like this:
case '_':
if (strEQ(name, "_ACECLIENT_"))
#ifdef _ACECLIENT_
return _ACECLIENT_;
#else
goto not_there;
#endif
break;
and the macro _ACECLIENT_ is defined as empty in acelib/wh/aceclient.h: it
is the include guard.
My best guess is that this code was auto-generated and was never meant to
be there...
I am attaching the build.log generated by emerge (the Gentoo's package
manager)
Thanks!
Anton
Message body not shown because it is not plain text.