[MacPorts] #28358: libproxy @0.4.6 Build fails with "invalid conversion from 'const char*' to 'char*'"
MacPorts
noreply at macports.org
Thu Feb 10 19:13:36 PST 2011
#28358: libproxy @0.4.6 Build fails with "invalid conversion from 'const char*' to
'char*'"
-----------------------------------------+----------------------------------
Reporter: david.easter@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: libproxy
-----------------------------------------+----------------------------------
Build log:
{{{
...
:info:build [ 94%] Building C object
bindings/perl/src/CMakeFiles/PLlibproxy.dir/Libproxy.c.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src
&& /usr/bin/g++-4.0 -DPLlibproxy_EXPORTS -O2 -arch i386 -O3 -DNDEBUG -ar
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:
In function 'void boot_Net__Libproxy(CV*)':
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:189:
error: invalid conversion from 'const char*' to 'char*'
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:189:
error: initializing argument 3 of 'CV* Perl_newXS(char*, vo
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:190:
error: invalid conversion from 'const char*' to 'char*'
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:190:
error: initializing argument 3 of 'CV* Perl_newXS(char*, vo
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:191:
error: invalid conversion from 'const char*' to 'char*'
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6/bindings/perl/src/Libproxy.c:191:
error: initializing argument 3 of 'CV* Perl_newXS(char*, vo
:info:build make[2]: ***
[bindings/perl/src/CMakeFiles/PLlibproxy.dir/Libproxy.c.o] Error 1
:info:build make[1]: *** [bindings/perl/src/CMakeFiles/PLlibproxy.dir/all]
Error 2
:info:build make: *** [all] Error 2
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/work/libproxy-0.4.6"
&& /usr/bin/make all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see
log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for libproxy):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:notice:build Log for libproxy is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_libproxy/main.log
}}}
In libproxy-0.4.6/bindings/perl/src/Libproxy.c, newXS is invoked as:
{{{
const char* file = __FILE__;
...
newXS("Net::Libproxy::proxy_factory_new",
XS_Net__Libproxy_proxy_factory_new, file);
newXS("Net::Libproxy::proxy_factory_get_proxies",
XS_Net__Libproxy_proxy_factory_get_proxies, file);
newXS("Net::Libproxy::ProxyFactoryPtr::DESTROY",
XS_Net__Libproxy__ProxyFactoryPtr_DESTROY, file);
}}}
newXS is declared in /opt/local/lib/perl5/5.8.9/darwin-2level/CORE/proto.h
as:
{{{
PERL_CALLCONV CV* Perl_newXS(pTHX_ char* name, XSUBADDR_t f, char*
filename);
}}}
{{{
$ port provides /opt/local/lib/perl5/5.8.9/darwin-2level/CORE/proto.h
/opt/local/lib/perl5/5.8.9/darwin-2level/CORE/proto.h is provided by:
perl5.8
}}}
{{{
$ port installed perl5 perl5.8
The following ports are currently installed:
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/28358>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list