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.hFor example,RTSLFOW should be replaced with RTSXOFFCTSFLOW should be replaced with CTSXONandORTSFL should be replaced with ISXOFFYou should now be able to recompile your application without error.