From: Andrew Ferrier <andrew junk new-destiny co uk>
To: dia-list gnome org
Subject: Another irritating bugreport...
Date: Wed, 3 Jul 2002 11:14:01 +0100 (BST)
A fresh checkout and build of Dia this morning produces:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2
-DDIA_SHEETDIR=\"/usr/local/share/dia/sheets\" -g -O2
-Wall -Wunused -Winline -Wmissing-prototypes
-Wmissing-declarations -finline-functions -fstrict-aliasing -c
`test -f dia_dirs.c || echo './'`dia_dirs.c
dia_dirs.c: In function `dia_get_data_directory':
dia_dirs.c:51: `DATADIR' undeclared (first use in this
function)
dia_dirs.c:51: (Each undeclared identifier is reported only
once
dia_dirs.c:51: for each function it appears in.)
dia_dirs.c: In function `dia_get_lib_directory':
dia_dirs.c:80: `LIBDIR' undeclared (first use in this function)
make[2]: *** [dia_dirs.o] Error 1
make[2]: Leaving directory
`/tmp/build-dia-20020703110034/dia/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/build-dia-20020703110034/dia'
make: *** [all] Error 2
A quick look at dia_dirs.c and dia_dirs.h confirms this
problem, DATADIR indeed seems to be undeclared, not sure where
it's come from though because I can't see anything relevant in
the ChangeLog (hence no patch supplied). Hopefully someone more
familiar with the code can sort it out...
Regards,
Andrew.
--
Andrew Ferrier
email: andrew.junk@new-destiny.co.uk
web: http://www.new-destiny.co.uk/andrew/