Opened 14 years ago

Closed 13 years ago

Last modified 11 years ago

#11447 closed defect (fixed)

inkscape 0.45 fails to compile on OS X 10.3.9

Reported by: random@… Owned by: rhwood@…
Priority: High Milestone:
Component: ports Version:
Keywords: inkscape Cc: rhwood@…, yves@…


The port inkscape 0.45, Revision 1 fails to build on Mac OS X 10.3.9. The exact error message is attached below.

Error: Target returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_inkscape/work/inkscape-0.45" && make all" returned error 2
Command output: make  all-recursive
Making all in src
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/local/lib/perl5/5.8.8/darwin-2level/CORE  -I/opt/local/include/python2.4 -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/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/libpng12 -I/usr/X11R6/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/bonobo-activation-2.0 -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/gconf/2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/orbit-2.0   -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/opt/local/include/freetype2 -I/usr/X11R6/include   -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/X11R6/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 -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch  -Wno-unused-parameter -g -O2 -MT object-edit.o -MD -MP -MF ".deps/object-edit.Tpo" \
  -c -o object-edit.o `test -f 'object-edit.cpp' || echo './'`object-edit.cpp; \
then mv -f ".deps/object-edit.Tpo" ".deps/object-edit.Po"; \
else rm -f ".deps/object-edit.Tpo"; exit 1; \
object-edit.cpp: In function `void sp_spiral_outer_set(SPItem*, const 
   NR::Point&, const NR::Point&, unsigned int)':
object-edit.cpp:921: error: `isfinite' undeclared in namespace `std'
make[2]: *** [object-edit.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for inkscape):
Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 14 years ago by yves@…


I just commited a patch (r22377), but I would not bet on it ...

comment:2 Changed 14 years ago by rhwood@…

Milestone: Available Ports
Owner: changed from macports-dev@… to rhwood@…
Status: newassigned
Version: 1.3.2

Please inform us if the patch worked for you or not.

comment:3 Changed 14 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:4 Changed 14 years ago by yves@…

Resolution: fixed
Status: assignedclosed

no news = good news

comment:5 Changed 13 years ago by random@…

Resolution: fixed
Status: closedreopened


sorry for not reacting, I assumed to get a notification e-mail from Trac whenever comments get added to the ticket.

Unfortunately, the patch doesn't resolve the problem. Fortunately, I finally got time to investigate a bit. The solution is to add lines

#define isFinite(_a) (__isfinite(_a))
#define isNaN(_a)    (__isnan(_a))

to the end of src/isnan.h to force working definitions of those two macros.

The problem reappears in another incarnation, namely src/display/nr-filter-gaussian.cpp fails to compile due to a missing isnormal() macro. Again, using __isnormal() makes the compilation problem go away.

I filed bug report 1700565 about these issues to inkscape. Maybe they already fixed it in version 0.45.1?

comment:6 Changed 13 years ago by yves@…

Resolution: fixed
Status: reopenedclosed

It seems the fixes are included in 0.45.1

this version is now available through MacPprts


comment:7 Changed 11 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.