Technical article 127158

I get "undefined symbol: RTSFLOW" compiling my legacy SCO Unix application on Openserver 6.0.0

OpenServer 6.0.0

Written · Last revised

Problem

I am trying to compile my legacy SCO Unix application on OpenServer 6.0.0 and I am getting errors similar to:

UX:acomp: ERROR: "foobar.c", line 55: undefined symbol: RTSFLOW UX:acomp: ERROR: "foobar.c", line 55: undefined symbol: CTSFLOW UX:acomp: ERROR: "foobar.c", line 55: undefined symbol: ORTSLF

How can I modify my source so that it builds and runs properly on SCO OpenServer 6.0.0?

Cause

The standard serial port driver in OpenServer 6 is different to the standard serial port driver in Openserver 5 and SCO Unix 3.2.

The serial driver in OpenServer 6.0.0 (asyc(HW)) does not support the same set of ioctl flags as the SCO Unix and SCO OpenServer 5 serial driver (serial(HW)).

Solution

You will need to change your source code to use the correct ioctl flags and the compile.

These changes will include:

1) Add the following include statement to your code:

#include <sys/termiox.h>

2) Change any undefined symbol errors in your code.

For the correct symbol definitions to use please see the file:

/usr/include/sys/termiox.h
For example,
RTSLFOW should be replaced with RTSXOFF
CTSFLOW should be replaced with CTSXON
and
ORTSFL should be replaced with ISXOFF

You should now be able to recompile your application without error.

From the Xinuos technical article database, record 127158. Reproduced with permission. The original is at www.sco.com/ta/127158, which is reachable but blocked from search engines.

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.