Page 1 of 1
Celestia on OpenSolaris?
Posted: 28.10.2009, 22:58
by shmerl
Did anyone successfully compile/run Celestia on OpenSolaris?
Thanks.
Re: Celestia on OpenSolaris?
Posted: 30.10.2009, 06:34
by John Van Vliet
--- edit ---
Re: Celestia on OpenSolaris?
Posted: 30.10.2009, 16:47
by shmerl
OpenSolaris build needs some extra tweaking, since it's not Linux
Re: Celestia on OpenSolaris?
Posted: 24.12.2009, 00:57
by shmerl
Moinak Ghosh submitted a patch for OpenSolaris compatibility:
http://sourceforge.net/tracker/?func=de ... tid=371302Can anyone please commit it into the source of Celestia?
(The solution for sun variable name collision is really partial, i.e. renaming sun to Sun etc. Cleaner solution would be to wrap all Celestia into its own namespace. I wonder why it wasn't done before).
Re: Celestia on OpenSolaris?
Posted: 24.12.2009, 19:32
by chris
shmerl wrote:Moinak Ghosh submitted a patch for OpenSolaris compatibility:
http://sourceforge.net/tracker/?func=de ... tid=371302Can anyone please commit it into the source of Celestia?
(The solution for sun variable name collision is really partial, i.e. renaming sun to Sun etc. Cleaner solution would be to wrap all Celestia into its own namespace. I wonder why it wasn't done before).
This isn't a problem with Celestia: the C++ header files on OpenSolaris are broken if they're defining 'sun'. Any idea where this is getting declared?
--Chris
Re: Celestia on OpenSolaris?
Posted: 29.12.2009, 21:39
by shmerl
This is not a header #define, but a predefined macro in gcc and Sun cc compiler on OpenSolaris. You can see its usage for example in Xorg code in xf86_OSlib.h (on OpenSolaris in /usr/include/xorg/xf86_OSlib.h)
Code: Select all
#if (defined(SYSV) || defined(SVR4)) && \
(defined(sun) || defined(__i386__))
See for example
http://blogs.sun.com/morganh/date/20060928 for some details.
Therefore it clashes with definition of sun variables. (This probably can be remedied with Celestia namepace usage as a good solution for all possible similar cases).
Re: Celestia on OpenSolaris?
Posted: 15.02.2010, 17:31
by shmerl
So, can anyone with write access please commit these patches?
Thanks.