configure script and config.h file
I've been using libmodbus-2.0.3 in our embedded project, but when I tried to build a TCP slave (a modbus TCP server)
I found the issues that has been discussed in this forum (about the modbus_init_listen and slave id) , I did modified the
2.0.3 version of the lib adding a function like modbus_
by default wich is why the config.h file ends with:
#define HAVE_MALLOC 0
and
#define malloc rpl_malloc
despite of having a standard ANSI C library (wich is also checked with result 1):
#define HAVE_STDLIB_H 1
#define STDC_HEADERS 1
anyway, I can figure out 2 workarounds, that are obvious (edit the configure and set the variable=yes or comment the malloc redefine and set #HAVE_MALLOC 1) but I think that maybe this could be a bug or a mischeck, so maybe you can check this :)
(both of them work and the lib works flawless)
I'm asking this because I'm just a user of the "./configure" script so I don't want to make mistakes correcting that kind of checks.
Regards!
PD: in the test directory I had to add the #include <sys/socket.h> to avoid the error: (obviously due to my toolchain :) )
bandwidth-
Toolchain: http://
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- libmodbus Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stéphane Raimbault
- Solved:
- Last query:
- Last reply: