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

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

Post by parule.. » Sat, 03 Jul 1999 04:00:00



Hi,
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
../lib/SOLARIS//libqtools.a(emmMap.o)

===================================================================

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,
Santosh

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

 
 
 

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

Post by Richard L. Hamilt » Sun, 04 Jul 1999 04:00:00


I think sigsetmask is a BSDism.  If you absolutely _must_
use it, you'll probably need to add to the compile line:
   -L/usr/ucblib -R/usr/ucblib -lucb

for which you have to have package SUNWscpu loaded (not everyone does).

You may also need
   -I/usr/ucbinclude
to pick up the BSD version of the include files, although if the reference
is coming from a pre-existing library, you probably won't need that.

You'd probably be better off rewriting in terms of something newer
though, probably like sigprocmask(2).  The BSD compatibility library
is not the greatest, and is generally not multithread (MT) safe.



Quote:> Hi,
> 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
> ../lib/SOLARIS//libqtools.a(emmMap.o)

> ===================================================================

> 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,
> Santosh

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

--
ftp> get |fortune
377 I/O error: smart remark generator failed

Bogonics: the primary language inside the Beltway



 
 
 

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

Hi,
      I have pre-built third party libraries from sunos 4.1.x. They were
built on that version of the OS.
Now, when I link new programs on sunos 5.x and above, Iam unable to link
these old libs, because the linker complains about the format of these
old libs. Is there a way to make them work on sunos 5.x and above ?
I have no sources for these third party libs.

Second, iam able to build executables on sunos 4.1.x successfully with
these old libs and the the binaries work nicely on sunos 4.1.x, but
crash on sunos 5.x and above. Is there a solution other than getting the
latest version of these libs ?

TIA,
-RSN

2. Using grep to find if user is logged

3. Using sunos 4.1.x libs on sunos 5.x

4. *** LISP for AIX on PS/2 (and/or RS6000) ?... ***

5. Detect between SunOS 4.1.x and SunOS 5.x

6. Where is the DEV_WAIT to DOWN timeout set?

7. SunOS 4.1 vs SunOS 5.2

8. ??:CMI8738 Based Modem - Linux Driver?

9. Differences between SunOS 4.1 and SunOs 5.1 STREAMS implementations

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

11. Porting a driver from SunOS 4.1 to Solaris 2.5

12. SunOS 4.1 / 4.1.1 / 4.1.1U_1 /usr/etc/rpc.yppasswdd doesn't work.

13. Solaris 2.x Install Server for SunOS 4.1.x?