Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13213 closed defect (fixed)

Inkscape fails to build on Mac OS X 10.5 Leopard

Reported by: scott@… Owned by: rhwood@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc: gui-dos (Guido Soranzio)
Port:

Description

Hello! Trying to build Inkscape on Leopard results in errors:

---> Fetching inkscape ---> Verifying checksum(s) for inkscape ---> Extracting inkscape ---> Applying patches to inkscape ---> Configuring inkscape ---> Building inkscape with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_inkscape/work/inkscape-0.45.1" && make all " returned error 2 Command output: extension/script/inkscape_perl_wrap.cpp:267: warning: 'swig_type_info* SWIG_TypeQuery(const char*)' defined but not used extension/script/inkscape_perl_wrap.cpp:342: warning: 'void SWIG_PropagateClientData(swig_type_info*)' defined but not used extension/script/inkscape_perl_wrap.cpp:547: warning: 'swig_type_info* SWIG_Perl_TypeCheckRV(SV*, swig_type_info*)' defined but not used extension/script/inkscape_perl_wrap.cpp:684: warning: 'int SWIG_Perl_ConvertPacked(SV*, void*, int, swig_type_info*, int)' defined but not used extension/script/inkscape_perl_wrap.cpp:712: warning: 'void SWIG_Perl_SetErrorf(const char*, ...)' defined but not used extension/script/inkscape_perl_wrap.cpp:959: warning: 'int swig_magic_readonly(SV*, MAGIC*)' defined but not used if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/lib/perl5/5.8.8/darwin-2level/CORE -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/opt/local/include/freetype2 -I/opt/local/include -DXTHREADS -I/opt/local/include/libgnomeprint-2.2 -I/opt/local/include/libart-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/pango-1.0 -I/opt/local/include/libgnomeprintui-2.2 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/freetype2 -I/opt/local/include/gail-1.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/atk-1.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/libpng12 -I/usr/X11/include -D_REENTRANT -DORBIT2=1 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int attribute((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int attribute((unused)) libssl_symbol_is_present(char *m) { return 1; }' -I/opt/local/include -DHAVE_SSL -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DPOTRACE=\"potrace\" -DXTHREADS -D_REENTRANT -I/opt/local/include/gdkmm-2.4 -I/opt/local/lib/gdkmm-2.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/pangomm-1.4 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairomm-1.0 -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/gtkmm-2.4 -I/opt/local/lib/gtkmm-2.4/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/atk-1.0 -I/opt/local/include/libxml2 -I../cxxtest -I/opt/local/include -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -MT extension/script/InkscapePython.o -MD -MP -MF "extension/script/.deps/InkscapePython.Tpo" \

-c -o extension/script/InkscapePython.o test -f 'extension/script/InkscapePython.cpp' || echo './'extension/script/InkscapePython.cpp; \

then mv -f "extension/script/.deps/InkscapePython.Tpo" "extension/script/.deps/InkscapePython.Po"; \ else rm -f "extension/script/.deps/InkscapePython.Tpo"; exit 1; \ fi

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/lib/perl5/5.8.8/darwin-2level/CORE -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/opt/local/include/freetype2 -I/opt/local/include -DXTHREADS -I/opt/local/include/libgnomeprint-2.2 -I/opt/local/include/libart-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/pango-1.0 -I/opt/local/include/libgnomeprintui-2.2 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/freetype2 -I/opt/local/include/gail-1.0 -I/opt/local/include/gtk-2.0 -I/opt/local/include/atk-1.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/libpng12 -I/usr/X11/include -D_REENTRANT -DORBIT2=1 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int attribute((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int attribute((unused)) libssl_symbol_is_present(char *m) { return 1; }' -I/opt/local/include -DHAVE_SSL -DXTHREADS -I/opt/local/include -I/usr/X11/include -I/opt/local/include/freetype2 -DPOTRACE=\"potrace\" -DXTHREADS -D_REENTRANT -I/opt/local/include/gdkmm-2.4 -I/opt/local/lib/gdkmm-2.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/pangomm-1.4 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairomm-1.0 -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/gtkmm-2.4 -I/opt/local/lib/gtkmm-2.4/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/atk-1.0 -I/opt/local/include/libxml2 -I../cxxtest -I/opt/local/include -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -MT extension/script/inkscape_py_wrap.o -MD -MP -MF "extension/script/.deps/inkscape_py_wrap.Tpo" \

-c -o extension/script/inkscape_py_wrap.o test -f 'extension/script/inkscape_py_wrap.cpp' || echo './'extension/script/inkscape_py_wrap.cpp; \

then mv -f "extension/script/.deps/inkscape_py_wrap.Tpo" "extension/script/.deps/inkscape_py_wrap.Po"; \ else rm -f "extension/script/.deps/inkscape_py_wrap.Tpo"; exit 1; \ fi

extension/script/inkscape_py_wrap.cpp: In function 'int SWIG_Python_ConvertPtr(PyObject*, void, swig_type_info*, int)': extension/script/inkscape_py_wrap.cpp:805: error: invalid conversion from 'const char*' to 'char*' extension/script/inkscape_py_wrap.cpp: In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info, swig_type_info)': extension/script/inkscape_py_wrap.cpp:980: error: invalid conversion from 'const char*' to 'char*' extension/script/inkscape_py_wrap.cpp: At global scope: extension/script/inkscape_py_wrap.cpp:233: warning: 'swig_type_info* SWIG_TypeDynamicCast(swig_type_info*, void)' defined but not used extension/script/inkscape_py_wrap.cpp:271: warning: 'swig_type_info* SWIG_TypeQuery(const char*)' defined but not used extension/script/inkscape_py_wrap.cpp:346: warning: 'void SWIG_PropagateClientData(swig_type_info*)' defined but not used extension/script/inkscape_py_wrap.cpp:619: warning: 'void SWIG_Python_addvarlink(PyObject*, char*, PyObject* (*)(), int (*)(PyObject*))' defined but not used extension/script/inkscape_py_wrap.cpp:829: warning: 'void* SWIG_Python_MustGetPtr(PyObject*, swig_type_info*, int, int)' defined but not used extension/script/inkscape_py_wrap.cpp:843: warning: 'int SWIG_Python_ConvertPacked(PyObject*, void*, size_t, swig_type_info*, int)' defined but not used make[2]: * [extension/script/inkscape_py_wrap.o] Error 1 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Error: Status 1 encountered during processing.

Thanks!

Attachments (3)

patch-conn-avoid-ref (357 bytes) - added by tomaz.solc@… 16 years ago.
patch-py-wrap (804 bytes) - added by tomaz.solc@… 16 years ago.
Portfile (1.7 KB) - added by tomaz.solc@… 16 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 16 years ago by nox@…

Cc: rhwood@… added
Owner: changed from macports-dev@… to rhwood@…
Summary: Inkscape fails to build on OS X Leopard 10.5Inkscape fails to build on Mac OS X 10.5 Leopard

Changed 16 years ago by tomaz.solc@…

Attachment: patch-conn-avoid-ref added

Changed 16 years ago by tomaz.solc@…

Attachment: patch-py-wrap added

Changed 16 years ago by tomaz.solc@…

Attachment: Portfile added

comment:2 Changed 16 years ago by tomaz.solc@…

Attached patches will fix this problem on my system (OS X 10.5 PPC)

These changes don't seem to be specific to MacPorts, so it would be nice if someone would forward them upstream.

comment:3 Changed 16 years ago by scott@…

The attached files result in a successful build (I'm on OS X 10.5 Intel). But attempts to run Inkscape just peg the processor at ~98% and the program never loads. No messages on the console or crash logs... any ideas?

As an aside, the OS X version of Inkscape available directly from Inkscape.org works fine... not sure what they're doing differently.

comment:4 in reply to:  3 Changed 16 years ago by tomaz.solc@…

Check if X11 is running. Maybe you're having problems with leopard's broken X server.

comment:5 Changed 16 years ago by scott@…

Good call... my X11 was running, but must not have been working correctly. I re-started X11 and now Inkscape works like a charm.

Thanks!

comment:6 Changed 16 years ago by takanori@…

Resolution: fixed
Status: newclosed

These patches have been committed in r31451 - thanks!

comment:7 Changed 16 years ago by gui-dos (Guido Soranzio)

Resolution: fixed
Status: closedreopened

The message error "The inkex.py module requires PyXML." still happens.

The problem is that we need the MacPorts own version of Python2.5 and PyXML, not the Apple one. The configure test picks the Apple one, indeed:

I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5

comment:8 in reply to:  7 Changed 16 years ago by gui-dos (Guido Soranzio)

Twe need the MacPorts own version of Python2.5 and PyXML, not the Apple one.

#13837 does it

comment:9 Changed 16 years ago by jmroot (Joshua Root)

Cc: guido.soranzio@… added; scott@… rhwood@… removed
Resolution: fixed
Status: reopenedclosed

(Really) fixed by r32934.

comment:10 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.