Re: Another irritating bugreport...



On Wed, Jul 03, 2002 at 11:14:01AM +0100, Andrew Ferrier wrote: 
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/


_______________________________________________
Dia-list mailing list
Dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list



This is auto* related. DATADIR and LIBDIR are defined in the compilation
command (e.g. -DDATADIR="..."). Launching an automake-1.4 resolved the
problem for me. Good luck :)

-- 
"Not only is there no God, but try finding a plumber on Sunday. "
 - Woody Allen

MaT|TaM (http://mattam.ath.cx)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]