autogen.sh failed on CentOS-4.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmodbus |
Fix Released
|
Low
|
Stéphane Raimbault |
Bug Description
The Linux installed in my PC is CentOS-4.6 and CentOS-5.3. Both of them come with "autoconf 2.59", which can not process the configure script generated by "autoconf 2.63" of my Cygwin laptop.
* add "--force" parameter to autoreconf (autogen.sh)
I then got the following error:
src/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:1:
src/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
autoreconf: automake failed with exit status: 1
* replace AC_PROG_RANLIB with AC_PROG_LIBTOOL (configure.ac)
configure.ac:33: error: possibly undefined macro: AC_TYPE_UINT16_T
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
=> It seems, that these macros were introduced in autoconf version 2.59-5 (or 2.59c)
(https:/
(http://
* comment out AC_TYPE_UINT*_T (configure.ac)
* ./autogen.sh; configure; make;
unit-test-slave and unit-test-master ... passed on CentOS-4.6
unit-test-slave and unit-test-master ... passed on Cygwin
Attached is my patch toward autogen.sh and configure.ac
* WARNING: the INSTALL file will be overwrite after executing autogen.sh
Related branches
Changed in libmodbus: | |
status: | In Progress → Fix Committed |
Changed in libmodbus: | |
status: | Fix Committed → Fix Released |
update autoconf settings for CentOS 4 and CentOS 5
files: autogen.sh and configure.ac