From: Josef 'J. S. <je...@jo...> - 2011-09-30 19:40:57
|
On Fri, Sep 30, 2011 at 09:24:02PM +0200, Arnout Engelen wrote: > 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). That helped a bunch. Now it blows up on Xinerama related symbols being undefined (during a linking). It' probably because I don't have much X11 related files installed. I'll try to install those and see if it gets further. Using Sun Studio, I still get the "must use c99" error. It appears to have a different way of specifying the standard. At the moment, I want to get it going with gcc first. Then, if I feel adventurous enough, I'll look at Studio again. Out of curiosity, have you considered using a more automatic way of configuring the build? (Something like autotools (ew) or cmake.) > I don't currently have set up a Solaris/OI machine so I can't really test. No worries. I intend to get notion to compile on it, and use it on several of my computers. That should test it enough ;) Thanks for all the help. Jeff. -- Defenestration n. (formal or joc.): The act of removing Windows from your computer in disgust, usually followed by the installation of Linux or some other Unix-like operating system. |