From: Arnout E. <no...@bz...> - 2011-09-30 21:15:30
|
On Fri, Sep 30, 2011 at 03:38:36PM -0400, Josef 'Jeff' Sipek wrote: > > > /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" > > > > I could make a guess at the solution (adding 'CFLAGS += $(XOPEN_SOURCE) > > $(C99_SOURCE)' to the libtu Makefile might help). > > That helped a bunch. Cool. > 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. During linking but not during compilation? That's odd. Anyway if you can do without xinerama you can remove it from modulelist.mk . > 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. Makes sense. > Out of curiosity, have you considered using a more automatic way of > configuring the build? (Something like autotools (ew) or cmake.) Ah, yes. I'm not *that* thrilled by the current constellation of different makefiles including each other and autodetecting stuff. Notably, the dependencies between source files aren't tracked reliably (I believe it sometimes fails to recognise it needs to recompile .c's when an included .h is updated. In the end, though, autotools/cmake and friends all have their own set of drawbacks and the current system does work, so for now I'm happy focussing on the application itself rather than the build system. > > 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. No problem! Kind regards, Arnout |