Skip Menu |

This queue is for tickets about the Geo-Proj4 CPAN distribution.

Report information
The Basics
Id: 23989
Status: resolved
Priority: 0/
Queue: Geo-Proj4

People
Owner: MARKOV [...] cpan.org
Requestors: jpalmer [...] linz.govt.nz
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Compile for win32 with VS2005
Hi I'm trying to build Geo::Proj4 for windows and I can't get Proj4.c to compile. I couldn't get the perl makefile to work so I quickly hacked one together that should work (see the the attached Makefile.PL). However when I try to make the distribution I get the an error as attached with err.log. I have compiled and used proj-4.5.0 for projlib. But I've also tried using 4.4.9 Not sure if this is a bug or an environment setup issue. I'm using VS2005 and ActiveState perl 5.8.8 build 819 on windows xp sp2. Thanks
Subject: err.log
Download err.log
application/octet-stream 9.1k

Message body not shown because it is not plain text.

Subject: Makefile.PL
use ExtUtils::MakeMaker; require 5.006; WriteMakefile ( NAME => 'Geo::Proj4' , VERSION_FROM => 'lib/Geo/Proj4.pm' , AUTHOR => 'Mark Overmeer, Schuyler Erle, Rich Gibson' , ABSTRACT => 'Proj4 library for carthographic projections' , CCFLAGS => "-IC:\\Dev\\AUSPOS\\src\\libs\\proj-4.5.0\\src" , LIBS => [ "-lC:\\Dev\\AUSPOS\\src\\libs\\proj-4.5.0\\src\\proj" ] );
I am afraid that your message got stuck in my spam-filter. Anyway, now I found it, I can try to help you (although I never use Windows myself) c:\perl\lib\core\win32.h(326) : error C2143: syntax error : missing ')' before '*' c:\perl\lib\core\win32.h(326) : error C2081: 'Stat_t' : name in formal parameter list illegal I totally depend on Perl's mechanism to find the correct C-Compiler settings. Which also means that you have to compile Geo::Proj4 with the same compiler-set as what was used to compile Perl. Is that the case? For some reason, some header file did not get referred to. Search your system for the file which contains the definition for Stat_t. It is not used in my module.
From: jpalmer [...] linz.govt.nz
I'm using the Activestate 5.5.819 build of Perl, so I didn't compile Perl myself. However I believe that Activestate used MS visual c++ 6 suite. I was using visual c++ 8.0 so the toolset is the same; however the version is obviously not. I guess the headers must have changed. I've searched through all the headers that come with visual c++ 8.0 and I can't find the Stat_t definition. So I just tried a simple macro replacement of 'Stat_t' with 'int' and there seem to be other problems as well. I guess all the modules need to be compiled with vs 6.0 for the Activestate build, which I don't have :( Thanks for your help
Ticket closed: not a problem of this module.