Hi Mark,
As you know, I have trouble with hp3458a which is using very old asyn & StreamDevice. So I am trying to rebuild the hp3458a IOC.
I git clone the latest asyn from GitHub (commit 07f52d99f1977b76191dda505cf9d24b90548743). Firstly I tried to compile it on Debian-7 (wheezy) against base-3.14.12.3 which is pre-installed on our Debian-7 servers.
However, it failed: ../../asyn/drvAsynSerial/drvAsynIPPort.c:467:21: error: ‘O_REUSEPORT’ undeclared (first use in this function).
A little google search indicates this might be related to Debian 7’s old kernel or system library. So, I moved to a newer server with Debian-9 (stretch) and built the latest asyn and the latest StreamDevice
successfully against base-3.15.6 which is pre-installed on our Debian-9 servers.
When I try to rebuild the hp3458a IOC against the latest asyn & StreamDevice, it fails:
Creating dbd file hp3458a.dbd
perl -CSD /home/yhu/src/base-3.15.6/bin/linux-x86_64/dbdExpand.pl -I. -I.. -I../O.Common -I../../../dbd -I/home/yhu/src/asyn/dbd -I/home/yhu/src/StreamDevice/dbd -I/home/yhu/src/base-3.15.6/dbd -o hp3458a.dbd
base.dbd xxxSupport.dbd dbSubExample.dbd hp3458aHello.dbd initTrace.dbd devHP3458A.dbd system.dbd asyn.dbd stream.dbd drvVxi11.dbd
dbdExpand.pl: Duplicate definition of record type 'asyn'
Context: recordtype(asyn) in file '/home/yhu/src/asyn/dbd/asynRecord.dbd' in file '/home/yhu/src/asyn/dbd/asyn.dbd'
while reading 'asyn.dbd' to create 'hp3458a.dbd'
dbdExpand.pl: Exiting due to errors
What is the best way to fix this problem?
Thanks,
Yong