Porting a driver from SunOS 4.1 to Solaris 2.5

Porting a driver from SunOS 4.1 to Solaris 2.5

Post by Marc De Prete » Tue, 10 Mar 1998 04:00:00


Someone asked me if I can port a driver, developped on SunOS 4.1 (i
suppose it's Solaris 1) to Solaris 2.5 (i suppose it means SunOS 5.5).
I've got the full code, which is quit long (around 20 000 lines of C to
be ported). The driver has been developped has a module.

On another forum, someone told me that the main differences between
SunOSes is that SunOS 4 = BSD, and SunOS 5 : Sys V. If we want to do the
porting, we will have a well defined time frame, so I prefer think twice
before saying OK.

My question is : who has already done this (porting a module from sunos
4 to sunos 5) ? Was it tough ? Knowing that the code is heavily
commented, that the machine will be the same (same bus, same cpu, ....
it's just the OS that will be changed), what kind of surprise may I
expect ?

Can someone give me any clue/hints/comments ?



Marc De Preter                                  +32-2-650 57 17
Researcher                                      +32-2-629 38 16
Service Telematique et Communication
Universite Libre de Bruxelles

All opinions expressed here only represent my own point of vue, not the
one of my university.


1. Porting from SunOS (4.1) to Solaris (SunOS 5.5.1)

I am porting some code from SunOS 4.1 to SunOS 5.5.1 (Solaris)
I am getting following link errors on Solaris.
Even after adding "-lsocket -lnsl -lels -laio" libs on link line.
ild: (Performing full relink) arguments are inconsistent [...]
ild: (undefined symbol) sigsetmask -- referenced in the text segment of


also gives undefined symbols for sigsetmask and sigblock for several
other files.
How do I remove these errors?
Do I need to check for any libs on my solaris machine?
Thanks in advance,

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

2. Configuring net (IP-tunnel, IP-Alias, Proxy-ARP, NAT, IP-Masq?)

3. Problems porting fonts from SunOS 4.1.x to Solaris 2.3

4. as fails with Sig 11 on PS/2

5. SunOS 4.1.x libraries on Solaris 2.x (sunos 5.x)

6. iPlanet key pair import

7. Migration of SunOS 4.1 driver to Solaris 2.x

8. verifying password against user database

9. Porting SunOS application to Solaris 2.5 - experiences

10. Help porting 4.1.x device driver to Solaris 2.3

11. SunPC 4.1 Install on Solaris 2.5

12. max files open w/ fopen(), gcc2.7.2, C++ 4.1, solaris 2.5

13. ARP Requests by AIX (3.2.5/4.1) and Solaris 2.5