Technical article 111185

nm++ fails to work under SCO OpenServer 5.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

When running "nm++" on SCO OpenServer 5, it fails to run and produces this error:

# nm++ Driver.o
nm++: syntax error at line 3: `|' unexpected

Cause

There is a space between the two pipe ("|") signs in the
/usr/bin/nm++ script.

Solution

To work around this problem, take these steps:

1.  Make a backup of the file:
/usr/bin/nm++
Then edit the original.
2. Update line 3 so that the space between each "|" is removed,
that is, change line 3 from:
    __DSROOT=$__CPLUSROOT/usr/lib/CC/fixes $__CPLUSROOT/usr/lib/CC/fixes/nm "$@"
| | $__CPLUSROOT/usr/lib/CC/c++filt
to:
    __DSROOT=$__CPLUSROOT/usr/lib/CC/fixes $__CPLUSROOT/usr/lib/CC/fixes/nm "$@"
|| $__CPLUSROOT/usr/lib/CC/c++filt
Save the file.

This problem has been reported to SCO Engineering.

See also

nm(CP)

From the Xinuos technical article database, record 111185. Reproduced with permission. The original is at www.sco.com/ta/111185, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.