On Jun 14, 2005, at 5:11 PM, Kevin Horton wrote:

On 14 Jun 2005, at 10:28, Hisashi T Fujinaka wrote:


Oh. I guess I missed that one. However, I don't think dia will build
right now whether that's fixed or not.



Thanks everyone for the info on how to check dependencies. It turns out that I got fooled by SpotLight, and I was looking at the dia.info file for 10.3, which is why I didn't understand why it required perl 5.8.1.

I got the latest dia.info from Martin, and tried to build dia. It didn't build, failing as:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intl -I../../lib - DORBIT2=1 -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/usr/ X11R6/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/ X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/ include -I/sw/include/libxml2 -I/sw/include/libart-2.0 -I/sw/ include/libgnome-2.0 -I/sw/include/orbit-2.0 -I/sw/include/ libbonobo-2.0 -I/sw/include/gconf/2 -I/sw/include/gnome-vfs-2.0 -I/ sw/lib/gnome-vfs-2.0/include -I/sw/include/bonobo-activation-2.0 -I/ sw/include/libgnomeui-2.0 -I/sw/include/libgnomecanvas-2.0 -I/sw/ include/libbonoboui-2.0 -I/sw/include/pango-1.0 -I/usr/X11R6/ include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/ lib/glib-2.0/include -I/sw/include/libxml2 -DDIA_SHAPEDIR=\"/sw/ share/dia/shapes\" -I/sw/include/libxml2 -I/usr/X11R6/include -I/ usr/X11R6/include/freetype2 -g -O2 -Wall -Wunused -Wmissing- prototypes -Wmissing-declarations -finline-functions -fstrict- aliasing -MT shape_info.lo -MD -MP -MF .deps/shape_info.Tpo -c shape_info.c -fno-common -DPIC -o .libs/shape_info.o
shape_info.c: In function 'shape_info_get':
shape_info.c:64: warning: pointer targets in passing argument 2 of 'xmlGetProp' differ in signedness shape_info.c:64: warning: pointer targets in assignment differ in signedness
shape_info.c: At top level:
shape_info.c:121: error: static declaration of 'parse_path' follows non-static declaration
shape_info.h:169: error: previous declaration of 'parse_path' was here

The "static declaration of ... follows non-static declaration" error is a common one for packages that won't build with gcc 4.0. Ultimately dia needs to be patched to build on gcc 4.0, but for now forcing it to build with gcc-3.3 should get it to compile. Until dia gets updated, you can do this with "sudo gcc_select 3.3" before "fink install dia". Just be sure to "sudo gcc_select 4.0" afterwards.

Maintainer CCed.

--
Daniel Johnson
[EMAIL PROTECTED]
PGP public key: http://homepage.mac.com/danielj7/publickey.txt

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to