Menu

Build errors on Linux

Help
2006-08-10
2012-12-07
  • Nobody/Anonymous

    Trying to build the latest version from source - installed wxGTK-2.6.3 and downloaded boost 1.33.1 (do I need to "install" boost as well?") and getting the following errors:

    > make
    Making all in src
    make[1]: Entering directory `/a/asdfssgapprogram24/export/APprogram24/modsim/commontools/src/xml-copy-editor/xmlcopyeditor-1.0.6.7/src'
    if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xmlcopyeditor\" -DVERSION=\"
    1.0.6.7\" -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  -I. -I. -I/usr/include/libxml2  -I/usr/include/pcre -I/prog/shared/modsim/commontools/src/xml-copy-editor
    /boost_1_33_1 -Wall -g -fexceptions -I/prog/shared/modsim/commontools/i686-pc-linux-gnu/wxGTK-2.6.3/lib/wx/include/gtk2-unicode-release-static-2.6 -I/prog/share
    d/modsim/commontools/i686-pc-linux-gnu/wxGTK-2.6.3/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -
    DNO_GCC_PRAGMA  -I/usr/include/pcre -I/prog/shared/modsim/commontools/src/xml-copy-editor/boost_1_33_1 -Wall -g -fexceptions -Wall -g -fexceptions -I/prog/share
    d/modsim/commontools/i686-pc-linux-gnu/wxGTK-2.6.3/lib/wx/include/gtk2-unicode-release-static-2.6 -I/prog/shared/modsim/commontools/i686-pc-linux-gnu/wxGTK-2.6.
    3/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -MT xmlcopyeditor.o -MD -MP -MF ".
    deps/xmlcopyeditor.Tpo" -c -o xmlcopyeditor.o xmlcopyeditor.cpp; \
    then mv -f ".deps/xmlcopyeditor.Tpo" ".deps/xmlcopyeditor.Po"; else rm -f ".deps/xmlcopyeditor.Tpo"; exit 1; fi
    xmlschemalocator.h:22: error: variable or field 'XMLCALL' declared void
    xmlschemalocator.h:22: error: expected ';' before 'starthandler'
    xsllocator.h:22: error: variable or field 'XMLCALL' declared void
    xsllocator.h:22: error: expected ';' before 'starthandler'
    xsllocator.h:26: error: variable or field 'XMLCALL' declared void
    xsllocator.h:26: error: expected ';' before 'processingInstructionHandler'
    xmlutf8reader.h:25: error: variable or field 'XMLCALL' declared void
    xmlutf8reader.h:25: error: expected ';' before 'xmldeclhandler'
    xmlutf8reader.h:30: error: variable or field 'XMLCALL' declared void
    xmlutf8reader.h:30: error: expected ';' before 'defaulthandler'

    and on and on...                                                                  

    Using gcc 4.1.0
    Linux redhat enterprise 3

    Cannot install the RPM as I don't have root access to this box.

    Thanks,

    Josh

     
    • Nobody/Anonymous

      Replying to my own post - needed to add CPPFLAGS for -I to include expat-2.0.0's include files.

      New problem is that the version of libxml2 on RH Enterprise 3 is not liked by the build process.  I have a more recent copy of libxml2 installed somewhere else, but adding a CPPFLAG -I and LDFLAG -L to the configure script puts these AFTER the hardcoded -I/usr/include/libxml2 in the Makefile. 

      Also, the Makefile has hard-coded locations to the wxGTK libs in /usr/local/lib so I have to muck with the Makefiles to change this (even though I used --with-wx-config=/path/to/my/wxGTK/bin/wx-config

      Suggestions:

      Add a --with-expat=/path and a --with-libxml2=/path to your configure process for people that have to install newer libs in alternate locations.  Have --with-wx-config actually set the library locations to something other than /usr/local/lib in the Makefile.

      configure also doesn't handle if libXinemera and libXxf86vm are static libs not shared objects.

      make install tries to create /usr/local/share/xmlcopyeditor even when configure uses --prefix=/path

      Finally did build after numerous Makefile tweeks though...

      Thanks,

      Josh

       
    • gnschmidt

      gnschmidt - 2006-08-10

      Thanks Josh, could you send me the patched version of src/Makefile.am or src/Makefile? If so, I'd be very happy to fold it into the next release.

      I'd very much prefer to pick up the --prefix instructions. Where is this best done?

      Similarly, the hardcoded paths to the wxGTK libraries were necessary on my fc-5 setup to avoid mixing static and shared wxGTK libraries. Again, I'd be very happy to use your Makefile.am/Makefile.

       
    • gnschmidt

      gnschmidt - 2006-08-13

      Josh, this problem should be fixed as of 1.0.6.8. If not, please feel free to reply/submit a bug report.

       

Log in to post a comment.