Opened 12 years ago

Closed 10 years ago

#36198 closed defect (fixed)

t4k_common 0.1.1_1 - build error

Reported by: aztec86@… Owned by: davidstuartbruce@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: haspatch Cc:
Port: t4k_common

Description

Upgrading MacPorts fails when building this port. MacOSX 10.5.8 PPC; Xcode version: 3.1.4; gcc 4.0; error:

--->  Building t4k_common
Error: org.macports.build for port t4k_common returned: command execution failed
Please see the log file for port t4k_common for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

From /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/main.log file:

:info:build /opt/local/include/librsvg-2.0/librsvg/rsvg-cairo.h:27:2: warning: #warning "Including <librsvg/rsvg-cairo.h> directly is deprecated."
:info:build t4k_loaders.c: In function ‘load_svg’:
:info:build t4k_loaders.c:176: warning: ‘rsvg_init’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:178)
:info:build t4k_loaders.c:182: warning: ‘rsvg_term’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:180)
:info:build t4k_loaders.c:189: warning: ‘rsvg_term’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:180)
:info:build t4k_loaders.c: In function ‘load_svg_sprite’:
:info:build t4k_loaders.c:203: warning: ‘rsvg_init’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:178)
:info:build t4k_loaders.c:209: warning: ‘rsvg_term’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:180)
:info:build t4k_loaders.c:217: warning: ‘rsvg_handle_get_desc’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:227)
:info:build t4k_loaders.c:227: warning: ‘rsvg_term’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:180)
:info:build t4k_loaders.c: In function ‘get_svg_dimensions’:
:info:build t4k_loaders.c:314: warning: ‘rsvg_init’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:178)
:info:build t4k_loaders.c:320: warning: ‘rsvg_term’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:180)
:info:build t4k_loaders.c:332: warning: ‘rsvg_term’ is deprecated (declared at /opt/local/include/librsvg-2.0/librsvg/rsvg.h:180)
:info:build t4k_loaders.c: In function ‘do_png_save’:
:info:build t4k_loaders.c:1031: error: dereferencing pointer to incomplete type
:info:build t4k_loaders.c:1032: error: dereferencing pointer to incomplete type
:info:build t4k_loaders.c:1033: error: dereferencing pointer to incomplete type
:info:build t4k_loaders.c:1034: error: dereferencing pointer to incomplete type
:info:build t4k_loaders.c:1035: error: dereferencing pointer to incomplete type
:info:build t4k_loaders.c:1036: error: dereferencing pointer to incomplete type
:info:build make[3]: *** [t4k_loaders.lo] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/work/t4k_common-0.1.1/src'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/work/t4k_common-0.1.1/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/work/t4k_common-0.1.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/work/t4k_common-0.1.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/work/t4k_common-0.1.1" && /usr/bin/make -w all
:info:build Exit code: 2
:error:build org.macports.build for port t4k_common returned: command execution failed
:debug:build Error code: CHILDSTATUS 9064 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
   invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for t4k_common: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port t4k_common for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_t4k_common/t4k_common/main.log

Change History (4)

comment:1 Changed 12 years ago by mhandley (Mark Handley)

I'm seeing what seems to be the same problem. MacOS 10.8.1

The relevant error lines are of the form:

:info:build t4k_loaders.c:1031:17: error: incomplete definition of type 'struct png_info_def'
:info:build         info_ptr->width = surf->w;
:info:build         ~~~~~~~~^
:info:build /opt/local/include/png.h:727:16: note: forward declaration of 'struct png_info_def'
:info:build typedef struct png_info_def png_info;

Looks like it's cause by the upgrade to libpng 1.5

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

Owner: changed from macports-tickets@… to davidstuartbruce@…

comment:3 Changed 12 years ago by mhandley (Mark Handley)

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Resolution: fixed
Status: newclosed

Thank you both for reporting the problem and for pointing us to the patch. Committed in r126009. Sorry for the delay.

Note: See TracTickets for help on using tickets.