Author Topic: Solaris 10 Build  (Read 7807 times)

0 Members and 1 Guest are viewing this topic.

Offline rsaxvc

  • 27
    • rsaxvc
So one time, I bought this sweet Sun Workstation on craigslist, Opteron64 and Quadro and everything...

So far, autogen.sh needs to be edited to allow autotools version 1.10 to work, bug filed on mantis.

conftest.c comes out empty when testing for SDL, leading to a linker error for missing main.

Anyone familiar with our build system / autotools have an idea?
« Last Edit: October 02, 2010, 11:06:21 am by rsaxvc »

 
Re: Solaris 10 Build Issues
FSO probably doesn't really support Solaris - but I honestly can't remember what flavour of Unix it is!
STRONGTEA. Why can't the x86 be sane?

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
I understand that it doesn't support Solaris, but I would like to fix that - that's why I created this thread.

Solaris is based on System 5 Rel 4.

 

Offline Topgun

  • 210
Re: Solaris 10 Build Issues
who actually uses solaris for games?

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Solaris 10 Build Issues
It can run Doom, or Quake or something, I think.  Maybe BZFlag :P
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
Ahem. Solaris was one of the first unix platforms for opengl, right after SGI, and I think around the same time as HP.

Specifically, my box has 4 pci-e x16 slots, so I could SLI whatever I wanted to, but one Quadro should be enough for fs2_open.

 

Offline Topgun

  • 210
Re: Solaris 10 Build Issues
isn't solaris made for SPARC systems? would you need to compile for SPARC?
BTW you can get linux for SPARC.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Solaris 10 Build Issues
Solaris is just a *NIX distribution, in the same way that Ubuntu is just a Linux distribution. While it still maintains compatibility for SPARC, it also runs on x86 and x64 architectures. I am assuming that rsaxvc is running Solaris on a more or less standard x86/x64 box.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Solaris 10 Build Issues
Solaris was originally for Sparc but now there's Solaris x86 and even OpenSolaris x86.  It's also not 'just UNIX'.  Solaris is a completely different OS, as much as Linux or OS X are.  Maybe even moreso than OS X.

He even did mention that it's running an Opteron64 so you even know exactly what type of CPU is in the box :doubt:

I have a feeling there's stuff going to be in the way with this but I'd love to be proven wrong.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Topgun

  • 210
Re: Solaris 10 Build Issues
He even did mention that it's running an Opteron64 so you even know exactly what type of CPU is in the box :doubt:

oh, yeah...

I focused on "sun workstation" and thought sparc.

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
Ahem. Sun boxes were originally Motorola 68k based. Then came Sun 386i. Then came Sparc, which they still produce. There has been a big movement toward x64 though.

I don't know if I'd agree with equating a 'Unix Distribution' with a 'Linux Distribution'. All linux distributions are a lot more similar to each other than man unix distros. At least linux distros all have a related kernel.

The box is surprisingly standard though. Normal bios even, none of that openprom terminal. Powersupply and sata connectors are weird though. Sata connector has 4 channels on it, and a hot-swap backplane attached to it.

Also, I got some code to compile today. Pretty sweet! However, I don't have root right now, nor do I have openAL, which I pretty much need root to install.
« Last Edit: March 01, 2010, 10:36:52 pm by rsaxvc »

 

Offline Topgun

  • 210
Re: Solaris 10 Build Issues
I post then read, its bad habit of mine.

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
is there a minimum version of gcc for fs2_open?

solaris comes with 3.4.3 by default :(

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Solaris 10 Build Issues
I'm sure it used to compile with 3.4.3, but something may have broken it since.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
The problem I was having was caused by some inline mac assembly that leaked in.

I upgraded to gcc 4.? before I figured it out.

Also, it compiles!
Also, it links!

After getting Solaris to accept the homemade libraries, it crashes gdb :(

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Solaris 10 Build Issues
Don't run it through gdb?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
It segfaults.

The biggest problems in compilation were assumptions about includes (if A includes B, I don't need to include B) that aren't true outside of linux and starfield code which has a bunch of variables named 'sun', which is defined to 1 on Solaris.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Solaris 10 Build Issues
Haha system reserved names.  That's awesome.

So I suppose the better way to do the includes is explicitly check if the header is defined, just to make sure it gets in one way or the other, or include it anyway and let the other header sort that out.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
Or, for every define we use, just make sure to include the header, and the macroguards should figure everything else out.

FIONBIO (filio.h) was the only one I had trouble with.

 

Offline rsaxvc

  • 27
    • rsaxvc
Re: Solaris 10 Build Issues
Here's instructions to get solaris to compile/link.

http://rsaxvc.net/blog/doku.php?id=building_fs2_on_solaris

Remember kids, only you can prevent threadomancy.