Compiling mapscript-csharp on Linux

Mike Leahy mgleahy at GOLDEN.NET
Sun Nov 5 01:35:29 EST 2006


Hello list,

I just finished compiling MapServer on FC6, and I was wondering about 
some errors I had when I compiled the C# mapscript library.  There is a 
line related to the MySQL support in the csharp Makefile that looks like so:

MYGIS_INC=  -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-fno-strict-aliasing -fwrapv

If I leave it as-is, I get the following errors when I attempt to 
compile the module with make:

swig error : Unrecognized option -g
swig error : Unrecognized option -pipe
swig error : Unrecognized option -Wp,-D_FORTIFY_SOURCE=2
swig error : Unrecognized option -fexceptions
swig error : Unrecognized option -fstack-protector
swig error : Unrecognized option --param=ssp-buffer-size=4
swig error : Unrecognized option -m64
swig error : Unrecognized option -mtune=generic
swig error : Unrecognized option -fno-strict-aliasing
swig error : Unrecognized option -fwrapv
Use 'swig -help' for available options.
make: *** [interface] Error 1

So...I removed everthing on that line starting with '-g', and it 
compiled fine.  My question is whether this is something that I'm likely 
to run into trouble with later on - I don't generally use MySQL, so my 
guess is no.  If anyone has any insight related to this, I'd be 
interested to hear it.

Thanks,
Mike



More information about the mapserver-users mailing list