Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdImagePaletteCopy() requires GD1.5 or more recent #39

Closed
mapserver-bot opened this issue Apr 3, 2012 · 2 comments
Closed

gdImagePaletteCopy() requires GD1.5 or more recent #39

mapserver-bot opened this issue Apr 3, 2012 · 2 comments
Assignees

Comments

@mapserver-bot
Copy link

Reporter: dmorissette
Date: 2001/08/23 - 17:56
Trac URL: http://trac.osgeo.org/mapserver/ticket/39

Date: 
        Thu, 23 Aug 2001 12:32:26 +1000 (EST)
   From: 
        Marcus Dillury <md@socialchange.net>
     To: 
        <mapserver-users@lists.gis.umn.edu>

I am trying to compile a 3.5 build of mapserver on a Redhat 7 Linux box.
I am using the following options with the configuration script.

./configure --with-proj=/usr/local --with-gdal --with-gd=/usr/local/lib/gd-1.2 
--with-freetype=/usr/lib

proj-4.4.3
gdal-1.1.5
gd-1.2
freetype-1.3.1-7


The Makefile builds without complaint.
When I run 'make' I get the following problem


gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WMS  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF
-DUSE_GD_SWAP_XY   -DUSE_GDAL   -I/usr/local/lib/gd-1.2
-I/usr/local/include        -I/usr/local/include   shp2img.o  -L. -lmap
-L/usr/local/lib/gd-1.2 -lgd -ljpeg -L/usr/lib -lttf -lpng -lz -ltiff
-ljpeg -L/usr/lib -lttf -lpng -lz -L/usr/local/lib -lproj -ljpeg
-L/usr/local/lib -lgdal.1.1    -lm   -o shp2img
./libmap.a(mapresample.o): In function `msResampleGDALToMap':
mapresample.o(.text+0xe8e): undefined reference to `gdImagePaletteCopy'
mapresample.o(.text+0xec4): undefined reference to `gdImagePaletteCopy'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
@mapserver-bot
Copy link
Author

Author: dmorissette
Date: 2001/08/23 - 18:02

gdImagePaletteCopy() requires GD1.5 or more recent, and even if GD1.2 is 
not supported any more by MapServer, GD1.3 is still quite common.  We should 
either:

1- Test for this in configure and give an error telling the user that GD1.5 or 
more recent is required when building --with-gdal

2- Provide our own version of gdImagePaletteCopy() in mapresample.c if GD is too 
old.

@mapserver-bot
Copy link
Author

Author: fwarmerdam
Date: 2002/12/21 - 23:08

mapresample.c no longer uses gdImagePaletteCopy() though I am not sure it
is GD-1.3 safe.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants