make: *** [shp2img] Error 1

Frank Warmerdam warmerdam at POBOX.COM
Wed Nov 30 12:47:26 EST 2005


On 11/30/05, Matthew Roberson <adidassneakers at yahoo.com> wrote:
> I posted this earlier this morning, however I left off
> my config statement, so I am reposting with the config
> statement
>
> I am trying to compile MapServer 4.6.1 in OS X 10.4.2
> using gcc 4, however I am receiving an error and I am
> hoping that someone may be able to offer some advice
> on how to resolve this error.
...
> -lcrypto -lz  -L/usr/local/lib -lgeos   -liconv  -lz
> -lm -lstdc++  -o shp2img
> /usr/bin/ld: warning -L: directory name
> (/usr/local/lib64) does not exist
> /usr/bin/ld: Undefined symbols:
> __Unwind_Resume
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1

Matt,

I don't really know what is going wrong for you, but
__Unwind_Resume is related to C++ exception handling
stuff.  I see you have -lstdc++ listed in your link which I
would have expected to satisfy the unwinding stuff. But
you might want to change to use g++ instead gcc for linking.

I think there is an LD= line in Makefile, try making that:

LD=g++

It also seems possible that you are linking against some C++
component library built with a substantially different version of
g++.  Are you libraries locally built, or installed from binary
packages?

Good luck,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list