Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home
Transition solutions documentation home > Tutorial home

Porting Example: HP-UX to HP-UX

» 

Transition solutions documentation

» HP technical documentation
» Application transition
» HP-UX to HP-UX 11i
» Linux to HP-UX 11i
» Tru64 UNIX to HP-UX 11i
» Solaris to HP-UX 11i
» Solaris to Linux
Content starts here

This example takes you through the porting process using the binaryScan utility, and the STK file scanning technology, to identify porting problems and help you solve them for a code porting example from HP-UX v11i to HP-UX 11i v2.

1. Run the binaryScan utility

In this example, we run binaryScan on the executable code:

/opt/binaryscan/binaryscan gethost-example-PA

This summary report shows the number of instances of API differences in the source code. In this example, the report has identified four APIs, one of which has the disposition critical change.

» View the binaryScan summary output.

2. Run the scandetail utility

In this example, we run the scandetail report on all the source code in the current directory:

/opt/STK/bin/scandetail -r .

The scandetail report shows all of the impact statements generated for the files scanned.

» View the scandetail report.

3. View the impact statement

From the scandetail report generated in step 2, we select the problem synopsis NcWn918.

The impact statement NcWn918 shows a list of the libc APIs that have been deprecated and that may become obsolete in a future release of Itanium®-based systems.

4. Modify your source code

From the scandetail report generated in step 2, we commented the references to getipbynodename and used the getaddinfo and getnameinfo routines.

Use an editor to make these changes in the gethost-example.c file.

5. Run the scandetail utility again

In this example, we run the scandetail report again after we made modifications to the gethost-example.c file, which is located in the current directory:

/opt/STK/bin/scandetail -r .

The scandetail report shows that the number of files and lines scanned remained the same but that the impact statement NcWn918 is no longer displayed.

» View the revised scandetail report.

» Return to tutorial home

Privacy statement Using this site means you accept its terms Feedback to Transition Solutions Documentation
© 2006 Hewlett-Packard Development Company, L.P.