Closed ukmeterman closed 8 years ago
Could you explain how you launch the tests (command line, host, etc)?
Hi, Thanks for getting back to me ./unit-test-server rtu ERROR Connection reset by peer: read Opening /dev/ttyS5 at 115200 bauds (N, 8, 1) Waiting for a indication... Quit the loop: Connection reset by peer
./unit-test-client rtu \ UNIT TESTING **
TEST WRITE/READ: [11][05][00][13][FF][00][7F][6F] Waiting for a confirmation... ERROR Connection reset by peer: read Opening /dev/ttyS4 at 115200 bauds (N, 8, 1) 1/2 modbus_write_bit: FAILED
Version output: Compiled with libmodbus version 3.0.6 Linked with libmodbus version 3.0.6 The functions to read/write float values are available (2.1.0). Oh gosh, brand new API (2.1.1)!
Configure output This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
It was created by libmodbus configure 3.0.6, which was generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
hostname = james-P5K uname -m = x86_64 uname -r = 3.13.0-65-generic uname -s = Linux uname -v = #105-Ubuntu SMP Mon Sep 21 18:50:58 UTC 2015
/usr/bin/uname -p = unknown /bin/uname -X = unknown
/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown
PATH: /home/james/CodeSourcery/Sourcery_CodeBench_Lite_for_Nios_II_GNU_Linux/bin/ PATH: /home/james/CodeSourcery/Sourcery_CodeBench_Lite_for_Nios_II_GNU_Linux/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games
configure:2506: checking for a BSD-compatible install configure:2574: result: /usr/bin/install -c configure:2585: checking whether build environment is sane configure:2640: result: yes configure:2791: checking for a thread-safe mkdir -p configure:2830: result: /bin/mkdir -p configure:2837: checking for gawk configure:2853: found /usr/bin/gawk configure:2864: result: gawk configure:2875: checking whether make sets $(MAKE) configure:2897: result: yes configure:2926: checking whether make supports nested variables configure:2943: result: yes configure:3080: checking whether make supports nested variables configure:3097: result: yes configure:3130: checking build system type configure:3144: result: x86_64-unknown-linux-gnu configure:3164: checking host system type configure:3177: result: x86_64-unknown-linux-gnu configure:3274: checking for gcc configure:3290: found /usr/bin/gcc configure:3301: result: gcc configure:3530: checking for C compiler version configure:3539: gcc --version >&5 gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3550: $? = 0 configure:3539: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) configure:3550: $? = 0 configure:3539: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3550: $? = 4 configure:3539: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3550: $? = 4 configure:3570: checking whether the C compiler works configure:3592: gcc conftest.c >&5 configure:3596: $? = 0 configure:3644: result: yes configure:3647: checking for C compiler default output file name configure:3649: result: a.out configure:3655: checking for suffix of executables configure:3662: gcc -o conftest conftest.c >&5 configure:3666: $? = 0 configure:3688: result: configure:3710: checking whether we are cross compiling configure:3718: gcc -o conftest conftest.c >&5 configure:3722: $? = 0 configure:3729: ./conftest configure:3733: $? = 0 configure:3748: result: no configure:3753: checking for suffix of object files configure:3775: gcc -c conftest.c >&5 configure:3779: $? = 0 configure:3800: result: o configure:3804: checking whether we are using the GNU C compiler configure:3823: gcc -c conftest.c >&5 configure:3823: $? = 0 configure:3832: result: yes configure:3841: checking whether gcc accepts -g configure:3861: gcc -c -g conftest.c >&5 configure:3861: $? = 0 configure:3902: result: yes configure:3919: checking for gcc option to accept ISO C89 configure:3982: gcc -c -g -O2 conftest.c >&5 configure:3982: $? = 0 configure:3995: result: none needed configure:4020: checking whether gcc understands -c and -o together configure:4042: gcc -c conftest.c -o conftest2.o configure:4045: $? = 0 configure:4042: gcc -c conftest.c -o conftest2.o configure:4045: $? = 0 configure:4057: result: yes configure:4085: checking for style of include used by make configure:4113: result: GNU configure:4139: checking dependency style of gcc configure:4250: result: gcc3 configure:4323: checking for g++ configure:4339: found /usr/bin/g++ configure:4350: result: g++ configure:4377: checking for C++ compiler version configure:4386: g++ --version >&5 g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4397: $? = 0 configure:4386: g++ -v >&5 Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) configure:4397: $? = 0 configure:4386: g++ -V >&5 g++: error: unrecognized command line option '-V' g++: fatal error: no input files compilation terminated. configure:4397: $? = 4 configure:4386: g++ -qversion >&5 g++: error: unrecognized command line option '-qversion' g++: fatal error: no input files compilation terminated. configure:4397: $? = 4 configure:4401: checking whether we are using the GNU C++ compiler configure:4420: g++ -c conftest.cpp >&5 configure:4420: $? = 0 configure:4429: result: yes configure:4438: checking whether g++ accepts -g configure:4458: g++ -c -g conftest.cpp >&5 configure:4458: $? = 0 configure:4499: result: yes configure:4524: checking dependency style of g++ configure:4635: result: gcc3 configure:4650: checking whether make sets $(MAKE) configure:4672: result: yes configure:4727: checking how to print strings configure:4754: result: printf configure:4775: checking for a sed that does not truncate output configure:4839: result: /bin/sed configure:4857: checking for grep that handles long lines and -e configure:4915: result: /bin/grep configure:4920: checking for egrep configure:4982: result: /bin/grep -E configure:4987: checking for fgrep configure:5049: result: /bin/grep -F configure:5084: checking for ld used by gcc configure:5151: result: /usr/bin/ld configure:5158: checking if the linker (/usr/bin/ld) is GNU ld configure:5173: result: yes configure:5185: checking for BSD- or MS-compatible name lister (nm) configure:5234: result: /usr/bin/nm -B configure:5364: checking the name lister (/usr/bin/nm -B) interface configure:5371: gcc -c -g -O2 conftest.c >&5 configure:5374: /usr/bin/nm -B "conftest.o" configure:5377: output 0000000000000000 B some_variable configure:5384: result: BSD nm configure:5387: checking whether ln -s works configure:5391: result: yes configure:5399: checking the maximum length of command line arguments configure:5529: result: 1572864 configure:5546: checking whether the shell understands some XSI constructs configure:5556: result: yes configure:5560: checking whether the shell understands "+=" configure:5566: result: yes configure:5601: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format configure:5641: result: func_convert_file_noop configure:5648: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format configure:5668: result: func_convert_file_noop configure:5675: checking for /usr/bin/ld option to reload object files configure:5682: result: -r configure:5756: checking for objdump configure:5772: found /usr/bin/objdump configure:5783: result: objdump configure:5812: checking how to recognize dependent libraries configure:6014: result: passall configure:6099: checking for dlltool configure:6129: result: no configure:6156: checking how to associate runtime and link libraries configure:6183: result: printf %s\n configure:6244: checking for ar configure:6260: found /usr/bin/ar configure:6271: result: ar configure:6308: checking for archiver @FILE support configure:6325: gcc -c -g -O2 conftest.c >&5 configure:6325: $? = 0 configure:6328: ar cru libconftest.a @conftest.lst >&5 configure:6331: $? = 0 configure:6336: ar cru libconftest.a @conftest.lst >&5 ar: conftest.o: No such file or directory configure:6339: $? = 1 configure:6351: result: @ configure:6409: checking for strip configure:6425: found /usr/bin/strip configure:6436: result: strip configure:6508: checking for ranlib configure:6524: found /usr/bin/ranlib configure:6535: result: ranlib configure:6637: checking command to parse /usr/bin/nm -B output from gcc object configure:6757: gcc -c -g -O2 conftest.c >&5 configure:6760: $? = 0 configure:6764: /usr/bin/nm -B conftest.o | sed -n -e 's/^. [ ][ ]_([_A-Za-z][A-Za-z0-9])$/\1 \2 \2/p' | sed '/ **gnu_lto/d' > conftest.nm configure:6767: $? = 0 configure:6833: gcc -o conftest -g -O2 conftest.c conftstm.o >&5 configure:6836: $? = 0 configure:6874: result: ok configure:6911: checking for sysroot configure:6941: result: no configure:7018: gcc -c -g -O2 conftest.c >&5 configure:7021: $? = 0 configure:7197: checking for mt configure:7213: found /bin/mt configure:7224: result: mt configure:7247: checking if mt is a manifest tool configure:7253: mt '-?' configure:7261: result: no configure:7903: checking how to run the C preprocessor configure:7934: gcc -E conftest.c configure:7934: $? = 0 configure:7948: gcc -E conftest.c conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
^
compilation terminated.
configure:7948: $? = 1
configure: failed program was:
| /* confdefs.h _/
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGEURL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| / end confdefs.h. _/
| #include
^
compilation terminated.
configure:8007: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGEURL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| / end confdefs.h. _/
| #include
^
compilation terminated.
configure:12521: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LTOBJDIR ".libs/"
| / end confdefs.h. _/
| #include
^
compilation terminated. configure:12580: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "libmodbus" | #define PACKAGE_TARNAME "libmodbus" | #define PACKAGE_VERSION "3.0.6" | #define PACKAGE_STRING "libmodbus 3.0.6" | #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues" | #define PACKAGE_URL "" | #define PACKAGE "libmodbus" | #define VERSION "3.0.6" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | / end confdefs.h. / | #include |
/ confdefs.h / | #define PACKAGE_NAME "libmodbus" | #define PACKAGE_TARNAME "libmodbus" | #define PACKAGE_VERSION "3.0.6" | #define PACKAGE_STRING "libmodbus 3.0.6" | #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues" | #define PACKAGE_URL "" | #define PACKAGE "libmodbus" | #define VERSION "3.0.6" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TERMIOS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_NETINET_TCP_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_LINUX_SERIAL_H 1 | #define STDC_HEADERS 1 | /_ end confdefs.h. */ | #include |
#ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include |
# include |
#else | # ifdef HAVE_STDLIB_H | # include |
# endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include |
# endif | # include |
#endif | #ifdef HAVE_STRINGS_H | # include |
#endif | #ifdef HAVE_INTTYPES_H | # include |
#endif | #ifdef HAVE_STDINT_H | # include |
#endif | #ifdef HAVE_UNISTD_H | # include |
#endif | int | main () | { | if (sizeof ((size_t))) | return 0; | ; | return 0; | } configure:16048: result: yes configure:16059: checking whether time.h and sys/time.h may both be included configure:16079: gcc -c -g -O2 conftest.c >&5 configure:16079: $? = 0 configure:16086: result: yes configure:16101: checking whether __CYGWIN is declared configure:16101: gcc -c -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:80:10: error: 'CYGWIN' undeclared (first use in this function) (void) CYGWIN**; ^ conftest.c:80:10: note: each undeclared identifier is reported only once for each function it appears in configure:16101: $? = 1 configure: failed program was: | /* confdefs.h _/ | #define PACKAGE_NAME "libmodbus" | #define PACKAGE_TARNAME "libmodbus" | #define PACKAGE_VERSION "3.0.6" | #define PACKAGE_STRING "libmodbus 3.0.6" | #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues" | #define PACKAGE_URL "" | #define PACKAGE "libmodbus" | #define VERSION "3.0.6" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TERMIOS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_NETINET_TCP_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_LINUX_SERIAL_H 1 | #define STDC_HEADERS 1 | #define TIME_WITH_SYS_TIME 1 | / end confdefs.h. / | #include |
#ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef STDC_HEADERS | # include |
# include |
#else | # ifdef HAVE_STDLIB_H | # include |
# endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include |
# endif | # include |
#endif | #ifdef HAVE_STRINGS_H | # include |
#endif | #ifdef HAVE_INTTYPES_H | # include |
#endif | #ifdef HAVE_STDINT_H | # include |
#endif | #ifdef HAVE_UNISTD_H | # include |
#endif | int | main () | { | #ifndef CYGWIN | #ifdef **cplusplus | (void) __CYGWIN**; | #else | (void) CYGWIN; | #endif | #endif |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
return 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} |
configure:16101: result: no
configure:16114: checking for pid_t
configure:16114: gcc -c -g -O2 conftest.c >&5
configure:16114: $? = 0
configure:16114: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:77:20: error: expected expression before ')' token
if (sizeof ((pidt)))
^
configure:16114: $? = 1
configure: failed program was:
| / confdefs.h _/
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_TERMIOS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_LINUX_SERIAL_H 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DECLCYGWIN 0
| / end confdefs.h. _/
| #include
^
compilation terminated.
configure:16127: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_TERMIOS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_LINUX_SERIAL_H 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DECLCYGWIN 0
| / end confdefs.h. _/
| #include
^
compilation terminated. configure:16127: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "libmodbus" | #define PACKAGE_TARNAME "libmodbus" | #define PACKAGE_VERSION "3.0.6" | #define PACKAGE_STRING "libmodbus 3.0.6" | #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues" | #define PACKAGE_URL "" | #define PACKAGE "libmodbus" | #define VERSION "3.0.6" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TERMIOS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_NETINET_TCP_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_LINUX_SERIAL_H 1 | #define STDC_HEADERS 1 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_DECL_CYGWIN 0 | / end confdefs.h. / | #include main': /home/james/projects/c_workspace/libmodbus-3.0.6/conftest.c:85: undefined reference to strlcpy'
collect2: error: ld returned 1 exit status
configure:16341: $? = 1
configure: failed program was: |
/ confdefs.h / | #define PACKAGE_NAME "libmodbus" | #define PACKAGE_TARNAME "libmodbus" | #define PACKAGE_VERSION "3.0.6" | #define PACKAGE_STRING "libmodbus 3.0.6" | #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues" | #define PACKAGE_URL "" | #define PACKAGE "libmodbus" | #define VERSION "3.0.6" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_TERMIOS_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_TIME_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_NETINET_TCP_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_LINUX_SERIAL_H 1 | #define STDC_HEADERS 1 | #define TIME_WITH_SYS_TIME 1 | #define HAVE_DECL_CYGWIN 0 | #define HAVE_FORK 1 | #define HAVE_VFORK 1 | #define HAVE_WORKING_VFORK 1 | #define HAVE_WORKING_FORK 1 | #define HAVE_GETTIMEOFDAY 1 | #define HAVE_INET_NTOA 1 | #define HAVE_MEMSET 1 | #define HAVE_SELECT 1 | #define HAVE_SOCKET 1 | #define HAVE_STRERROR 1 | / end confdefs.h. / | /_ Define strlcpy to an innocuous variant, in case |
For example, HP-UX 11i |
#define strlcpy innocuous_strlcpy |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/_ System header to define **stub macros and hopefully few prototypes, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
which can conflict with char strlcpy (); below. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Prefer |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#ifdef STDC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# include |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# include |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#endif | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#undef strlcpy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/_ Override any GCC internal prototype to avoid an error. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Use char because int might match the return type of a GCC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
builtin and then its argument prototype would still apply. _/ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#ifdef __cplusplus | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
extern "C" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#endif | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
char strlcpy (); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/_ The GNU C library defines this for functions which it implements | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
to always fail with ENOSYS. Some functions are actually named | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
something starting with _ and the normal name is an alias. / | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#if defined __stub_strlcpy | defined __stub___strlcpy | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
choke me | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#endif | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
int | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
main () | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
return strlcpy (); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
return 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} |
configure:16341: result: no configure:16341: checking for getaddrinfo configure:16341: gcc -o conftest -g -O2 conftest.c >&5 configure:16341: $? = 0 configure:16341: result: yes configure:16369: checking winsock2.h usability configure:16369: gcc -c -g -O2 -Wall -Werror conftest.c >&5 conftest.c:85:22: fatal error: winsock2.h: No such file or directory
^
compilation terminated.
configure:16369: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_TERMIOS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_LINUX_SERIAL_H 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DECL_CYGWIN 0
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_INET_NTOA 1
| #define HAVE_MEMSET 1
| #define HAVE_SELECT 1
| #define HAVE_SOCKET 1
| #define HAVE_STRERROR 1
| #define HAVEGETADDRINFO 1
| / end confdefs.h. _/
| #include
^
compilation terminated.
configure:16369: $? = 1
configure: failed program was:
| / confdefs.h /
| #define PACKAGE_NAME "libmodbus"
| #define PACKAGE_TARNAME "libmodbus"
| #define PACKAGE_VERSION "3.0.6"
| #define PACKAGE_STRING "libmodbus 3.0.6"
| #define PACKAGE_BUGREPORT "https://github.com/stephane/libmodbus/issues"
| #define PACKAGE_URL ""
| #define PACKAGE "libmodbus"
| #define VERSION "3.0.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_TERMIOS_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_LINUX_SERIAL_H 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DECL_CYGWIN 0
| #define HAVE_FORK 1
| #define HAVE_VFORK 1
| #define HAVE_WORKING_VFORK 1
| #define HAVE_WORKING_FORK 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_INET_NTOA 1
| #define HAVE_MEMSET 1
| #define HAVE_SELECT 1
| #define HAVE_SOCKET 1
| #define HAVE_STRERROR 1
| #define HAVEGETADDRINFO 1
| / end confdefs.h. */
| #include
This file was extended by libmodbus config.status 3.0.6, which was generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status
on james-P5K
config.status:1197: creating Makefile config.status:1197: creating src/Makefile config.status:1197: creating src/modbus-version.h config.status:1197: creating doc/Makefile config.status:1197: creating tests/Makefile config.status:1197: creating libmodbus.pc config.status:1197: creating libmodbus.spec config.status:1197: creating config.h config.status:1378: config.h is unchanged config.status:1197: creating tests/unit-test.h config.status:1378: tests/unit-test.h is unchanged config.status:1426: executing depfiles commands config.status:1426: executing libtool commands
ac_cv_build=x86_64-unknown-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_fork=yes ac_cv_func_fork_works=yes ac_cv_func_getaddrinfo=yes ac_cv_func_gettimeofday=yes ac_cv_func_inet_ntoa=yes ac_cv_func_memset=yes ac_cv_func_select=yes ac_cv_func_socket=yes ac_cv_func_strerror=yes ac_cv_func_strlcpy=no ac_cv_func_vfork=yes ac_cv_func_vfork_works=yes ac_cv_have_decl_TIOCSRS485=yes ac_cv_have_decl_CYGWIN__=no ac_cv_header_arpa_inet_h=yes ac_cv_header_dlfcn_h=yes ac_cv_header_errno_h=yes ac_cv_header_fcntl_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_limits_h=yes ac_cv_header_linux_serial_h=yes ac_cv_header_memory_h=yes ac_cv_header_netdb_h=yes ac_cv_header_netinet_in_h=yes ac_cv_header_netinet_tcp_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_ioctl_h=yes ac_cv_header_sys_socket_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_time_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_termios_h=yes ac_cv_header_time=yes ac_cv_header_time_h=yes ac_cv_header_unistd_h=yes ac_cv_header_vfork_h=no ac_cv_header_winsock2_h=no ac_cv_host=x86_64-unknown-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_FGREP='/bin/grep -F' ac_cv_path_GREP=/bin/grep ac_cv_path_SED=/bin/sed ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_CXXCPP='g++ -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_MANIFEST_TOOL=mt ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_ac_libmodbus_have_asciidoc=no ac_cv_prog_ac_libmodbus_have_xmlto=no ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes ac_cv_type_pid_t=yes ac_cv_type_size_t=yes am_cv_CC_dependencies_compiler_type=gcc3 am_cv_CXX_dependencies_compiler_type=gcc3 am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes lt_cv_ar_at_file=@ lt_cv_archive_cmds_need_lc=no lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=/usr/bin/ld lt_cv_path_LDCXX='/usr/bin/ld -m elf_x86_64' lt_cv_path_NM='/usr/bin/nm -B' lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_pic='-fPIC -DPIC' lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_pic_works_CXX=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=yes lt_cv_prog_compiler_static_works_CXX=yes lt_cv_prog_gnu_ld=yes lt_cv_prog_gnu_ldcxx=yes lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_shlibpath_overrides_runpath=no lt_cv_sys_global_symbolpipe='sed -n -e '\''s/^. [ ][ ]_([_A-Za-z][A-Za-z0-9])$/\1 \2 \2/p'\'' | sed '\''/ gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_nameaddress='sed -n -e '\''s/^: ([^ ])[ ]$/ {\"\1\", (void ) 0},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"\2", (void ) &\2},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_libprefix='sed -n -e '\''s/^: ([^ ])[ ]$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) (lib[^ ])$/ {"\2", (void ) &\2},/p'\'' -e '\''s/^[ABCDGIRSTW] ([^ ]) ([^ ])$/ {"lib\2", (void _) &\2},/p'\''' lt_cv_sys_global_symbol_tocdecl='sed -n -e '\''s/^T . (.)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW] .* (.*)$/extern char \1;/p'\''' lt_cv_sys_max_cmd_len=1572864 lt_cv_to_host_file_cmd=func_convert_file_noop lt_cv_to_tool_file_cmd=func_convert_file_noop
ACLOCAL='${SHELL} /home/james/projects/c_workspace/libmodbus-3.0.6/missing aclocal-1.14' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='0' AM_V='$(V)' AR='ar' AS='as' AUTOCONF='${SHELL} /home/james/projects/c_workspace/libmodbus-3.0.6/missing autoconf' AUTOHEADER='${SHELL} /home/james/projects/c_workspace/libmodbus-3.0.6/missing autoheader' AUTOMAKE='${SHELL} /home/james/projects/c_workspace/libmodbus-3.0.6/missing automake-1.14' AWK='gawk' BUILD_DOC_FALSE='' BUILD_DOC_TRUE='#' CC='gcc' CCDEPMODE='depmode=gcc3' CFLAGS='-g -O2 -Wall -Werror' CPP='gcc -E' CPPFLAGS='' CXX='g++' CXXCPP='g++ -E' CXXDEPMODE='depmode=gcc3' CXXFLAGS='-g -O2' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' DLLTOOL='false' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EXEEXT='' FGREP='/bin/grep -F' GREP='/bin/grep' INSTALL_DATA='${INSTALL} -m 644' INSTALL_MAN_FALSE='#' INSTALL_MAN_TRUE='' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/usr/bin/ld -m elf_x86_64' LDFLAGS='' LIBMODBUS_LT_VERSION_INFO='5:5:0' LIBMODBUS_VERSION='3.0.6' LIBMODBUS_VERSION_MAJOR='3' LIBMODBUS_VERSION_MICRO='6' LIBMODBUS_VERSION_MINOR='0' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='' LN_S='ln -s' LTLIBOBJS='' MAKEINFO='${SHELL} /home/james/projects/c_workspace/libmodbus-3.0.6/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm -B' NMEDIT='' OBJDUMP='objdump' OBJEXT='o' OS_QNX_FALSE='' OS_QNX_TRUE='#' OS_WIN32_FALSE='' OS_WIN32_TRUE='#' OTOOL64='' OTOOL='' PACKAGE='libmodbus' PACKAGE_BUGREPORT='https://github.com/stephane/libmodbus/issues' PACKAGE_NAME='libmodbus' PACKAGE_STRING='libmodbus 3.0.6' PACKAGE_TARNAME='libmodbus' PACKAGE_URL='' PACKAGE_VERSION='3.0.6' PATH_SEPARATOR=':' RANLIB='ranlib' SED='/bin/sed' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' VERSION='3.0.6' ac_ct_AR='ar' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_DUMPBIN='' ac_libmodbus_have_asciidoc='no' ac_libmodbus_have_xmlto='no' amEXEEXT_FALSE='' am__EXEEXT_TRUE='#' amfastdepCC_FALSE='#' amfastdepCC_TRUE='' am__fastdepCXX_FALSE='#' amfastdepCXX_TRUE='' aminclude='include' amisrc='' amleading_dot='.' am__nodep='_no' amquote='' amtar='$${TAR-tar} chof - "$$tardir"' amuntar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='unknown' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' host='x86_64-unknown-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/james/projects/c_workspace/libmodbus-3.0.6/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias=''
/* confdefs.h */
configure: exit 0
checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking whether make sets $(MAKE)... (cached) yes checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for sys/types.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking linux/serial.h usability... yes checking linux/serial.h presence... yes checking for linux/serial.h... yes checking for asciidoc... no checking for xmlto... no checking whether to build documentation... no checking whether to install manpages... yes checking for ANSI C header files... (cached) yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether CYGWIN is declared... no checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for memset... yes checking for select... yes checking for socket... yes checking for strerror... yes checking for strlcpy... no checking for getaddrinfo... yes checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking whether TIOCSRS485 is declared... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/modbus-version.h config.status: creating doc/Makefile config.status: creating tests/Makefile config.status: creating libmodbus.pc config.status: creating libmodbus.spec config.status: creating config.h config.status: config.h is unchanged config.status: creating tests/unit-test.h config.status: tests/unit-test.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands
Make output
Do your user have the permissions to write the serial port? Did you try as root or by giving the right permissions to your user on the devices?
I'm pretty sure it's just a permission issue and no answer from reporter.
Hi, I am trying to use the modbus library in RTU mode, under Ubuntu 14.04.1 I am finding that libmodbus 3.0.1 and 3.0.6 is giving the error connection reset by peer, even for the client server unit tests. What am I doing wrong?
Hardware is true pci serial cards, and the connection is fine useing terminal to check the null modem cable. Connected to com4 and com5, hardware works under windows 7