From: Arnout E. <no...@bz...> - 2011-09-30 19:24:14
|
On Fri, Sep 30, 2011 at 02:31:39PM -0400, Josef 'Jeff' Sipek wrote: > I'm trying this snapshot on open indiana. > > I changed the system.mk in the top-level dir according to: > http://sourceforge.net/apps/mediawiki/notion/index.php?title=Solaris > > Then, gmake: > > gmake[1]: Entering directory `/code/oi-build/components/notion/notion/libtu' > gcc -Os -W -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wparentheses -pedantic -Wuninitialized -DCF_XFREE86_TEXTPROP_BUG_WORKAROUND -g -D_POSIX_C_SOURCE=200112L -W -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wparentheses -pedantic -Wuninitialized -c iterable.c -o iterable.o > In file included from /usr/include/sys/types.h:33, > from types.h:13, > from iterable.h:13, > from iterable.c:10: > /usr/include/sys/feature_tests.h:357:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" > gmake[1]: *** [iterable.o] Error 1 > gmake[1]: Leaving directory `/code/oi-build/components/notion/notion/libtu' OK > $ gcc -v > Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs > Configured with: > /home/aszeszo/oi151/sfw/sfwnv.hg/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared > Thread model: posix > gcc version 3.4.3 (csl-sol210-3_4-20050802) > > > Yes, I know that that's a fairly old gcc. We're working on getting 4.6 as > the primary compiler. I tried with Sun's/Oracle's compiler (I had to remove > all the -W warning flags because it doesn't understand them), but it died > with the same error. I could make a guess at the solution (adding 'CFLAGS += $(XOPEN_SOURCE) $(C99_SOURCE)' to the libtu Makefile might help). I don't currently have set up a Solaris/OI machine so I can't really test. > Now a "feature" request. It'd be cool if notion-XYZ.tar.bz2 created a dir > called "notion-XYZ" instead of "notion". Not a biggie, but it makes it > easier to script & test with different versions. Good one, done! Arnout |