[mapserver-users] error building mapserver 3.6.3 on OS X 10.2

Puneet Kishor pkishor at GeoAnalytics.com
Thu Oct 10 12:06:49 EDT 2002


Hmmm... now that the compile worked, I get the following in my Apache 
error log --

dyld: perl Undefined symbols:
_gdFontGiant
_gdFontLarge
_gdFontMediumBold
_gdFontSmall
_gdFontTiny
_gdImageArc
_gdImageColorAllocate
_gdImageColorTransparent
_gdImageCopy
_gdImageCopyMerge
_gdImageCopyResized
_gdImageCreate
_gdImageCreateFromJpeg
_gdImageCreateFromPng
_gdImageDestroy
_gdImageFillToBorder
_gdImageFilledPolygon
_gdImageFilledRectangle
_gdImageInterlace
_gdImageJpeg
_gdImageJpegPtr
_gdImageLine
_gdImagePng
_gdImagePngPtr
_gdImagePolygon
_gdImageRectangle
_gdImageSetBrush
_gdImageSetPixel
_gdImageSetStyle
_gdImageSetTile
_gdImageString
_gdImageStringFT
_gdImageWBMP
_gdImageWBMPPtr
[Thu Oct 10 11:00:46 2002] [error] [client 127.0.0.1] Premature end of 
script headers: /Users/pkishor/Sites/bims/index.pl

Have you noticed this as well? (assuming you are running OS X 10.2). 
Btw, do you recommend using gcc 2.x for building perl mapscript as 
well, or that doesn't matter? I reverted back to gcc 3.1 and then built 
perl mapscript. Worked fine, really quick, no errors. But, now the 
above in my error_log.

I am using perl 5.6.0, stock Apple perl that came with the OS.

Tia,

PUneet.



On Thursday, October 10, 2002, at 09:45  AM, Zak James wrote:

> With OS X 10.2, the default compiler is now gcc 3.1 which has some 
> trouble with mapserver. The easiest way to get around the problem is 
> to use the built in gcc_select script. As root, gcc_select 2 will 
> switch to the old compiler, which is still available. You can switch 
> back by issuing gcc_select 3.
>
> zj
>
> On Thursday, Oct 10, 2002, at 00:46 America/Montreal, Puneet Kishor 
> wrote:
>
>> while make-ing, the program ends with the following --
>>
>>
>>
>> ranlib libmap.a
>> ranlib: file: libmap.a(mapthread.o) has no symbols
>> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
>> -DUSE_PROJ_API_H -DUSE_WMS    -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG 
>> -DUSE_GD_WBMP -DUSE_GD_FT        -I/usr/local/include              
>> shp2img.c -o shp2img.o
>> gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
>> -DUSE_PROJ_API_H -DUSE_WMS    -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG 
>> -DUSE_GD_WBMP -DUSE_GD_FT        -I/usr/local/include              
>> shp2img.o  -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg  
>> -L/usr/local/lib -lpng -lz  -ljpeg  -L/usr/local/lib -lpng -lz -lproj 
>> -ljpeg          -lm   -o shp2img
>> ld: Undefined symbols:
>> ___gxx_personality_v0
>> make: *** [shp2img] Error 1




More information about the mapserver-users mailing list