Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-5

PyLucene 3.0.2 doesn't build with GCC 4.5 on Windows XP with MinGW/msys

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Windows XP, MinGW gcc 4.5, msys shell, Python 2.6.6

      Description

      I'm trying to build JCC 2.6 (from the PyLucene 3.0.2 source bundle) with
      GCC 4.5 on Windows XP using MinGW/msys.

      creating build\temp.win32-2.6\Release\jcc\sources
      c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_jcc_lib -DJCC_VER="2.6" "-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program Files\Java\jdk1.6.0_21\include\win32" -I_jcc -Ijcc/sources -Ic:\Python26\include -Ic:\Python26\PC -c jcc/sources/jcc.cpp -o build\temp.win32-2.6\Release\jcc\sources\jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
      jcc/sources/jcc.cpp: In function 'PyObject* initJCC(PyObject*)':
      jcc/sources/jcc.cpp:337:48: error: cannot convert 'double' to 'const char*' for argument '1' to 'PyObject* PyString_FromString(const char*)'
      error: command 'gcc' failed with exit status 1

      I believe the #ifdef a few lines above needs to change from

      #ifdef _MSC_VER

      to

      #if defined(MSC_VER) || defined(_WIN32)

      to match the similar #ifdefs elsewhere in the code.

      JCC_VER is a double on Windows but a string elsewhere? Odd.

      Bill

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              janssen Bill Janssen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified