CFLAFS and CC

Frank Warmerdam warmerdam at POBOX.COM
Fri Apr 28 12:50:51 EDT 2006


Bessiere Julien wrote:
> Hi, 
>         i'm trying to install shapelib in the process to install
>         MapServer
>         but...
>         I have this message:
>         
>         [root at localhost shapelib-1.2.10]# make
>         cc -g -c shpopen.c
>         cc -g shpcreate.c shpopen.o  -o shpcreate
>         shpcreate.c: In function ‘main’:
>         shpcreate.c:68: attention : incompatible implicit declaration of
>         built-in function ‘exit’
>         shpcreate.c:85: attention : incompatible implicit declaration of
>         built-in function ‘exit’
>         shpcreate.c:96: attention : incompatible implicit declaration of
>         built-in function ‘exit’
>         cc -g shpadd.c shpopen.o  -o shpadd
>         cc -g shpdump.c shpopen.o  -o shpdump
>         shpdump.c: In function ‘main’:
>         shpdump.c:93: attention : incompatible implicit declaration of
>         built-in
>         function ‘exit’
>         shpdump.c:104: attention : incompatible implicit declaration of
>         built-in
>         function ‘exit’
>         shpdump.c:198: attention : incompatible implicit declaration of
>         built-in
>         function ‘exit’
>         cc -g shprewind.c shpopen.o  -o shprewind
>         shprewind.c: In function ‘main’:
>         shprewind.c:61: attention : incompatible implicit declaration of
>         built-in function ‘exit’
>         shprewind.c:72: attention : incompatible implicit declaration of
>         built-in function ‘exit’
>         shprewind.c:85: attention : incompatible implicit declaration of
>         built-in function ‘exit’
>         shprewind.c:108: attention : incompatible implicit declaration
>         of
>         built-in function ‘exit’
>         cc -g -c dbfopen.c
>         cc -g dbfcreate.c dbfopen.o  -o dbfcreate
>         cc -g dbfadd.c dbfopen.o  -o dbfadd
>         cc -g dbfdump.c dbfopen.o  -o dbfdump
>         cc -g shptest.c shpopen.o  -o shptest
>         
>         As said in the INSTALL file, i have to set CFLAGS and CC.
>         But i don't know what to write.
>         For the moment it's : CFLAGS  =       -g
>         I'm on fedora core 5.

Julien,

First, shapelib is not used by MapServer. MapServer has a morphed
version of the shapelib code included internally.  So perhaps you don't
need shapelib.

Second, it seems all the "Attemption" messages are advisory.  Certainly
it looks like stuff such as shptest linked successfully.

CFLAGS=-g should be fine unless you need optimization in which case
you could use CFLAGS=-O2

Best regards,
-- 
---------------------------------------+--------------------------------------
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    | President OSGF, http://osgeo.org



More information about the mapserver-users mailing list