XML Copy Editor v1.2.0.8 doesn't compile on my Debian Jessy
This is console output for the 'make' installation step:
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xmlcopyeditor\" -DVERSION=\"1.2.0.8\" -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_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/usr/include/libxml2 -Wall -g -fexceptions -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXGTK -Wall -g -fexceptions -Wall -g -fexceptions -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXGTK -MT xmlpromptgenerator.o -MD -MP -MF .deps/xmlpromptgenerator.Tpo -c -o xmlpromptgenerator.o xmlpromptgenerator.cpp
In file included from xmlpromptgenerator.cpp:23:0:
xmlpromptgenerator.h:74:29: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:77:26: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:83:31: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:84:62: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:88:26: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:99:22: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:105:32: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.h:115:36: warning: ‘cdecl’ attribute ignored [-Wattributes]
xmlpromptgenerator.cpp: In static member function ‘static void XmlPromptGenerator::starthandler(void, const XML_Char, const XML_Char)’:
xmlpromptgenerator.cpp:90:33: error: ‘XML_StopParser’ was not declared in this scope
xmlpromptgenerator.cpp: In static member function ‘static void XmlPromptGenerator::doctypedeclendhandler(void*)’:
xmlpromptgenerator.cpp:179:32: error: ‘XML_StopParser’ was not declared in this scope
make[1]: * [xmlpromptgenerator.o] Erreur 1
I can't debug it myself since I haven't any C/C++ knowledge. Sorry for that.
Any help would be appreciated,
Marc
I'm curious about the version of libexpat on your system.
If you compiled wxWidgets 2.8 yourself, please install libexpat first. The one shipped with wxWidgets 2.8 is outdated.
I installed the following packets:
libwxgtk2.8-0:amd64 libwxgtk2.8-dev libxslt-dev libxslt-dev libboost-dev libxerces-c-dev libaspell-dev libqtwebkit4 libqtwebkit4:i386 .
Dependencies of libwxgtk2.8-dev:
2.8.12.1+dfsg-1 - wx-common (0 (null)) wx2.8-headers (5 2.8.12.1+dfsg-1) libwxgtk2.8-0 (5 2.8.12.1+dfsg-1) libwxbase2.8-dev (5 2.8.12.1+dfsg-1) wx2.8-doc (0 (null)) libstdc++-dev (0 (null)) gettext (0 (null)) libgl1-mesa-dev (16 (null)) libgl-dev (0 (null)) xlibmesa-glu-dev (16 (null)) libglu-dev (0 (null)) libwxgtk2.8-dev:i386 (0 (null))
Dependencies of libwxgtk2.8-0:amd64:
2.8.12.1+dfsg-1 - libatk1.0-0 (2 1.12.4) libc6 (2 2.15) libexpat1 (2 2.0.1) libfontconfig1 (2 2.10.0) libfreetype6 (2 2.2.1) libgcc1 (2 1:4.1.1) libgdk-pixbuf2.0-0 (2 2.22.0) libgl1-mesa-glx (16 (null)) libgl1 (0 (null)) libglib2.0-0 (2 2.16.0) libglu1-mesa (16 (null)) libglu1 (0 (null)) libgtk2.0-0 (2 2.24.0) libjpeg8 (2 8c) libpango-1.0-0 (2 1.14.0) libpangoft2-1.0-0 (2 1.14.0) libpng12-0 (2 1.2.13-4) libsm6 (0 (null)) libstdc++6 (2 4.1.1) libtiff5 (2 4.0.3) libwxbase2.8-0 (2 2.8.12.1+dfsg) libxinerama1 (0 (null)) libxxf86vm1 (0 (null)) zlib1g (2 1:1.1.4) multiarch-support (0 (null)) libwxgtk2.8-0:i386 (3 2.8.12.1+dfsg-1) libwxgtk2.8-0:i386 (6 2.8.12.1+dfsg-1)
libexpat1 package info:
Package: libexpat1
Source: expat
Version: 2.1.0-4
[ Last updated version of this lib is 2.1.0 ] ( https://sourceforge.net/projects/expat/files/expat/2.1.0/ ).
double-post suppressed
Last edit: marc 2013-10-22
Could you confirm that there is just one expat.h on your system? You can find out where did g++ search for header files by:
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xmlcopyeditor\" -DVERSION=\"1.2.0.8\" -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_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/usr/include/libxml2 -Wall -g -fexceptions -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXGTK -Wall -g -fexceptions -Wall -g -fexceptions -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXGTK - -v -E < nul
Please pay attention to the lines after "#include <...> search starts here".
The correct header file for XML_StopParser should be /usr/include/expat.h.
The following 2 commands can show some information about the file:
grep XML_StopParser /usr/include/expat.h
grep VERSION /usr/include/expat.h
You point out the right problem: I had several old versions of expat.h and that was causing the previous compilation error - even if that mysterious for me since my 'expat.h' files were not referenced in LD_LIBRARY_PATH variables.
So after some cleaning which consisted in suppression of my old expat.h, this compilation step passed.
I consider this bug as closed. Thx for help.