{"action":"closed","issue":{"url":"https://api.github.com/repos/stephane/libmodbus/issues/310","repository_url":"https://api.github.com/repos/stephane/libmodbus","labels_url":"https://api.github.com/repos/stephane/libmodbus/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/stephane/libmodbus/issues/310/comments","events_url":"https://api.github.com/repos/stephane/libmodbus/issues/310/events","html_url":"https://github.com/stephane/libmodbus/issues/310","id":132453341,"number":310,"title":"Error when make on Debian Jessie (Raspberry)","user":{"login":"dsergeant","id":17144615,"avatar_url":"https://avatars.githubusercontent.com/u/17144615?v=3","gravatar_id":"","url":"https://api.github.com/users/dsergeant","html_url":"https://github.com/dsergeant","followers_url":"https://api.github.com/users/dsergeant/followers","following_url":"https://api.github.com/users/dsergeant/following{/other_user}","gists_url":"https://api.github.com/users/dsergeant/gists{/gist_id}","starred_url":"https://api.github.com/users/dsergeant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsergeant/subscriptions","organizations_url":"https://api.github.com/users/dsergeant/orgs","repos_url":"https://api.github.com/users/dsergeant/repos","events_url":"https://api.github.com/users/dsergeant/events{/privacy}","received_events_url":"https://api.github.com/users/dsergeant/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T15:48:13Z","updated_at":"2016-02-09T15:54:27Z","closed_at":"2016-02-09T15:54:27Z","body":"I got this error message when trying to compile / install libmodbus 1.3.2. The stable version for debian present a bug \"Segmentation fault\" sometimes just after reception of a confirmation. I see that the newest version correct it and would like to benefit this fix.\r\nThanks a lot for your help!\r\n\r\nsudo ./configure; make; make install;\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\r\nchecking for gawk... no\r\nchecking for mawk... mawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking how to create a pax tar archive... gnutar\r\nchecking for style of include used by make... GNU\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables...\r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking dependency style of gcc... gcc3\r\nchecking for gcc option to accept ISO C99... -std=gnu99\r\nchecking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99\r\nchecking how to run the C preprocessor... gcc -std=gnu99 -E\r\nchecking for grep that handles long lines and -e... /bin/grep\r\nchecking for egrep... /bin/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking minix/config.h usability... no\r\nchecking minix/config.h presence... no\r\nchecking for minix/config.h... no\r\nchecking whether it is safe to define __EXTENSIONS__... yes\r\nchecking for special C compiler options needed for large files... no\r\nchecking for _FILE_OFFSET_BITS value needed for large files... 64\r\nchecking whether make supports nested variables... (cached) yes\r\nchecking build system type... armv7l-unknown-linux-gnueabihf\r\nchecking host system type... armv7l-unknown-linux-gnueabihf\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... /bin/sed\r\nchecking for fgrep... /bin/grep -F\r\nchecking for ld used by gcc -std=gnu99... /usr/bin/ld\r\nchecking if the linker (/usr/bin/ld) is GNU ld... yes\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\r\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1572864\r\nchecking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop\r\nchecking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop\r\nchecking for /usr/bin/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... @\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok\r\nchecking for sysroot... no\r\nchecking for a working dd... /bin/dd\r\nchecking how to truncate binary pipes... /bin/dd bs=4096 count=1\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no\r\nchecking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC\r\nchecking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes\r\nchecking if gcc -std=gnu99 static flag -static works... yes\r\nchecking if gcc -std=gnu99 supports -c -o file.o... yes\r\nchecking if gcc -std=gnu99 supports -c -o file.o... (cached) yes\r\nchecking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... yes\r\nchecking whether -lc should be explicitly linked in... no\r\nchecking dynamic linker characteristics... GNU/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... no\r\nchecking arpa/inet.h usability... yes\r\nchecking arpa/inet.h presence... yes\r\nchecking for arpa/inet.h... yes\r\nchecking byteswap.h usability... yes\r\nchecking byteswap.h presence... yes\r\nchecking for byteswap.h... yes\r\nchecking errno.h usability... yes\r\nchecking errno.h presence... yes\r\nchecking for errno.h... yes\r\nchecking fcntl.h usability... yes\r\nchecking fcntl.h presence... yes\r\nchecking for fcntl.h... yes\r\nchecking limits.h usability... yes\r\nchecking limits.h presence... yes\r\nchecking for limits.h... yes\r\nchecking linux/serial.h usability... yes\r\nchecking linux/serial.h presence... yes\r\nchecking for linux/serial.h... yes\r\nchecking netdb.h usability... yes\r\nchecking netdb.h presence... yes\r\nchecking for netdb.h... yes\r\nchecking netinet/in.h usability... yes\r\nchecking netinet/in.h presence... yes\r\nchecking for netinet/in.h... yes\r\nchecking netinet/tcp.h usability... yes\r\nchecking netinet/tcp.h presence... yes\r\nchecking for netinet/tcp.h... yes\r\nchecking sys/ioctl.h usability... yes\r\nchecking sys/ioctl.h presence... yes\r\nchecking for sys/ioctl.h... yes\r\nchecking sys/socket.h usability... yes\r\nchecking sys/socket.h presence... yes\r\nchecking for sys/socket.h... yes\r\nchecking sys/time.h usability... yes\r\nchecking sys/time.h presence... yes\r\nchecking for sys/time.h... yes\r\nchecking for sys/types.h... (cached) yes\r\nchecking termios.h usability... yes\r\nchecking termios.h presence... yes\r\nchecking for termios.h... yes\r\nchecking time.h usability... yes\r\nchecking time.h presence... yes\r\nchecking for time.h... yes\r\nchecking for unistd.h... (cached) yes\r\nchecking for asciidoc... no\r\nchecking for xmlto... no\r\nchecking whether to build documentation... no\r\nconfigure: WARNING: The tools to build the documentation aren't installed\r\nchecking whether __CYGWIN__ is declared... no\r\nchecking for pid_t... yes\r\nchecking vfork.h usability... no\r\nchecking vfork.h presence... no\r\nchecking for vfork.h... no\r\nchecking for fork... yes\r\nchecking for vfork... yes\r\nchecking for working fork... yes\r\nchecking for working vfork... (cached) yes\r\nchecking for accept4... yes\r\nchecking for getaddrinfo... yes\r\nchecking for gettimeofday... yes\r\nchecking for inet_ntoa... yes\r\nchecking for memset... yes\r\nchecking for select... yes\r\nchecking for socket... yes\r\nchecking for strerror... yes\r\nchecking for strlcpy... no\r\nchecking winsock2.h usability... no\r\nchecking winsock2.h presence... no\r\nchecking for winsock2.h... no\r\nchecking whether TIOCSRS485 is declared... yes\r\nchecking whether TIOCM_RTS is declared... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating src/Makefile\r\nconfig.status: creating src/modbus-version.h\r\nconfig.status: creating src/win32/modbus.dll.manifest\r\nconfig.status: creating tests/Makefile\r\nconfig.status: creating doc/Makefile\r\nconfig.status: creating libmodbus.pc\r\nconfig.status: creating config.h\r\nconfig.status: creating tests/unit-test.h\r\nconfig.status: tests/unit-test.h is unchanged\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n\r\n        libmodbus 3.1.2\r\n        ===============\r\n\r\n        prefix:                 /usr/local\r\n        sysconfdir:             ${prefix}/etc\r\n        libdir:                 ${exec_prefix}/lib\r\n        includedir:             ${prefix}/include\r\n\r\n        compiler:               gcc -std=gnu99\r\n        cflags:                 -g -O2\r\n        ldflags:\r\n\r\n        documentation:          no\r\n\r\nmake --no-print-directory all-recursive\r\nMaking all in src\r\n  CC       modbus.lo\r\nlibtool:   error: Failed to create '.libs'\r\nMakefile:473: recipe for target 'modbus.lo' failed\r\nmake[2]: *** [modbus.lo] Error 1\r\nMakefile:471: recipe for target 'all-recursive' failed\r\nmake[1]: *** [all-recursive] Error 1\r\nMakefile:378: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\nMaking install in src\r\n  CC       modbus.lo\r\nlibtool:   error: Failed to create '.libs'\r\nMakefile:473: recipe for target 'modbus.lo' failed\r\nmake[1]: *** [modbus.lo] Error 1\r\nMakefile:471: recipe for target 'install-recursive' failed\r\nmake: *** [install-recursive] Error 1\r\n"}}