[mapserver-users] compile error
Daniel Morissette
morissette at dmsolutions.ca
Mon Jul 29 18:57:59 PDT 2002
I ran into this as well on a Solaris/GCC 3.1 system a little while ago
but don't remember if I found a solution. For sure the problem seemed
related to gcc version 3.1 (gcc 2.9x used to work fine on the same
machine) and the way it deals with C++ files (mapogr.cpp in this case).
If any gcc expert out there knows what gcc 3.1 is missing to be happy in
the MapServer build process and knows a solution then please let me know
as I would be interested in fixing this but don't really have time to
investigate myself.
Thanks,
Daniel
jabbott at abbotts.org wrote:
>
> Hello all,
>
> I am setting up mapserver on a solaris 8 box. I am getting a compile error.
>
> cc1: warning: changing search order for system directory "/usr/local/include"
> cc1: warning: as it has already been specified as a non-system directory
> gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_GD_PNG -DUSE_GD_WBMP -I/usr/local/include -I/usr/src/proj-4.4.5/src shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd -lfreetype -lpng -L/lib -lz -lfreetype -lpng -L/lib -lz -L/usr/src/proj-4.4.5/src/.libs -lproj -lm -o shp2img
> Undefined first referenced
> symbol in file
> __gxx_personality_v0 ./libmap.a(mapogr.o)
> ld: fatal: Symbol referencing errors. No output written to shp2img
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
> # gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
> Thread model: posix
> gcc version 3.1
> #
>
> I got freetype2 to install as well as zlib, libping and the jpg libraries but I had to install gd as a package.
>
> --ja
> --
More information about the MapServer-users
mailing list