Opened 13 years ago

Closed 11 years ago

#28358 closed defect (worksforme)

libproxy @0.4.6 Build fails with "invalid conversion from 'const char*' to 'char*'"

Reported by: david.easter@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libproxy

Description

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)

Change History (5)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to devans@…

What Mac OS X version are you running?

comment:2 in reply to:  1 Changed 13 years ago by david.easter@…

Replying to ryandesign@…:

What Mac OS X version are you running?

Leopard: 10.5.8.

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Do you still see this with 0.4.7? I don't have an i386 Leopard machine, but it builds fine on ppc Leopard and x86_64 Snow Leopard.

comment:4 in reply to:  3 Changed 12 years ago by david.easter@…

Replying to jmr@…:

Do you still see this with 0.4.7? I don't have an i386 Leopard machine, but it builds fine on ppc Leopard and x86_64 Snow Leopard.

I don't have a Leopard machine any longer and no good way to test now, unfortunately.

comment:5 Changed 11 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: newclosed

Updated to 0.4.10 in r98907, r98908. Build tested OK on Snow Leopard, Lion and Mountain Lion. If problem with Leopard persists, please open new ticket with full details (build log, etc.)

Note: See TracTickets for help on using tickets.