[poppler] gcc-4.0 .1 doesn't like poppler.h

sean darcy seandarcy2 at gmail.com
Sun Jun 12 13:33:34 PDT 2005


I'm trying to build abiword against poppler-0.3.2 with gcc-4.0.1, amd64:

 g++ -DPACKAGE_NAME=\"abiword-plugins\"
-DPACKAGE_TARNAME=\"abiword-plugins\" -DPACKAGE_VERSION=\"2.3.1\"
"-DPACKAGE_STRING=\"abiword-plugins 2.3.1\""
-DPACKAGE_BUGREPORT=\"http://bugzilla.abisource.com/\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STRINGS_H=1 -DPACKAGE=\"abiword\"
-DVERSION=\"2.3.1\" -DHAVE_DLFCN_H=1 -DHAVE_LIBBZ2=1
-DTIME_WITH_SYS_TIME=1 -I. -I. -DNDEBUG
-I../../../../../abi/src/af/util/xp
-I../../../../../abi/src/af/util/unix
-I../../../../../abi/src/af/xap/xp -I../../../../../abi/src/af/ev/xp
-I../../../../../abi/src/af/gr/xp -I../../../../../abi/src/text/fmt/xp
-I../../../../../abi/src/text/ptbl/xp
-I../../../../../abi/src/wp/impexp/xp
-I../../../../../abi/src/wp/ap/xp
-I../../../../../abi/src/other/spell/xp
-I../../../../../abi/src/other/fribidi/xp
-I../../../../../abi/src/other/ttftool/unix
-I../../../../../abi/src/af/xap/unix
-I../../../../../abi/src/af/ev/unix
-I../../../../../abi/src/af/gr/unix
-I../../../../../abi/src/wp/ap/unix -DABI_PLUGIN_VERSION=\"2.3.1\"
-DABI_PLUGIN_MAJOR=2 -DABI_PLUGIN_MINOR=3 -DABI_PLUGIN_MICRO=1
-DABI_PLUGIN_SOURCE=1 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/fribidi
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/libglade-2.0 -I/usr/include/libxml2
-I/usr/include/poppler -O2 -fPIC -ffast-math -mtune=athlon64
-ftree-vectorize -fvisibility-inlines-hidden -pipe -MT ie_imp_PDF.lo
-MD -MP -MF .deps/ie_imp_PDF.Tpo -c ie_imp_PDF.cpp  -fPIC -DPIC -o
.libs/ie_imp_PDF.o
/usr/include/poppler/TextOutputDev.h:171: error: expected `)' before '*' token
/usr/include/poppler/TextOutputDev.h:197: error: ISO C++ forbids
declaration of 'TextBlock' with no type
/usr/include/poppler/TextOutputDev.h:197: error: expected ';' before '*' token
/usr/include/poppler/TextOutputDev.h:228: error: expected `)' before '*' token
/usr/include/poppler/TextOutputDev.h:252: error: ISO C++ forbids
declaration of 'TextPage' with no type
/usr/include/poppler/TextOutputDev.h:252: error: expected ';' before '*' token
/usr/include/poppler/TextOutputDev.h:284: error: expected `)' before '*' token
/usr/include/poppler/TextOutputDev.h:298: error: ISO C++ forbids
declaration of 'TextPage' with no type
/usr/include/poppler/TextOutputDev.h:298: error: expected ';' before '*' token
/usr/include/poppler/TextOutputDev.h:323: error: expected `)' before '*' token
/usr/include/poppler/TextOutputDev.h:418: error: 'TextLineFrag' has
not been declared
make[4]: *** [ie_imp_PDF.lo] Error 1


sean


More information about the poppler mailing list