1833458 Members
3192 Online
110052 Solutions
New Discussion

Re: bindresvport - usage

 
hanniball
New Member

bindresvport - usage


Hi,

I am using bindresvport to bind to a ports btwn 0 - 1023. 64 bit hp ux 11.11.

However while linking this into a binary,it showing "Unsatififed symbol bindresvport" .

The linkline has -lc and -lnsl.

It seems the function is defined in libnsl.a but was not exported to libnsl.sl
Is there any way to work around this.
Thanks
2 REPLIES 2
Jim Keeble
Trusted Contributor

Re: bindresvport - usage

The bindresvport() is mentioned in section 8.6.1.1 of the 11.00RelNotes in /usr/share/doc . It say that bindresvport() is among a group of calls removed from libc.2/a and now included in libc.1.

I'm not sure if this completely answers your question, but you might have a look there.

rick jones
Honored Contributor

Re: bindresvport - usage

I've always been under the impression that one is not supposed to link -lc explicitly except in very limited circumstances - what happens if you leave-off the -lc and simply rely on -lnsl.

Have you a small test case?
there is no rest for the wicked yet the virtuous have no pillows