Solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 9
# 1  
Old 03-26-2009
Solaris 9

Dear Experts,
i am very new to Sun Solaris, when i tried to compile some source file,
i see even though they are defined in the header files they were showing not defined because they were written
Quote:
if(__EXTENSIONS__)
or
if(__STDC__)
what do these extensions indicate how to to handle them

and also i saw one of the .exe when i tried to check its type it is showing

Quote:
user.exe: ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1 Extensions Required, dynamically linked, not stripped
what do these indicate please explain me as i searched in the net i did not get anything.
# 2  
Old 03-26-2009
How can you execute .exe file in a Sparc machine?Smilie
# 3  
Old 03-26-2009
Quote:
Originally Posted by incredible
How can you execute .exe file in a Sparc machine?Smilie
When it isn't an exe! I've seen file.bat scripts...

The output from the file(1) command pointed at a file is of course looking at the contents of the file not its name.
# 4  
Old 03-28-2009
It is in the script i am giving name like that , u can assume a .so which describes me like that

Code:
user.so: ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1 Extensions Required, dynamically linked, not stripped


please tell me in all most all header files i have seen
Code:
if(__EXTENSIONS__)
or 
if(__STDC__)

what do these indicates please explain these are i think some basics of sun solaris as i am new to it i am not getting please tell me what do __EXTENSIONS__ indicate.
# 5  
Old 03-28-2009
These macros are set depending on the source code standard conformance level requirements.

__STDC__ means strictly conformance to ISO C without K&R C compatibility extensions while __EXTENSIONS__ means various non conflicting extensions are allowed.
# 6  
Old 03-30-2009
Thanks for your reply,

if my code is in POSIX standards, then while compiling i am setting the
-D_POSIX_C_SOURCE=199506L , so what is the impact of this on those macros please if there is any documentation which describes in detailed about the macros of SUN please refer there __EXTENSIONS__ what do various extensions refer to.
# 7  
Old 03-30-2009
What C compiler are you using ?
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Patching Procedure in Solaris 10 with sun cluster having Solaris zone

Hi Gurus I am not able to find the patching procedure for solaris 10 ( sol10 u11) to latest patchset with sun cluster having failover zones so that same I should follow. Take an instance, there are sol1 and sol2 nodes and having two failover zones like sozone1-rg and sozone2-rg and currently... (1 Reply)
Discussion started by: nick101
1 Replies

2. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

3. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

4. Solaris

application compiled on solaris 10 throwing error when executed on solaris 9

I have compiled my application on Solaris 10 with following description SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320 The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 But when installing the application on Solaris 9 SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies
Login or Register to Ask a Question