Opened 15 years ago

Closed 15 years ago

#20000 closed defect (fixed)

dia 0.97 compile error

Reported by: ifigueroap@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: dia

Description (last modified by mf2k (Frank Schima))

Leopard 10.5.7 XCode 3.1.2 I did a port selfupdate and a port upgrade outdated

when i try to install dia with the command

sudo port install dia

I get the following error:

boolequation.c:62: error: conflicting types for 'isspecial'
/usr/include/ctype.h:359: error: previous definition of 'isspecial' was here
make[3]: *** [boolequation.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I've only installed the Kile port before, and it was succesful. I attach the output of: sudo port -d install dia

Attachments (1)

debug_dia.log (19.3 KB) - added by ifigueroap@… 15 years ago.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by ifigueroap@…

Attachment: debug_dia.log added

comment:1 Changed 15 years ago by ifigueroap@…

Cc: ifigueroap@… added

Cc Me!

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Cc: ifigueroap@… removed
Description: modified (diff)
Keywords: dia removed
Owner: changed from macports-tickets@… to nox@…

comment:3 in reply to:  description Changed 15 years ago by aetherknight@…

I am seeing a similar problem with Mac OS X 10.4.11:

Making all in GRAFCET
/bin/sh ../../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I./../../lib  -D_REENTRANT -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/pango-1.0 -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/libxml2 -I/opt/local/include/libart-2.0    -I/opt/local/include  -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include -pipe -O2  -Wall --std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -Wpointer-arith -Winit-self -Wformat-nonliteral -MT boolequation.lo -MD -MP -MF .deps/boolequation.Tpo -c -o boolequation.lo boolequation.c
 /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I./../../lib -D_REENTRANT -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/pango-1.0 -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/opt/local/include/libxml2 -I/opt/local/include/libart-2.0 -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/freetype2 -I/opt/local/include -pipe -O2 -Wall --std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -Wpointer-arith -Winit-self -Wformat-nonliteral -MT boolequation.lo -MD -MP -MF .deps/boolequation.Tpo -c boolequation.c  -fno-common -DPIC -o .libs/boolequation.o
boolequation.c:61: error: parse error before '(' token
make[3]: *** [boolequation.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

In 10.4.11, isspecial() is conditionally defined in /usr/local/ctype.h, although the error message is rather cryptic about it (the different versions of gcc?). The dia module reimplements it just for boolequation.c.

I commented out the isspecial() function in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_dia/work/dia-0.97/objects/GRAFCET/boolequation.c after the install/upgrade fails, which makes for a temporary (if possibly risky) workaround. Better solutions exist.

comment:4 Changed 15 years ago by nox@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.