[mapserver-users] Compiling PHP Mapscript on Cygwin.... grrrrrrr

C F gis_consultant at hotmail.com
Mon Jun 24 11:05:31 EDT 2002


Well I did finally have some success in compiling MS 3.6 with all the latest 
supporting libraries in Cygwin... and I did keep notes (part of the problem 
was the default version of 'make' installed with Cygwin).  If there is a 
demand, I'd be willing put together an updated step-by-step version of 
"Compiling Mapserver under Cygwin" like what's on the web site now.
HOWEVER, I never did get PHP Mapscript compiled in Cygwin and gave up 
trying.
Let me know.

>From: "Searle Ross" <Ross.Searle at nrm.qld.gov.au>
>To: "C F" <gis_consultant at hotmail.com>, <mapserver-users at lists.gis.umn.edu>
>Subject: RE: [mapserver-users] Compiling PHP Mapscript on Cygwin.... 
>grrrrrrr
>Date: Thu, 20 Jun 2002 09:54:51 +1000
>
>CF,
>
>I have also been trying to do the same with no luck. My problem lies in
>trying to compile php under cygwin so that mapscript can be compiled
>against it. After searching through the php archives it appears that
>there is little or no hope of achieving this.
>
>One solution that should work is if someone was able to provide a
>compiled windows binary with the configuration you specified ie
>--with-gd=../gd-1.8.4 --with-proj --with-postgis
>--with-php=/usr/src/php-4.2.0-1/main.
>
>Not sure how much hassle it would be to do this but if anyone had the
>capability/time to do it, it would be most welcomed.
>
>Regards
>Ross
>
>
>-----Original Message-----
>From: C F [mailto:gis_consultant at hotmail.com]
>Sent: Thursday, 20 June 2002 1:45 AM
>To: mapserver-users at lists.gis.umn.edu
>Subject: [mapserver-users] Compiling PHP Mapscript on Cygwin....
>grrrrrrr
>
>
>Hi gang...
>I've been successful in compiling and developing mapserver on Linux.
>Now
>I'd like to be able to do some development on my win2k laptop so I'm
>taking
>a shot at Cygwin.... well... I'm not proud to say that I've actually
>been
>trying for about a week now!  I'm ready to give up, but thought I'd take
>a
>shot in here first.
>After trying several times on my own with newer versions of supporting
>libraries I finally gave up (could not get GD 2 compiled) and used the
>Cygwin compilation instructions on the mapserver web site.  Using those
>instructions and those libraries, I've finally been able to get
>MapServer
>3.6 compiled *and* running on Cygwin (withouth TTF support, but I can
>deal
>with that).  However, when I run through the same configure/make routine
>
>with php-mapscript turned on, it bombs and I can't get seem to get past
>it.
>   The error occurs in the DLLWrap call because it's looking for a
>"export
>definition file", then it tries unsuccessfully to create one.  Here's
>what I
>do (I've also tried with MapSever 3.5... different error, but no
>success):
>
>1)
>./configure --with-gd=../gd-1.8.4 --with-proj --with-postgis
>--with-php=/usr/src/php-4.2.0-1/main
>
>Here's the relevant php output from the configure command:
>----------------------------------------------------------
>checking for location of config.h or php_config.h...
>/usr/src/php-4.2.0-1/main/php_config.h
>checking whether we have PHP3 or PHP4... -DPHP4
>checking whether we should use PHP's regex... no
>         PHP/MapScript module configured.
>updating cache ./config.cache
>creating ./config.status
>creating Makefile
>creating mapscript/php3/Makefile
>
>
>2)
>I edit the php3/makefile changing line:
>-from-
>CC =     gcc  gcc -I. -I..
>-to-
>CC =     gcc -I. -I..
>
>
>3)
>make
>... compiles for a while... then BOOM... this output:
>
>dllwrap --dllname php_mapscript.dll --driver-name gcc --dlltool dlltool
>--export-all-symbols --as as --output-def libphp_mapscript.def
>--output-lib
>libphp_mapscript.a \
>-s -L/usr/local/lib -s  php_mapscript_util.o php_mapscript.o
>mapscript_i.o
>-L/usr/src/projects/mapserver-3.6.0 -lmap -L/usr/lib -lpq -lproj -ltiff
>-ljpeg -L/lib -lpng -L/lib -lz
>-L/usr/src/projects/mapserver-3.6.0/../gd-1.8.4/.libs -lgd -ljpeg -L/lib
>
>-lpng -L/lib -lz -ljpeg -lm
>
>dllwrap: no export definition file provided
>
>dllwrap: creating one, but that may not be what you want
>
>php_mapscript_util.o(.text+0x41):php_mapscript_util.c: undefined
>reference
>to `zend_error'
>.
>.
>.
>... a whole bunch of these "undefined reference" errors
>.
>.
>.
>collect2: ld returned 1 exit status
>dllwrap: gcc exited with status 1
>perlld: *** system() failed to execute
>
>
>When it's done, mapscript/php3/libphp_mapscript.def is created but with
>no
>content.
>
>I'm using PHP 4.2... is that the problem?  I don't know.
>Any ideas?????   Thank you!
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
>************************************************************************
>The information in this e-mail together with any attachments is
>intended only for the person or entity to which it is addressed
>and may contain confidential and/or privileged material.
>
>Any form of review, disclosure, modification, distribution
>and/or publication of this e-mail message is prohibited.
>
>If you have received this message in error, you are asked to
>inform the sender as quickly as possible and delete this message
>and any copies of this message from your computer and/or your
>computer system network.
>************************************************************************




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the mapserver-users mailing list