Build fails on CentOS 5.5

Bug #886901 reported by Didier Barvaux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rohc
Status tracked in Rohc-main
1.2.x
Fix Released
Medium
Didier Barvaux
1.3.x
Invalid
Undecided
Didier Barvaux
Rohc-main
Invalid
Undecided
Didier Barvaux

Bug Description

Someone reported me that the library fails to build on CentOS 5.5 with the configure script. It builds fine with the autogen.sh script if the libtool package is installed.

Also, the --enable-rohc-stats option - described in FAQ #1140 - prints a warning.

$ ./configure --prefix=/usr/local/rohc-1.3.1 --enable-rohc-debug=3 --enable-rohc-stats
configure: WARNING: unrecognized options: --enable-rohc-stats
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... 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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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) 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 for ANSI C header files... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking netinet/ip.h usability... yes
checking netinet/ip.h presence... yes
checking for netinet/ip.h... yes
checking netinet/udp.h usability... yes
checking netinet/udp.h presence... yes
checking for netinet/udp.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for vprintf... yes
checking for _doprnt... no
checking for malloc... yes
checking for calloc... yes
checking for free... yes
checking for memcpy... yes
checking for memcmp... yes
checking for bzero... yes
checking for ceil... no
checking for pcap_open_offline in -lpcap... yes
checking for pcap_datalink in -lpcap... yes
checking for pcap_next in -lpcap... yes
checking for pcap_close in -lpcap... yes
checking for pcap_dump_open in -lpcap... yes
checking for pcap_dump in -lpcap... yes
checking for pcap_dump_close in -lpcap... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/comp/Makefile
config.status: creating src/decomp/Makefile
config.status: creating test/Makefile
config.status: creating app/Makefile
config.status: creating app/tunnel/Makefile
config.status: creating rohc.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --enable-rohc-stats

$ make all
cd . && /bin/sh /dvlpt/ROHC_library/rohc-1.3.1/missing --run automake-1.11 --gnu
/dvlpt/ROHC_library/rohc-1.3.1/missing: line 52: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system. You should only
need it if you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
          You might want to install the `Automake' and `Perl' packages.
          Grab them from any GNU archive site.
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh
/dvlpt/ROHC_library/rohc-1.3.1/missing --run autoconf
configure.ac:10: error: possibly undefined macro: AC_DISABLE_STATIC
       If this token and others are legitimate, please use
m4_pattern_allow. See the Autoconf documentation.
configure.ac:15: error: possibly undefined macro: AC_PROG_LIBTOOL
make: *** [configure] Error 1

$ which automake
/usr/bin/automake

$ /usr/bin/automake --version
automake (GNU automake) 1.9.6
Written by Tom Tromey <email address hidden>.

Copyright 2005 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.

Revision history for this message
Didier Barvaux (didier-barvaux) wrote :

The warning caused by the --enable-rohc-stats option is confirmed on the 1.3.x branch. FAQ #1140 was updated to mention that this option is for versions >= 1.4.0.

tags: added: configure library
Revision history for this message
Didier Barvaux (didier-barvaux) wrote :

Trunk at revision 328 is not affected by the problem. The test was performed on a CentOS 5.5 system with a source tarball created with 'make dist'.

Revision history for this message
Didier Barvaux (didier-barvaux) wrote :

Release 1.2.2 does not provide a configure script in its tarball. It is a problem. Great care shall be taken for the 1.2.3 release to use 'make dist' to create the release tarball. A test with 'make dist' on the 1.2.x branch at revision 154 is successful. The test was performed on a CentOS 5.5 system.

Revision history for this message
Didier Barvaux (didier-barvaux) wrote :

Both version 1.3.1 and branch 1.3.x at revision 183 are not affected by the problem. The test was performed on a CentOS 5.5 system with a source tarball created with 'make dist'.

The problem probably occurred because the configure.ac or some Makefile.am files were modified. In this case, autotools are required and must be installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.