Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

No C99 On Solaris 10

807578Aug 27 2009 — edited Sep 3 2009
Hello. I just performed a clean install of Solaris 10 and Sun Studio 12. Despite this, I cannot compile C99 code. If I try to use c99, I get a message similar to, "c99 utility unavailable SunOS 5.10". Using cc-5.0 with various -xc99 flags, I get an error saying, "c99 is not available SunOS 5.10".

Why will it not work? I included the SunOS Header Files package in the Solaris installation. I can even see them in my /usr/include directory. Yet, I cannot compile with C99 enabled. If I use the -xc99 flag, it has to be set to no_lib. And then, I still cannot compile C99 code.

What am I missing? What do I need to do to get C99 functionality?

Comments

807557
Moin!

I did also download the most recent (DVD) ISO did a setup_install_server
and didn't have that problem. I did however skip the burn step and instead
mounted the ISO directly via loopback devices:

# lofiadm -a /jumpstart/OS/isos/sol-10-u2-ga-sparc-dvd.iso
/dev/lofi/7
# mount -F hsfs -o ro /dev/lofi/7 /mnt/10u2

When looking at the files system of this mount the Boot directory is not
linked and as said the setup_install_server worked fine.

Hope this helps
-Ralf
user4994457
Correct. The CD is a bit low on space, so the boot files are only present in a SPARC UFS filesystem (necessary so the CD is bootable). The x86 box won't read that filesystem (either from CD or from an image).

You'd need to either build at least one SPARC machine, mount the CD there, then copy the files over to the x86 box.

Or as mentioned, use the DVD image. The space there allows the boot code to be duplicated in two places so the x86 box can read it.

--
Darren
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 1 2009
Added on Aug 27 2009
13 comments
467 views