This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

libtool complains “version mismatch”

0

Hello again,

1.6.3 build system fails under my distro. (related to libtool ?)

here is the output from make:

../libtool: line 466: CDPATH: command not found
../libtool: line 1144: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6b Debian-2.2.6b-2ubuntu1, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b Debian-2.2.6b-2ubuntu1
libtool: and run autoconf again.
make[2]: *** [mpeg-audio.lo] Error 1
make[2]: Leaving directory `/home/worker/wireshark/wireshark-1.6.3/wsutil'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/worker/wireshark/wireshark-1.6.3'
make: *** [all] Error 2

I reverted to the 1.4.10 version and the build went OK.

Since I'm not used to the GNU Autoconf, Automake, and Libtool family at all, I can't fix the build process...

Maybe Wireshark team will want to fix this...

hints:

  • I run a 2.6.17 kernel from Mandriva,
  • with glib version 2.0.0.1200.11 installed
  • with libtool 2.4.2
  • 2 Patches were applied from http://wiki.wireshark.org/Development/Roadmap "Rev 38045, Rev 38046 - Bug 6540 - Don't use g_mutex without having threads."

asked 15 Nov '11, 08:57

wirebilly's gravatar image

wirebilly
6224
accept rate: 66%

edited 15 Nov '11, 09:03


One Answer:

1

./autogen.sh && ./configure && make

That's the chain of commands you need to execute ... as documented in section 3.5.1 of the developer's guide.

answered 15 Nov '11, 12:01

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

edited 15 Nov '11, 18:38

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142

If you're building from a source tarball, and have modified nothing in the source tarball, the ./autogen.sh should not be necessary; a source tarball is intended to Just Work with ./configure and make - source tarballs are primarily intended to be used to install Wireshark if you don't just have a binary distribution to install.

If you're not just building from the source in the tarball, you should probably build from Subversion on the trunk or the appropriate branch, in which case you do need to do ./autogen.sh after checking the tree out from Subversion.

(15 Nov '11, 23:59) Guy Harris ♦♦

Right. Thank you very much.

(16 Nov '11, 06:19) wirebilly