Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

nlist - not BSD compatible; different compile options (CrCh218)

UN Impacts

Problem description

The compiler option to enable your code to use the nlist function is different on Tru64 UNIX and HP-UX.

The nlist function gets entries from the name list.

On Tru64 UNIX, you specify the following compiler flag:

cc [flag ... ] cfile ... -lmld [library] ...

On HP-UX, you specify the following compiler flag:

cc [flag ... ] cfile ... -lelf [library] ...

The Tru64 UNIX nlist subroutine allows symbol names to be preceded by an underscore. If it does not find a symbol that matches the name as specified, nlist attempts to locate the symbol name with the leading underscore removed.

The HP-UX nlist subroutine does not attempt to locate the symbol name with the leading underscore removed.

Identifiers

C/C++ Functionsnlist            

See also

Solution description

Review your build environment and code, and make modifications.

Change the -lmld compiler flag to -lelf. If the application expects nlist to find the symbol names with the leading underscores removed, you must change the code to add that feature.

See also


Problem summary

classifications source types OS release severity type
UN C, C++ any HP-UX 11i version critical changed
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.