[MacPorts] #35968: inkscape 0.48.3.1 fails to build against libpng 1.5
MacPorts
noreply at macports.org
Tue Sep 4 13:16:55 PDT 2012
#35968: inkscape 0.48.3.1 fails to build against libpng 1.5
---------------------------------------+------------------------------------
Reporter: hugo.at.ribeiro@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port:
---------------------------------------+------------------------------------
Here's the error
{{{
In file included from sp-image.cpp:59:
/opt/local/include/lcms.h: In function ‘void* _cmsMalloc(size_t)’:
/opt/local/include/lcms.h:1418: warning: comparison of unsigned expression
< 0 is always false
sp-image.cpp: In function ‘bool
Inkscape::IO::readPngAndHeaders(Inkscape::IO::PushPull&, gint&, gint&)’:
sp-image.cpp:401: error: invalid conversion from ‘char**’ to ‘png_byte**’
sp-image.cpp:401: error: initializing argument 5 of ‘png_uint_32
png_get_iCCP(const png_struct*, const png_info*, char**, int*, png_byte**,
png_uint_32*)’
sp-image.cpp: In function ‘void sp_image_release(SPObject*)’:
sp-image.cpp:676: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243)
sp-image.cpp:676: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243)
sp-image.cpp: In function ‘void sp_image_update(SPObject*, SPCtx*,
unsigned int)’:
sp-image.cpp:836: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243)
sp-image.cpp:836: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243)
sp-image.cpp: In function ‘GdkPixbuf*
sp_image_pixbuf_force_rgba(GdkPixbuf*)’:
sp-image.cpp:1294: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243)
sp-image.cpp:1294: warning: ‘gdk_pixbuf_unref’ is deprecated (declared at
/opt/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:243)
CXX sp-item.o
make[2]: *** [sp-image.o] Error 1
make[2]: *** Waiting for unfinished jobs....
sp-item.cpp: In function ‘void clip_ref_changed(SPObject*, SPObject*,
SPItem*)’:
sp-item.cpp:571: warning: ‘sp_item_invoke_bbox’ is deprecated (declared at
sp-item.h:213)
sp-item.cpp: In function ‘void mask_ref_changed(SPObject*, SPObject*,
SPItem*)’:
sp-item.cpp:599: warning: ‘sp_item_invoke_bbox’ is deprecated (declared at
sp-item.h:213)
sp-item.cpp: In function ‘void sp_item_update(SPObject*, SPCtx*, guint)’:
sp-item.cpp:635: warning: ‘sp_item_invoke_bbox’ is deprecated (declared at
sp-item.h:213)
sp-item.cpp: In function ‘NRArenaItem* sp_item_invoke_show(SPItem*,
NRArena*, unsigned int, unsigned int)’:
sp-item.cpp:1133: warning: ‘sp_item_invoke_bbox’ is deprecated (declared
at sp-item.cpp:757)
sp-item.cpp:1152: warning: ‘sp_item_invoke_bbox’ is deprecated (declared
at sp-item.cpp:757)
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/work/inkscape-0.48.3.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/work/inkscape-0.48.3.1'
make: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/work/inkscape-0.48.3.1'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/work/inkscape-0.48.3.1"
&& /usr/bin/make -j2 -w all
Exit code: 2
Error: org.macports.build for port inkscape returned: command execution
failed
}}}
There is a similar [https://bugs.launchpad.net/inkscape/+bug/721029
thread] on the inkscape bug tracker. The proposed patch might also fix the
issue here. If yes, can the patch be included into the port?
Another solution is also reported in the "linux from scratch"
[http://www.linuxfromscratch.org/blfs/view/cvs/xsoft/inkscape.html
handbook].
--
Ticket URL: <https://trac.macports.org/ticket/35968>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list