modbus team mailing list archive
-
modbus team
-
Mailing list archive
-
Message #00008
Bug libmodbus 2.9.4
Hi folks,
I tried to compile libmodbus in OpenBSD system and i found a bug.
The problem is the next:
When gcc tries to compile src/modbus-rtu.c shows the next msg:
Making all in src
CC modbus-rtu.lo
modbus-rtu.c: In function '_modbus_rtu_connect':
modbus-rtu.c:702: error: 'MODBUS_RTU_RS232' undeclared (first use in
this function)
modbus-rtu.c:702: error: (Each undeclared identifier is reported only once
modbus-rtu.c:702: error: for each function it appears in.)
I view the src/modbus-rtu.h and only defined MODBUS_RTU_RS232 for
Linux systems,
if you define this for other Unix systems the compilation don't fail
and all the tests run successful.
I'll awaiting for comments.
Thanks.