Re: 10.20 compatibility on 11.11 (106 Views)
Reply
Respected Contributor
Paul Cross_1
Posts: 288
Registered: ‎03-18-2002
Message 1 of 6 (106 Views)

10.20 compatibility on 11.11

I have a user trying to migrate an application (that relies heavily on the gethostbyname() syscall) from an 11.11 host to another 11.11 host. The binaries were built on a 10.20 host. These binaries work on the old 11.11 machine but not on the new one. I have installed "PHCO_32719 cumulative 10.20 libc compatibility support" but they still do not seem to work.

Unfortunately I don't have access to the old machine, or this would likely be easier.

Any ideas?
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 6 (106 Views)

Re: 10.20 compatibility on 11.11

Hi Paul:

> I have installed "PHCO_32719 cumulative 10.20 libc compatibility support" but they still do not seem to work.

OK, but did you reboot after the installation of the patch? The patch's special instructions note, "If libc patches are installed without rebooting, applications currently running which are linked shared against libc will still continue using the former version of libc. If this presents a problem to any applications, you should reboot."

Regards!

...JRF...
Please use plain text.
Respected Contributor
Paul Cross_1
Posts: 288
Registered: ‎03-18-2002
Message 3 of 6 (106 Views)

Re: 10.20 compatibility on 11.11

Yes, the machine was rebooted per the instructions. Still the gethostbyname syscall is returning incorrect output. the same code compiled on the new machine returns correctly.

Interestingly, the 10.20 compatibility patch applied to a lab machine worked perfectly.

-p
Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,758
Registered: ‎06-21-2000
Message 4 of 6 (106 Views)

Re: 10.20 compatibility on 11.11

>>Still the gethostbyname syscall is returning incorrect output.

Can you share examples? What is it returning? What should it be returning?

Have you checked configuration files like /etc/resolv.conf and /etc/nsswitch.conf to make sure it is looking for the information in the right place?
Please use plain text.
Respected Contributor
Paul Cross_1
Posts: 288
Registered: ‎03-18-2002
Message 5 of 6 (106 Views)

Re: 10.20 compatibility on 11.11

I have checked the resolv.conf and nsswitch.conf. They are normal.

> What is it returning?

The binary compiled on 10.20 returns:
#./ghbntest hostname
./ghbntest: host not found: hostname

> What should it be returning?

The gethostbyname test that I compiled natively returns:

#./a.out hostname
hostname.domain.com -> 192.168.1.10

Both were compiled from the same code.

-Paul
Please use plain text.
Respected Contributor
Paul Cross_1
Posts: 288
Registered: ‎03-18-2002
Message 6 of 6 (106 Views)

Re: 10.20 compatibility on 11.11

The gethostbyname test returns this on the 11.11 lab machine with the binary compiled under 10.20:

#./ghbntest hostname
hostname.domain.com -> 192.168.1.10

-Paul
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation