Posted: Fri Apr 14, 2006 12:14 am Post subject: Use of Apple specific compiler option
In attempting to build the HEAD of NeoOffice with GCC 4.1 (FSF/non-Apple line). I got the following error (I realize it wouldn't have occurred with the Apple GCC 4.0) below. The question isn't why I got the error but why is any thing using "pascal-strings"? They were originally for using with Mac OS before OS X and I'm certain that its not portable to GNUStep and probably not supported by Intel's compiler for the Mactels.
--------------------------------------------------------------------------
Making all in GSM610
if /bin/sh ../../libtool --mode=compile /opt/local/bin/gcc-4.1 -DHAVE_CONFIG_H -I. -I. -I../../src -malign-natural -O2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite-strings -pipe -fpascal-strings -I/Developer/Headers/FlatCarbon -MT add.lo -MD -MP -MF ".deps/add.Tpo" \
-c -o add.lo `test -f 'add.c' || echo './'`add.c; \
then mv -f ".deps/add.Tpo" ".deps/add.Plo"; \
else rm -f ".deps/add.Tpo"; exit 1; \
fi
/opt/local/bin/gcc-4.1 -DHAVE_CONFIG_H -I. -I. -I../../src -malign-natural -O2 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wcast-align -Wcast-qual -Wnested-externs -Wbad-function-cast -Wwrite-strings -pipe -fpascal-strings -I/Developer/Headers/FlatCarbon -MT add.lo -MD -MP -MF .deps/add.Tpo -c add.c -fno-common -DPIC -o .libs/add.o
cc1: error: unrecognized command line option "-fpascal-strings"
make[4]: *** [add.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
Well, if you actually looked at the code that is being compiled, you would realize that:
1. You are compiling the OpenOffice.org code
True.
pluby wrote:
2. The specific files that you are compiling are a third-party piece of code called libsndfile that is written by Sun Microsystems.
So, feel free to patch it and send your patch to OpenOffice.org.
Actually, a good look through the IZ is in order first as there may be an Issue open for this with a patch. If not, a new issue should be opened and the patch added there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum