[Mapserver-users] 4.0 mapscript on freebsd 4.4
Benjamin Thelen (CCGIS)
thelen@ccgis.de
Fri, 5 Sep 2003 23:59:25 +0200 (CEST)
Hi Joe,
Well, I did not see any mail. Perhaps I overlooked it.
It was no problem, I just used gmake. I did not test mapscript yet, but
the compiling process went through. Interesting, it is the same with
postgis, doesn't compile with make, just gmake! On debian, Red Hat Linux,
'make' makes it.
Thanks very much for your mail!!
Regards,
Benjamin
> I should have posted that I found the problem, sorry bout that. R.
> Piepul's
> suggestion to use gmake was correct. I guess FreeBSD doesn't come with
> gmake, so you need to download GNU make, configure and compile it. What
> got
> me is that it wasn't the default make: you have to use
> '/usr/local/bin/make'
> instead of 'make' (at least, that's how I did it). Good luck.
>
> Joe
>
> -----Original Message-----
> From: mapserver-users-admin@lists.gis.umn.edu
> [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Benjamin
> Thelen (CCGIS)
> Sent: Monday, September 01, 2003 3:15 PM
> To: mapserver-users@lists.gis.umn.edu
> Subject: Re: [Mapserver-users] 4.0 mapscript on freebsd 4.4
>
>
> -------- Received an error from umn-mapserver mailman-2.0.13 ----
> -------- This mail could not be delivered! -------------
>
> -------- 2nd attempt -----------
>
>
> Hi Joe,
>
> I exactly have the same error code on FreeBSD 4.7 and FreeBSD 4.8!
> As you wrote with mapscript 3.6.5 and 3.6.5 it was possible to compile
> after a few changes within mapscript Makefile:
>
> Change:
> CC= cc to CC= gcc
> LD= cc -Wl -Wl, to LD= gcc -Wl -Wl,-share
> and
> -I$(PHP_SRC_DIR)/dl to -I$(PHP_SRC_DIR)/ext
>
> This does not work anymore!!
>
> Here is some mapserver related software listed, I've installed!
> GD 2.0.15
> php 4.3.3
> gdal 1.1.8
> pg-sql 7.3.2
> curl 7.10.5
> proj 4.4.5
> gcc-3.2.3
> gmake 3.80
>
> Sorry, I have no idea what to do, either! :-(
>
> What I found out is, that in php_mapscript_util.h are two lines #Include
> "php.h" and #Include "php_globals.h". Both files are definitely within the
> source tree of php, given within the mapserver configure option
> --with-php=PATH-TO-SOURCE-TREE. What I really do not understand is, why
> the file maperror.h cannot be found. It is within the source tree of
> mapserver 4.0 I'm actually building?! Additionally I do not understand the
> last line of the error code, as there is no #Include "maperror.h" within
> php_mapscript_util.h. I found that in php_mapscript_util.c on line 101.
> Perhaps the code is making use of a variable or something like that, which
> isn't provide on FreeBSD?
>
> Well, I don't know how all that works!
>
> Regards,
> Benjamin
>
>> Has anyone tried to compile mapserver 4.0 with mapscript on freebsd yet?
>> I'm trying on freebsd 4.4, but the php mapscript Makefile seems to be
>> erroring during compile - much like the old version of mapserver did.
>> Except this time the Makefile is different, and the old fixes that
>> worked
>> in
>> 3.6 don't work in 4.0.
>>
>> Here's the error code:
>>
>> gcc -fPIC -02 -Wall -DCOMPILE_DL=1 -DPHP4 -c php_mapscript_util.c
>> In file included from php_mapscript_util.c:101:
>> php_mapscript_util.h:58: php.h: No such file or directory
>> php_mapscript_util.h:59: php_globals.h: No such file or directory
>> php_mapscript_util.h:102: maperror.h: No such file or directory
>> *** Error code 1
>>
>> Stop in /usr/home/joe/mapserver40/mapscript/php3.
>> *** Error code 1
>>
>> Here's part of the Makefile (where the error might be):
>>
>> CC = gcc -fPIC
>> LD = c++ -shared
>> CFLAGS = -02 -Wall -DCOMPILE_DL=1 -DPHP4
>> RUNPATHS=
>>
>> What do I need to change?
>>
>> Joe
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users@lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users