libtool mismatch while building

Ankur Sinha sanjay.ankur at gmail.com
Thu Nov 25 17:16:51 UTC 2010


On Thu, 2010-11-25 at 16:02 +0100, Andreas Schwab wrote:
> Ankur Sinha <sanjay.ankur at gmail.com> writes:
> 
> > Hello,
> >
> > How does one handle this error with libtool mismatches?
> >
> > I've run autoreconf, and aclocal && autoconf && automake, but it
> > persists. (I don't know much about this stuff)
> 
> Run "autoreconf -fi".
> 
> Andreas.
> 

Hello, 

This is the error I receive while building the package (which was
corrected by using autoreconf -fi). How should I change my spec[1] to
work around the error please?

Thanks,
Ankur

[1]http://ankursinha.fedorapeople.org/xorg-input-wizardpen/xorg-input-wizardpen.spec


> [ankurGuest at 070905042 SPECS]$ rpmbuild -ba xorg-input-wizardpen.spec 
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fevWVL
> + umask 022
> + cd /home/ankurGuest/rpmbuild/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /home/ankurGuest/rpmbuild/BUILD
> + rm -rf xorg-input-wizardpen-0.8.0
> + /bin/tar -xf -
> + /usr/bin/gzip -dc /home/ankurGuest/rpmbuild/SOURCES/xorg-input-wizardpen-0.8.0.tar.gz
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd xorg-input-wizardpen-0.8.0
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lVf0Aw
> + umask 022
> + cd /home/ankurGuest/rpmbuild/BUILD
> + cd xorg-input-wizardpen-0.8.0
> + LANG=C
> + export LANG
> + unset DISPLAY
> + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
> + export CFLAGS
> + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables'
> + export CXXFLAGS
> + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
> + export FFLAGS
> + ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
> 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 whether to enable maintainer-specific portions of Makefiles... no
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for style of include used by make... GNU
> checking for i686-pc-linux-gnu-gcc... no
> 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 dependency style of gcc... none
> 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... 1966080
> 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 i686-pc-linux-gnu-objdump... no
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for i686-pc-linux-gnu-ar... no
> checking for ar... ar
> checking for i686-pc-linux-gnu-strip... no
> checking for strip... strip
> checking for i686-pc-linux-gnu-ranlib... no
> 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... no
> 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 i686-pc-linux-gnu-gcc... gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking dependency style of gcc... (cached) none
> checking for i686-pc-linux-gnu-pkg-config... no
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking if RANDR is defined... yes
> checking if XINPUT is defined... yes
> checking for XORG... yes
> checking for ANSI C header files... (cached) yes
> checking linux/input.h usability... yes
> checking linux/input.h presence... yes
> checking for linux/input.h... yes
> checking sysfs/libsysfs.h usability... no
> checking sysfs/libsysfs.h presence... no
> checking for sysfs/libsysfs.h... no
> ./configure: line 11660: XORG_MANPAGE_SECTIONS: command not found
> ./configure: line 11661: XORG_RELEASE_VERSION: command not found
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating man/Makefile
> config.status: creating udev/Makefile
> config.status: creating hal/Makefile
> config.status: creating xorg/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> + make
> make  all-recursive
> make[1]: Entering directory `/home/ankurGuest/rpmbuild/BUILD/xorg-input-wizardpen-0.8.0'
> Making all in src
> make[2]: Entering directory `/home/ankurGuest/rpmbuild/BUILD/xorg-input-wizardpen-0.8.0/src'
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1    -I../src -c -o wizardpen.lo wizardpen.c
> libtool: Version mismatch error.  This is libtool 2.2.6 Debian-2.2.6a-4, but the
> libtool: definition of this LT_INIT comes from libtool 2.2.6b.
> libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
> libtool: and run autoconf again.
> make[2]: *** [wizardpen.lo] Error 63
> make[2]: Leaving directory `/home/ankurGuest/rpmbuild/BUILD/xorg-input-wizardpen-0.8.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/ankurGuest/rpmbuild/BUILD/xorg-input-wizardpen-0.8.0'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.lVf0Aw (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.lVf0Aw (%build)



More information about the devel mailing list