Help linking apps

Help linking apps

Post by Jesús M. Milán-Franc » Sat, 15 Jul 2000 04:00:00



Hi, all.

I'm trying to compile (with gcc) a SunOS 4 apps in an Solaris machine. When linking the ojects, I get the following messages:

Undefined                       first referenced
 symbol                             in file
sigmask                             ../bin/SOLARIS/libtransis.a(ha.o)
sigsetmask                          ../bin/SOLARIS/libtransis.a(ha.o)
sigblock                            ../bin/SOLARIS/libtransis.a(ha.o)
ld: fatal: Symbol referencing errors. No output written to user

I know I have to add a lib in the linking process, but I don't know which one.

Can anyone help me??

Thanks a lot

----

Dpto. Sistemas Informticos y Programacin
Facultad de Informtica (U. C. M.)
Ciudad Universitaria s/n - 28040 Madrid (Spain)
phone: (+34) 91 394 43 50 / fax: (+34) 91 394 46 02

 
 
 

Help linking apps

Post by ravi.redd » Sat, 15 Jul 2000 04:00:00


 Hi Franco,

 You need to link libnsl.a
 Usually you can get the library to link from the Man page of the particular system call or library function.

 If you are not able to judge still, you could use 'nm -r system-library-name' to get the symbols and find out the missing link.

 regards,
 ravi.


> Hi, all.

> I'm trying to compile (with gcc) a SunOS 4 apps in an Solaris machine. When linking the ojects, I get the following messages:

> Undefined                       first referenced
>  symbol                             in file
> sigmask                             ../bin/SOLARIS/libtransis.a(ha.o)
> sigsetmask                          ../bin/SOLARIS/libtransis.a(ha.o)
> sigblock                            ../bin/SOLARIS/libtransis.a(ha.o)
> ld: fatal: Symbol referencing errors. No output written to user

> I know I have to add a lib in the linking process, but I don't know which one.

> Can anyone help me??

> Thanks a lot

> ----

> Dpto. Sistemas Informticos y Programacin
> Facultad de Informtica (U. C. M.)
> Ciudad Universitaria s/n - 28040 Madrid (Spain)
> phone: (+34) 91 394 43 50 / fax: (+34) 91 394 46 02


 
 
 

Help linking apps

Post by Casper H.S. Dik - Network Security Engine » Sat, 15 Jul 2000 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


Quote:>I'm trying to compile (with gcc) a SunOS 4 apps in an Solaris machine. =
>When linking the ojects, I get the following messages:
>Undefined                       first referenced
> symbol                             in file
>sigmask                             ../bin/SOLARIS/libtransis.a(ha.o)
>sigsetmask                          ../bin/SOLARIS/libtransis.a(ha.o)
>sigblock                            ../bin/SOLARIS/libtransis.a(ha.o)
>ld: fatal: Symbol referencing errors. No output written to user

You need to port your application to Solaris.

sigmask/sigblock/sigsetmask have all been replaced by different, less
limiting, system calls.

See sigprocmask(), sigemptyset(), sigaddset() etc.

Casper

--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. Statically re-linking a dinamically linked apps?

Hi all!

  Well I think the subject tells it all: I have managed to compile,
with no little troubles, some really old programs. Now I have to
distribute them to students, but I don't like the idea of fighting
again with them: I have the ELF dinamically linked binaries, the
libraries (in .so and .a forms): it is possible to link all again and
obtain a statically linked binary from the dinamically linked one,
and how? To resume, it is possible obtain back a ".o" from the ELF
executable?

  Thanks to all for the help,
                               Romano

--
------------------------------------------------------------------
Dr. Romano Giannetti     Dip. di Ingegneria dell'Informazione
Researcher               Elettronica Informatica Telecomunicazioni

------------------------------------------------------------------

2. NETPBM compiled binary for FreeBSD 4.7?

3. Help on compiling & linking X11 apps under 2.2

4. Help with Ethernet Card!!!

5. Q: HELP! sym links & some apps

6. switch VT Under X

7. Help in Restoring app links. TIA

8. Reading and writing raw memory locations

9. HELP: Linking Xwindows Apps with GCC: Unresolved refs

10. HELP:Linking XWindows Apps: I get unresolved refs on X calls.

11. ===HELP: How to port UNIX + Motif client/server app to a WWW app ?? ===

12. Any unix app. to grab all contents of a http:// link?

13. Xt apps crash - linking problem?