[Mapserver-users] Mapserver 3.6.3 - Compile errors

Jose Mendez jmendez at captiveweb.net
Tue Feb 11 16:35:38 EST 2003


Daniel, thanks for the reply, I was able to get that
header file error fixed. I actually had to download
the PROJ4 source and compile it because I had an old
version of it.  I also ended up compiling libJPEG
because it was also giving me errors. So after having
done that I am still getting errors and Mapserver
won't compile. Here's the error that I get. Anybody
have any ideas what could be the problem? thanks.

gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL
-DUSE_PROJ -DUSE_PROJ_API_H    -DUSE_JPEG
-DUSE_GD_PNG\
 -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    
-DUSE_POSTGIS   -I/usr/include  -I/usr/local/include  
   \
   -I/usr/local/pgsql/include   shp2img.o  -L. -lmap
-lgd -L/usr/lib -lgd -ljpeg -L/usr/lib/ -lfreetype\
  -lz  -ljpeg -L/usr/lib/ -lfreetype  -lz
-L/usr/local/lib -lproj -ljpeg    
-L/usr/local/pgsql/lib -lp\
q     -lm   -o shp2img
./libmap.a(mapogr.o)(.eh_frame+0x11): undefined
reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1




--- Daniel Morissette <morissette at dmsolutions.ca>
wrote:
> Jose Mendez wrote:
> > 
> > SO EVERYTHING SEEMS FINE BUT WHEN I RUN 'make' IT
> > STOPS ON AN ERROR:
> > 
> > >> make
> > 
> > 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     -DUSE_POSTGIS
> > -I/usr/include          
> -I/usr/local/pgsql/include
> > maptemplate.c -o ma\
> > ptemplate.o
> > cc1: warning: changing search order for system
> > directory "/usr/include"
> > cc1: warning:   as it has already been specified
> as a
> > non-system directory
> > In file included from map.h:32,
> >                  from maptemplate.h:8,
> >                  from maptemplate.c:3:
> > mapproject.h:13:26: proj_api.h: No such file or
> > directory
> 
> Seems that the compiler can't find proj_api.h.  Try
> adding 
> --with-proj=/usr/local to your configure options,
> this will force adding
> -I/usr/local/include to your compile flags and
> should make the compiler
> happy. (This is assuming that you installed PROJ in
> the default
> /usr/local/... path of course.) 
> 
> Daniel
> -- 
>
------------------------------------------------------------
>  Daniel Morissette              
> morissette at dmsolutions.ca
>  DM Solutions Group             
> http://www.dmsolutions.ca/
>
------------------------------------------------------------


=====
-Jose Mendez

c/vm: 323.719.0526
email: jmendez at captiveweb.net

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



More information about the mapserver-users mailing list