1833303 Members
2851 Online
110051 Solutions
New Discussion

swscanf in 11i

 
SOLVED
Go to solution
Srimalik
Valued Contributor

swscanf in 11i

Is "swscanf" available in 11i?
On my machine the linker fails to find this.

Another function which I am unable to locate on 11i getspnam_r.
abandon all hope, ye who enter here..
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: swscanf in 11i

Shalom,

Some research might be in order here.

http://docs.hp.com/en/5991-1194/5991-1194.pdf

http://modman.unixdev.net/?manpath=HP-UX-11.11

http://hpux.connect.org.uk/

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
TTr
Honored Contributor

Re: swscanf in 11i

What OS release do you have? This doc says that both are in the Sep 2005 11i v1

http://docs.hp.com/en/B2355-60127/fwscanf.3C.html

http://docs.hp.com/en/B2355-60127/getspent.3C.html
James R. Ferguson
Acclaimed Contributor

Re: swscanf in 11i

Hi:

First, 'swscanf' and 'getspnam' are C-library funtions. If you consult the manpages you will find wich header files you need to include. That would answer your question:

http://docs.hp.com/en/hpuxman_pages.html

Too, "11i" describes either/variously 11.11, 11.23 and 11.31. Be specific.

Regards!

...JRF...
Srimalik
Valued Contributor

Re: swscanf in 11i

Thanks JRF
>>Too, "11i" describes either/variously 11.11, 11.23 and 11.31. Be specific.

I think we use 11i for 11.11.

Anyways, I was wrong because I assumed that I am compiling on 11.11 but its 11.00.
did uname on a different system by mistake :-(

I am on 11.00

In the reference manuals I couldn't find the man pages for 11.00

Thanks
Sri
abandon all hope, ye who enter here..
Steven E. Protter
Exalted Contributor

Re: swscanf in 11i

11.00 is out of support and may not have the libraries.

This is a missing software problem.

Or perhaps SHLIB_PATH is not set correctly in the environment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor
Solution

Re: swscanf in 11i

Hi (again):

The 11.0 manpages live here:

http://docs.hp.com/en/B2355-90683/index.html

...but I don't see either library mentioned. Formatted wide character support has received considerable more attention in recent times and releases.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: swscanf in 11i

>Another function which I am unable to locate on 11i getspnam_r.

This is in libsec.sl on 11.11. Only getspnam is there on 11.00.

>I think we use 11i for 11.11.

That's not what marketing thinks. :-)
That's why you should always use the numbers.
Srimalik
Valued Contributor

Re: swscanf in 11i

I was away from the internet for a few days.

Got an old document which has a set of patches mentioned which gets rid of the error.

PHCO_26111 (libc header file patch) PHCO_29959 (Pthread library patch) PHKL_21360, PHKL_28766, PHSS_22653 (libcl patch)
PHSS_26262 (ld patch)
PHSS_26320 (asm patch)
PHCO_28425 (libc patch)
PHSS_26945 (aC++ -AA runtime libraries patch)
PHSS_33034 (ld patch)
PHSS_33902 (libcl patch)


I didn't get time to find out which of the above patches have the function.

Shall read the patch docs for each patch and post the findings here.

-Sri
abandon all hope, ye who enter here..
Dennis Handly
Acclaimed Contributor

Re: swscanf in 11i

>Got an old document which has a set of patches mentioned which gets rid of the error.

I don't see how. Neither swscanf nor getspnam* are in the last libc or libc header patches: PHCO_33609 PHCO_32453