lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andi Vajda (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (PYLUCENE-5) PyLucene 3.0.2 doesn't build with GCC 4.5 on Windows XP with MinGW/msys
Date Tue, 05 Oct 2010 19:49:33 GMT

     [ https://issues.apache.org/jira/browse/PYLUCENE-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andi Vajda resolved PYLUCENE-5.
-------------------------------

    Resolution: Fixed

rev 1004766

> PyLucene 3.0.2 doesn't build with GCC 4.5 on Windows XP with MinGW/msys
> -----------------------------------------------------------------------
>
>                 Key: PYLUCENE-5
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-5
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: Windows XP, MinGW gcc 4.5, msys shell, Python 2.6.6
>            Reporter: Bill Janssen
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message