Celestia on OpenSolaris?

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
shmerl
Posts: 5
Joined: 28.10.2009
With us: 11 years

Celestia on OpenSolaris?

Post #1by shmerl » 28.10.2009, 22:58

Did anyone successfully compile/run Celestia on OpenSolaris?

Thanks.

Avatar
John Van Vliet
Posts: 2749
Joined: 28.08.2002
With us: 18 years 2 months

Re: Celestia on OpenSolaris?

Post #2by John Van Vliet » 30.10.2009, 06:34

--- edit ---
Last edited by John Van Vliet on 20.10.2013, 08:45, edited 1 time in total.

Topic author
shmerl
Posts: 5
Joined: 28.10.2009
With us: 11 years

Re: Celestia on OpenSolaris?

Post #3by shmerl » 30.10.2009, 16:47

OpenSolaris build needs some extra tweaking, since it's not Linux :)

Topic author
shmerl
Posts: 5
Joined: 28.10.2009
With us: 11 years

Re: Celestia on OpenSolaris?

Post #4by shmerl » 24.12.2009, 00:57

Moinak Ghosh submitted a patch for OpenSolaris compatibility: http://sourceforge.net/tracker/?func=de ... tid=371302
Can 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).

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 18 years 9 months
Location: Seattle, Washington, USA

Re: Celestia on OpenSolaris?

Post #5by chris » 24.12.2009, 19:32

shmerl wrote:Moinak Ghosh submitted a patch for OpenSolaris compatibility: http://sourceforge.net/tracker/?func=de ... tid=371302
Can 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

Topic author
shmerl
Posts: 5
Joined: 28.10.2009
With us: 11 years

Re: Celestia on OpenSolaris?

Post #6by shmerl » 29.12.2009, 21:39

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).

Topic author
shmerl
Posts: 5
Joined: 28.10.2009
With us: 11 years

Re: Celestia on OpenSolaris?

Post #7by shmerl » 15.02.2010, 17:31

So, can anyone with write access please commit these patches?

Thanks.


Return to “Development”

Who is online