|
$ git clone git://github.com/stephane/libmodbus
|
|
Cloning into 'libmodbus'...
|
|
remote: Counting objects: 4362, done.
|
|
remote: Total 4362 (delta 0), reused 0 (delta 0), pack-reused 4362
|
|
Receiving objects: 100% (4362/4362), 1.47 MiB | 2.17 MiB/s, done.
|
|
Resolving deltas: 100% (2924/2924), done.
|
|
Checking connectivity... done.
|
|
Checking out files: 100% (113/113), done.
|
|
$ cd libmodbus/
|
|
$ ls
|
|
acinclude.m4 configure.ac doc m4 NEWS tests
|
|
AUTHORS CONTRIBUTING.md ISSUE_TEMPLATE.md Makefile.am README.md
|
|
autogen.sh COPYING.LESSER libmodbus.pc.in MIGRATION src
|
|
$ . /usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi
|
|
$ ./autogen.sh
|
|
main::scan_file() called too early to check prototype at /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/aclocal line 621.
|
|
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
|
|
libtoolize: linking file `build-aux/ltmain.sh'
|
|
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
|
|
libtoolize: linking file `m4/libtool.m4'
|
|
libtoolize: linking file `m4/ltoptions.m4'
|
|
libtoolize: linking file `m4/ltsugar.m4'
|
|
libtoolize: linking file `m4/ltversion.m4'
|
|
libtoolize: linking file `m4/lt~obsolete.m4'
|
|
main::scan_file() called too early to check prototype at /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/aclocal line 621.
|
|
configure.ac:56: installing `build-aux/config.guess'
|
|
configure.ac:56: installing `build-aux/config.sub'
|
|
configure.ac:32: installing `build-aux/install-sh'
|
|
configure.ac:32: installing `build-aux/missing'
|
|
src/Makefile.am: installing `build-aux/depcomp'
|
|
|
|
------------------------------------------------------
|
|
Initialized build system. You can now run ./configure
|
|
------------------------------------------------------
|
|
|
|
$ ./configure --host=arm-angstrom-linux-gnueabi
|
|
configure: WARNING: if you wanted to set the --build type, don't use --host.
|
|
If a cross compiler is detected then cross compile mode will be used
|
|
configure: loading site script /usr/local/oecore-i686/site-config-armv5te-angstrom-linux-gnueabi
|
|
checking for a BSD-compatible install... /usr/bin/install -c
|
|
checking whether build environment is sane... yes
|
|
checking for arm-angstrom-linux-gnueabi-strip... arm-angstrom-linux-gnueabi-strip
|
|
checking for a thread-safe mkdir -p... /bin/mkdir -p
|
|
checking for gawk... gawk
|
|
checking whether make sets $(MAKE)... yes
|
|
checking how to create a pax tar archive... gnutar
|
|
checking for style of include used by make... GNU
|
|
checking for arm-angstrom-linux-gnueabi-gcc... arm-angstrom-linux-gnueabi-gcc
|
|
checking whether the C compiler works... yes
|
|
checking for C compiler default output file name... a.out
|
|
checking for suffix of executables...
|
|
checking whether we are cross compiling... yes
|
|
checking for suffix of object files... o
|
|
checking whether we are using the GNU C compiler... yes
|
|
checking whether arm-angstrom-linux-gnueabi-gcc accepts -g... yes
|
|
checking for arm-angstrom-linux-gnueabi-gcc option to accept ISO C89... none needed
|
|
checking dependency style of arm-angstrom-linux-gnueabi-gcc... gcc3
|
|
checking for arm-angstrom-linux-gnueabi-gcc option to accept ISO C99... -std=gnu99
|
|
checking for arm-angstrom-linux-gnueabi-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
|
|
checking how to run the C preprocessor... arm-angstrom-linux-gnueabi-gcc -std=gnu99 -E
|
|
checking for grep that handles long lines and -e... /bin/grep
|
|
checking for egrep... /bin/grep -E
|
|
checking for ANSI C header files... (cached) yes
|
|
checking for sys/types.h... (cached) yes
|
|
checking for sys/stat.h... (cached) yes
|
|
checking for stdlib.h... (cached) yes
|
|
checking for string.h... (cached) yes
|
|
checking for memory.h... (cached) yes
|
|
checking for strings.h... (cached) yes
|
|
checking for inttypes.h... (cached) yes
|
|
checking for stdint.h... (cached) yes
|
|
checking for unistd.h... (cached) yes
|
|
checking minix/config.h usability... no
|
|
checking minix/config.h presence... no
|
|
checking for minix/config.h... no
|
|
checking whether it is safe to define __EXTENSIONS__... yes
|
|
checking for special C compiler options needed for large files... no
|
|
checking for _FILE_OFFSET_BITS value needed for large files... 64
|
|
checking build system type... x86_64-unknown-linux-gnu
|
|
checking host system type... arm-angstrom-linux-gnueabi
|
|
checking how to print strings... printf
|
|
checking for a sed that does not truncate output... /bin/sed
|
|
checking for fgrep... /bin/grep -F
|
|
checking for ld used by arm-angstrom-linux-gnueabi-gcc -std=gnu99... /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld
|
|
checking if the linker (/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld) is GNU ld... yes
|
|
checking for BSD- or MS-compatible name lister (nm)... /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-nm -B
|
|
checking the name lister (/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-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 arm-angstrom-linux-gnueabi 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/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld option to reload object files... -r
|
|
checking for arm-angstrom-linux-gnueabi-objdump... arm-angstrom-linux-gnueabi-objdump
|
|
checking how to recognize dependent libraries... pass_all
|
|
checking for arm-angstrom-linux-gnueabi-dlltool... no
|
|
checking for dlltool... no
|
|
checking how to associate runtime and link libraries... printf %s\n
|
|
checking for arm-angstrom-linux-gnueabi-ar... arm-angstrom-linux-gnueabi-ar
|
|
checking for archiver @FILE support... @
|
|
checking for arm-angstrom-linux-gnueabi-strip... (cached) arm-angstrom-linux-gnueabi-strip
|
|
checking for arm-angstrom-linux-gnueabi-ranlib... arm-angstrom-linux-gnueabi-ranlib
|
|
checking command to parse /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/armv5te-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-nm -B output from arm-angstrom-linux-gnueabi-gcc -std=gnu99 object... ok
|
|
checking for sysroot... no
|
|
checking for arm-angstrom-linux-gnueabi-mt... no
|
|
checking for mt... mt
|
|
configure: WARNING: using cross tools not prefixed with host triplet
|
|
checking if mt is a manifest tool... no
|
|
checking for dlfcn.h... yes
|
|
checking for objdir... .libs
|
|
checking if arm-angstrom-linux-gnueabi-gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
|
|
checking for arm-angstrom-linux-gnueabi-gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
|
|
checking if arm-angstrom-linux-gnueabi-gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
|
|
checking if arm-angstrom-linux-gnueabi-gcc -std=gnu99 static flag -static works... no
|
|
checking if arm-angstrom-linux-gnueabi-gcc -std=gnu99 supports -c -o file.o... yes
|
|
checking if arm-angstrom-linux-gnueabi-gcc -std=gnu99 supports -c -o file.o... (cached) yes
|
|
checking whether the arm-angstrom-linux-gnueabi-gcc -std=gnu99 linker (/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld) 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 arpa/inet.h usability... yes
|
|
checking arpa/inet.h presence... yes
|
|
checking for arpa/inet.h... yes
|
|
checking byteswap.h usability... yes
|
|
checking byteswap.h presence... yes
|
|
checking for byteswap.h... yes
|
|
checking errno.h usability... yes
|
|
checking errno.h presence... yes
|
|
checking for errno.h... yes
|
|
checking fcntl.h usability... yes
|
|
checking fcntl.h presence... yes
|
|
checking for fcntl.h... yes
|
|
checking limits.h usability... yes
|
|
checking limits.h presence... yes
|
|
checking for limits.h... yes
|
|
checking linux/serial.h usability... yes
|
|
checking linux/serial.h presence... yes
|
|
checking for linux/serial.h... yes
|
|
checking netdb.h usability... yes
|
|
checking netdb.h presence... yes
|
|
checking for netdb.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 sys/ioctl.h usability... yes
|
|
checking sys/ioctl.h presence... yes
|
|
checking for sys/ioctl.h... yes
|
|
checking sys/params.h usability... no
|
|
checking sys/params.h presence... no
|
|
checking for sys/params.h... no
|
|
checking sys/socket.h usability... yes
|
|
checking sys/socket.h presence... yes
|
|
checking for sys/socket.h... yes
|
|
checking sys/time.h usability... yes
|
|
checking sys/time.h presence... yes
|
|
checking for sys/time.h... yes
|
|
checking for sys/types.h... (cached) yes
|
|
checking termios.h usability... yes
|
|
checking termios.h presence... yes
|
|
checking for termios.h... yes
|
|
checking time.h usability... yes
|
|
checking time.h presence... yes
|
|
checking for time.h... yes
|
|
checking for unistd.h... (cached) yes
|
|
checking for asciidoc... no
|
|
checking for xmlto... no
|
|
checking whether to build documentation... no
|
|
configure: WARNING: The tools to build the documentation aren't installed
|
|
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... cross
|
|
configure: WARNING: result yes guessed because of cross compilation
|
|
checking for working vfork... (cached) yes
|
|
checking for stdlib.h... (cached) yes
|
|
checking for GNU libc compatible malloc... (cached) yes
|
|
checking for accept4... yes
|
|
checking for getaddrinfo... (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... (cached) yes
|
|
checking for strlcpy... no
|
|
checking for inline... inline
|
|
checking whether we are using the GNU C++ compiler... yes
|
|
checking whether arm-angstrom-linux-gnueabi-g++ accepts -g... yes
|
|
checking dependency style of arm-angstrom-linux-gnueabi-g++... gcc3
|
|
checking how to run the C++ preprocessor... arm-angstrom-linux-gnueabi-g++ -E
|
|
checking for ld used by arm-angstrom-linux-gnueabi-g++... /usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld
|
|
checking if the linker (/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld) is GNU ld... yes
|
|
checking whether the arm-angstrom-linux-gnueabi-g++ linker (/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld) supports shared libraries... yes
|
|
checking for arm-angstrom-linux-gnueabi-g++ option to produce PIC... -fPIC -DPIC
|
|
checking if arm-angstrom-linux-gnueabi-g++ PIC flag -fPIC -DPIC works... yes
|
|
checking if arm-angstrom-linux-gnueabi-g++ static flag -static works... no
|
|
checking if arm-angstrom-linux-gnueabi-g++ supports -c -o file.o... yes
|
|
checking if arm-angstrom-linux-gnueabi-g++ supports -c -o file.o... (cached) yes
|
|
checking whether the arm-angstrom-linux-gnueabi-g++ linker (/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ld) supports shared libraries... yes
|
|
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
|
|
checking how to hardcode library paths into programs... immediate
|
|
checking for int64_t... yes
|
|
checking for size_t... yes
|
|
checking for ssize_t... yes
|
|
checking for uint16_t... yes
|
|
checking for uint32_t... yes
|
|
checking for uint8_t... yes
|
|
checking winsock2.h usability... no
|
|
checking winsock2.h presence... no
|
|
checking for winsock2.h... no
|
|
checking whether TIOCSRS485 is declared... yes
|
|
checking whether TIOCM_RTS is declared... yes
|
|
configure: creating ./config.status
|
|
config.status: creating Makefile
|
|
config.status: creating src/Makefile
|
|
config.status: creating src/modbus-version.h
|
|
config.status: creating src/win32/modbus.dll.manifest
|
|
config.status: creating tests/Makefile
|
|
config.status: creating doc/Makefile
|
|
config.status: creating libmodbus.pc
|
|
config.status: creating config.h
|
|
config.status: creating tests/unit-test.h
|
|
config.status: executing depfiles commands
|
|
config.status: executing libtool commands
|
|
|
|
libmodbus 3.1.4
|
|
===============
|
|
|
|
prefix: /usr/local
|
|
sysconfdir: ${prefix}/etc
|
|
libdir: ${exec_prefix}/lib
|
|
includedir: ${prefix}/include
|
|
|
|
compiler: arm-angstrom-linux-gnueabi-gcc -std=gnu99
|
|
cflags: -march=armv5te -marm -mthumb-interwork -mtune=arm926ej-s --sysroot=/usr/local/oecore-i686/sysroots/armv5te-angstrom-linux-gnueabi
|
|
ldflags: --sysroot=/usr/local/oecore-i686/sysroots/armv5te-angstrom-linux-gnueabi
|
|
|
|
documentation: no
|
|
tests: yes
|
|
|
|
$ make
|
|
/usr/bin/make --no-print-directory all-recursive
|
|
Making all in src
|
|
CC modbus.lo
|
|
CC modbus-data.lo
|
|
CC modbus-rtu.lo
|
|
CC modbus-tcp.lo
|
|
CCLD libmodbus.la
|
|
Making all in doc
|
|
make[2]: Nothing to be done for `all'.
|
|
Making all in tests
|
|
(CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/sh /home/jcormier/projects/l138/libmodbus/build-aux/missing --run autoheader)
|
|
rm -f stamp-h2
|
|
touch unit-test.h.in
|
|
cd .. && /bin/sh ./config.status tests/unit-test.h
|
|
config.status: creating tests/unit-test.h
|
|
config.status: tests/unit-test.h is unchanged
|
|
/usr/bin/make all-am
|
|
CC bandwidth-server-one.o
|
|
CC bandwidth-server-many-up.o
|
|
CC bandwidth-client.o
|
|
CC random-test-client.o
|
|
CC random-test-server.o
|
|
CC unit-test-server.o
|
|
CC unit-test-client.o
|
|
CC version.o
|
|
CCLD bandwidth-server-one
|
|
CCLD bandwidth-client
|
|
CCLD random-test-server
|
|
CCLD unit-test-client
|
|
CCLD bandwidth-server-many-up
|
|
CCLD unit-test-server
|
|
CCLD random-test-client
|
|
CCLD version
|
|
|
|
real 0m4.725s
|
|
user 0m1.463s
|
|
sys 0m0.852s
|
|
$ make install DESTDIR=$PWD/ARM
|
|
Making install in src
|
|
test -z "/usr/local/lib" || /bin/mkdir -p "/home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib"
|
|
test -z "/usr/local/include/modbus" || /bin/mkdir -p "/home/jcormier/projects/l138/libmodbus/ARM/usr/local/include/modbus"
|
|
../arm-angstrom-linux-gnueabi-libtool --mode=install /usr/bin/install -c libmodbus.la '/home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib'
|
|
/usr/bin/install -c -m 644 modbus.h modbus-version.h modbus-rtu.h modbus-tcp.h '/home/jcormier/projects/l138/libmodbus/ARM/usr/local/include/modbus'
|
|
arm-angstrom-linux-gnueabi-libtool: install: /usr/bin/install -c .libs/libmodbus.so.5.1.0 /home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib/libmodbus.so.5.1.0
|
|
arm-angstrom-linux-gnueabi-libtool: install: (cd /home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib && { ln -s -f libmodbus.so.5.1.0 libmodbus.so.5 || { rm -f libmodbus.so.5 && ln -s libmodbus.so.5.1.0 libmodbus.so.5; }; })
|
|
arm-angstrom-linux-gnueabi-libtool: install: (cd /home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib && { ln -s -f libmodbus.so.5.1.0 libmodbus.so || { rm -f libmodbus.so && ln -s libmodbus.so.5.1.0 libmodbus.so; }; })
|
|
arm-angstrom-linux-gnueabi-libtool: install: /usr/bin/install -c .libs/libmodbus.lai /home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib/libmodbus.la
|
|
arm-angstrom-linux-gnueabi-libtool: install: warning: remember to run `arm-angstrom-linux-gnueabi-libtool --finish /usr/local/lib'
|
|
Making install in doc
|
|
make[2]: Nothing to be done for `install-exec-am'.
|
|
test -z "/usr/local/share/man/man3" || /bin/mkdir -p "/home/jcormier/projects/l138/libmodbus/ARM/usr/local/share/man/man3"
|
|
test -z "/usr/local/share/man/man7" || /bin/mkdir -p "/home/jcormier/projects/l138/libmodbus/ARM/usr/local/share/man/man7"
|
|
Making install in tests
|
|
make[2]: Nothing to be done for `install-exec-am'.
|
|
make[2]: Nothing to be done for `install-data-am'.
|
|
make[2]: Nothing to be done for `install-exec-am'.
|
|
test -z "/usr/local/share/doc/libmodbus" || /bin/mkdir -p "/home/jcormier/projects/l138/libmodbus/ARM/usr/local/share/doc/libmodbus"
|
|
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib/pkgconfig"
|
|
/usr/bin/install -c -m 644 libmodbus.pc '/home/jcormier/projects/l138/libmodbus/ARM/usr/local/lib/pkgconfig'
|
|
/usr/bin/install -c -m 644 MIGRATION README.md '/home/jcormier/projects/l138/libmodbus/ARM/usr/local/share/doc/libmodbus'
|
|
|
|
real 0m1.502s
|
|
user 0m0.072s
|
|
sys 0m0.106s
|
|
$ tree ARM/
|
|
ARM/
|
|
└── usr
|
|
└── local
|
|
├── include
|
|
│ └── modbus
|
|
│ ├── modbus.h
|
|
│ ├── modbus-rtu.h
|
|
│ ├── modbus-tcp.h
|
|
│ └── modbus-version.h
|
|
├── lib
|
|
│ ├── libmodbus.la
|
|
│ ├── libmodbus.so -> libmodbus.so.5.1.0
|
|
│ ├── libmodbus.so.5 -> libmodbus.so.5.1.0
|
|
│ ├── libmodbus.so.5.1.0
|
|
│ └── pkgconfig
|
|
│ └── libmodbus.pc
|
|
└── share
|
|
├── doc
|
|
│ └── libmodbus
|
|
│ ├── MIGRATION
|
|
│ └── README.md
|
|
└── man
|
|
├── man3
|
|
└── man7
|
|
|
|
12 directories, 11 files
|