Re: libart header compile error



On 13 Aug 2003, ashalper cox net wrote:
When compiling current CVS on Debian unstable, I'm winding up with the
following compile error:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -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/include/freetype2 
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 
-I/usr/include/libart-2.0 -DDIA_SHEETDIR=\"/usr/local/share/dia/sheets\" -DLIBDIR=\"/usr/local/lib\" 
-DDATADIR=\"/usr/local/share/dia\" -I/usr/include/libxml2 -g -O2 -Wall -Wunused -Wmissing-prototypes 
-Wmissing-declarations -finline-functions -fstrict-aliasing -Wp,-MD,.deps/dialibartrenderer.pp -c 
dialibartrenderer.c  -fPIC -DPIC -DPIC -o dialibartrenderer.o
In file included from /usr/include/libart-2.0/libart_lgpl/art_misc.h:34,
from dialibartrenderer.c:50:
/usr/include/libart-2.0/libart_lgpl/art_config.h:8: error: redefinition of `art_u8'
/usr/include/libart-2.0/libart_lgpl/art_config.h:8: error: `art_u8' previously declared here
/usr/include/libart-2.0/libart_lgpl/art_config.h:9: error: redefinition of `art_u16'
/usr/include/libart-2.0/libart_lgpl/art_config.h:9: error: `art_u16' previously declared here
/usr/include/libart-2.0/libart_lgpl/art_config.h:10: error: redefinition of `art_u32'
/usr/include/libart-2.0/libart_lgpl/art_config.h:10: error: `art_u32' previously declared here

Aargh.  Libart includes are so broken.  They don't allow reinclude of
art_config.h, and art_rgb.h uses arg_config.h without including it first.
Fix applied to CVS, just remove include of art_config.h from
lib/dialibartrenderer.c. 

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



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