Solaris 64bit and Y2038 bug


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 64bit and Y2038 bug
# 1  
Old 09-10-2010
Solaris 64bit and Y2038 bug

Hi all,

I'm runing a 64bit Solaris 9 system that supposedly isn't affected by the y2038 bug. If so, why can't I set de that from that point in time forward?

Code:
root@machine>uname -a
SunOS machine 5.9 Generic_118558-36 sun4u sparc SUNW,Sun-Fire-V440
root@machine>isainfo -b
64
root@machine>mktime -y +27
2037-09-10 16:18:18
root@machine>mktime -y +28
mktime: invalid time

Thanks in advance
BR
AJ

Last edited by Scott; 09-10-2010 at 01:21 PM.. Reason: Please use code tags
# 2  
Old 09-10-2010
AFAIK the mktime utility is not part of the standard distribution for Solaris 9, it is part of a package. 32 bit apps run just fine on 64bit machines, however.

Try:
Code:
file `which mktime`

to see if the utility isn't 32 bit. I would guess it is.
# 3  
Old 09-10-2010
Hi,

Yes, I it's a 32bit binary.

But look:

Code:
root@machine>date 091016182039
date: Invalid argument
root@done>file /usr/bin/date
/usr/bin/date:  ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped
root@done>file /bin/ls
/bin/ls:        ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

Everything is compliled as 32bit binaries.

Code:
Aug 23 14:25:59 machine genunix: [ID 540533 kern.notice] ^MSunOS Release 5.9 Version Generic_118558-36 64-bit

root@doninha>eeprom | grep boot-file
boot-file: data not available.

Supposedly it will boot the the 64 bit kernel unless told otherwise:

Code:
root@machine>file /platform/sun4u/kernel/sparcv9/genunix
/platform/sun4u/kernel/sparcv9/genunix: ELF 64-bit MSB relocatable SPARCV9 Version 1

Is there something i'm missing?

BR
AJ

Last edited by Scott; 09-10-2010 at 02:32 PM.. Reason: Code tags were missing...
# 4  
Old 09-10-2010
The fact that your kernel is 64bit does not imply that every binary shipped with the OS is 64bit.
In Solaris, only the parts that need to be changed to 64bit is 64bit.
Everything else is still 32bit as you gain nothing from converting them to 64bit.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

SUNWi1cs SUNWi15cs packages for solaris 10 64bit sparc

hi, i need to install SUNWi1cs and SUNWi15cs packages for solaris 10 sparc 64 bit , where can i download these packages . Thanks . (2 Replies)
Discussion started by: zeeshan047
2 Replies

2. Solaris

where can i download solaris 10 64bit for my intel machine?

where can i download solaris 10 64bit for my intel machine? i am able to find only 32bit solaris for intel machine. Please help me.. (2 Replies)
Discussion started by: chidori
2 Replies

3. Solaris

Where to download solaris 10 for sparc 64bit?

hi all I just got a sun blade 2000 server for free. I need to load a solaris 10 for sparc OS to it. the memory inside the box is 5gb. the cup is SUNW,UltraSPARC-III+ (1200 MHz @ 8:1, 8 MB). so my questions is 1. do I need to install a 64bit os or a 32bit os? 2. where can I download the... (3 Replies)
Discussion started by: rs6000er
3 Replies

4. Solaris

Apcahe2 64bit on solaris 10 sparc!

Hi, i'm trying to compile apache 2.2.13 on solaris 10 sparc as 64bit and for some reason its always compiled as 32bit! i know it can be done cause i've already done it before, so i'm not sure what am i doint wronghttp://forums.digitalpoint.com/images/smilies/frown.gif i've edit /.profile... (0 Replies)
Discussion started by: levic
0 Replies

5. Solaris

Solaris SPARC 10 64Bit -JDK Installation 1.6.05

In Sun Solaris 10, not able to create the key. JDK 1.6 Installed & PATH & JAVA_HOME both are referred to jdk 1.6. It is showing the belwo error Error: wrap() failed java.security.InvalidKeyException: wrap() failed at sun.security.pkcs11.P11RSACipher.engineWrap(P11RSACipher.java:395) at... (10 Replies)
Discussion started by: saktiviji
10 Replies

6. Solaris

32bit / 64bit issue with x86 solaris

i have solaris 10 x86 64bit installed on my pc (dell 3100). i then decided to move my hard drive to another pc (dell 4600). I noticed that each time i boot up, the OS show as 32 bit (instead of 64bit) and i can't even get past this stage to the login page. when i moved it back to dell 3100 it... (13 Replies)
Discussion started by: seyiisq
13 Replies

7. Solaris

CC 5.5 compiler flag to issue 64bit porting warnings on sparc-solaris

Hi, We are porting our application from 32bit to 64bit. We tried -xarch=v9, -xarc=v9a and -xport64=full options so that compiler to issue 64bit porting warnings. But we are not getting any porting warninings WE are using CC 5.5 compiler on sparc-solaris m/c. Please tell us some powerful... (0 Replies)
Discussion started by: shobhah
0 Replies

8. Solaris

fsck bug in Solaris 8

Be careful, we've just found out that the fsck command in Solaris 8 has caused corruption of our ufs files-stores. This was introduced in patch SUNWcsu patch 110910-05. Be warned, Sun are fixing this as we speak :eek: (1 Reply)
Discussion started by: Maillot Jaune
1 Replies
Login or Register to Ask a Question