Skip Menu |

This queue is for tickets about the KinoSearch CPAN distribution.

Report information
The Basics
Id: 32200
Status: resolved
Priority: 0/
Queue: KinoSearch

People
Owner: CREAMYG [...] cpan.org
Requestors: swatt [...] infobal.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.20_05
Fixed in: (no value)



Subject: Won't compile under Windows/MinGW
Compilation proceeds happily until we get to the C stage. We can't get to the win32lfs.h file, which may be either in c_src\compat (which was not present in the distribution) or due to not using VS to compile. Perl version, ActivePerl 5.8.8 (Build 822); OS: Win2K; compiler GCC MinGW and MSYS. I will maybe see if I can find the stuff in Lucy. Partial trace below Creating os object... Trying to find a supported compiler... Creating compiler object... Trying to compile a small test file... Initialization complete. Running DirSep module... Running Headers module... Running FuncMacro module... Running Integers module... Running LargeFiles module... Attempting to compile _charm_stat utility... Running UnusedVars module... Running VariadicMacros module... Cleaning up... Cleanup complete. Can't stat c_src\compat: No such file or directory at buildlib/Lucy/Build.pm line 323 gcc -c -I"charmonizer" -I"." -I"c_src\compat" -O2 -DWIN32 -DPERL_IMPLICIT_CONTEX T -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -O2 -I"C:\Perl\lib\CORE" -I"\include" -o "charmonizer\Charmonizer\Test.o" "charmonizer\Charmonizer\Test.c" gcc -c -I"charmonizer" -I"." -I"c_src\compat" -O2 -DWIN32 -DPERL_IMPLICIT_CONTEX T -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -O2 -I"C:\Perl\lib\CORE" -I"\include" -o "charmonizer\Charmonizer\Test\AllTests.o" "charmonizer\Charmonizer\Test\AllTests .c" gcc -c -I"charmonizer" -I"." -I"c_src\compat" -O2 -DWIN32 -DPERL_IMPLICIT_CONTEX T -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -O2 -I"C:\Perl\lib\CORE" -I"\include" -o "charmonizer\Charmonizer\Test\FuncMacro.o" "charmonizer\Charmonizer\Test\FuncMac ro.c" In file included from charmonizer\Charmonizer\Test\FuncMacro.c:3: ./charmony.h:200:24: win32lfs.h: No such file or directory error building dll file from 'charmonizer/Charmonizer/Test/FuncMacro.c' at C:/Perl/site/lib/ExtUtils/CBuilder/Platform/Windows.pm line 143. dmake: Error code 130, while making 'all'
The devel branch of KinoSearch has not compiled under Windows for a while now. However, there are only a few things in the way, as the vast majority of KS is written using c90 and the Charmonizer configuration layer handles a lot of the portability issues. These are the problems I recall off the top of my head: * c_src/KinoSearch/Store/Lock.c uses unistd.h and signal.h. * c_src/KinoSearch/Store/FSFolder uses sys/stat.h and dirent.h. * Charmonizer needs to be configured to supply versions of LFS-support functions such as ftello64 for Windows. I recently upgraded to a MacBook Pro, and I've been able to get an XP devel environment up and running via Boot Camp. It has not been a high priority to address the Windows issues, since until now all of the KS early adopters have been running various unixen. However, it's probably not too much work to get things going again.
Subject: RE: [rt.cpan.org #32200] Won't compile under Windows/MinGW
Date: Mon, 21 Jan 2008 11:35:48 -0500
To: "'bug-KinoSearch [...] rt.cpan.org'" <bug-KinoSearch [...] rt.cpan.org>
From: Stuart Watt <SWatt [...] infobal.com>
Hi Martin If you like, I can look into it. I've used Lucene before, and I'm pretty solid on Windows/Perl/C - I'm currently writing ANTLR parsers using the C runtime and hooking them into Perl XS. I try to avoid the nastiness of some XS stuff, I am nowhere near you level expertise in these matters, but I'm pretty sound and getting stuff to compile. Let me know if you'd like me to help - could really use a good Perl search engine, and the older versions of KinoSearch rocked!! I'm also a MacBook Pro user at home - where I use Parallels Workstation rather than Boot Camp. But I also have a Visual Studio copy somewhere, so I should be able to check on both. --S Show quoted text
-----Original Message----- From: Marvin Humphrey via RT [mailto:bug-KinoSearch@rt.cpan.org] Sent: Sunday, January 20, 2008 5:03 PM To: swatt@infobal.com Subject: [rt.cpan.org #32200] Won't compile under Windows/MinGW <URL: http://rt.cpan.org/Ticket/Display.html?id=32200 > The devel branch of KinoSearch has not compiled under Windows for a while now. However, there are only a few things in the way, as the vast majority of KS is written using c90 and the Charmonizer configuration layer handles a lot of the portability issues. These are the problems I recall off the top of my head: * c_src/KinoSearch/Store/Lock.c uses unistd.h and signal.h. * c_src/KinoSearch/Store/FSFolder uses sys/stat.h and dirent.h. * Charmonizer needs to be configured to supply versions of LFS-support functions such as ftello64 for Windows. I recently upgraded to a MacBook Pro, and I've been able to get an XP devel environment up and running via Boot Camp. It has not been a high priority to address the Windows issues, since until now all of the KS early adopters have been running various unixen. However, it's probably not too much work to get things going again.
From: ddascalescu+perl [...] gmail.com
On Sun Jan 20 17:02:39 2008, CREAMYG wrote: Show quoted text
> The devel branch of KinoSearch has not compiled under Windows for a > while now.
I have 0.165 running on Windows with Strawberry Perl 5.10, so perhaps this ticket can be closed?
Both the stable 0.1x branch and the devel 0.3x branch now work on Windows.