Wireshark-dev: Re: [Wireshark-dev] Autogen.sh error on ubuntu
From: Balint Reczey <balint.reczey@xxxxxxxxxxxx>
Date: Sat, 29 Aug 2009 11:29:29 +0200
I think the easiest way to start development on Debian or any derivative is:

(0: remove everything that may interfere with the build from /usr/local)
sudo apt-get build-dep wireshark
./autogen.sh
./configure
make

Cheers,
Balint

Swapnil Barai (sbarai) wrote:
Ok, I can reinstall the packages using apt-get if it makes difference.

The output of "sh -x ./aclocal-flags" :

+ aclocal --print-ac-dir
+ aclocal_dir=/usr/local/share/aclocal
+ pkg-config --variable=prefix glib-2.0
+ glib_prefix=/usr
+ [ -z /usr ]
+ glib_aclocal_dir=/usr/share/aclocal
+ dirname ./aclocal-flags
+ ac_missing_dir=.
+ echo -I ./aclocal-fallback
+ tr -d \012
+ tr -d \015
-I ./aclocal-fallback+ [ ! -z /usr/local/share/aclocal -a ! -z
/usr/share/aclocal -a /usr/local/share/aclocal != /usr/share/aclocal ]
+ echo  -I /usr/share/aclocal
+ tr -d \012
+ tr -d \015
 -I /usr/share/aclocal+ echo

+ exit 0


On Aug 28, 2009, at 12:28 PM, Swapnil Barai (sbarai) wrote:

That's true. However as mentioned on
http://wiki.wireshark.org/BuildingAndInstalling I wanted to install
automake in the same prefix as libtool.  Sudo apt-get install automake
was putting it in a diff dir.

That item applies only if you're installing libtool from source because the version that comes with your OS is 1.5.x and less than 1.5.10 (as it notes, there's a bug in 1.5, fixed in 1.5.10) - *IF* you're installing libtool from source for that reason, *THEN* you have to install automake and autoconf in the same prefix.

It doesn't apply to versions that come with the OS - which includes, for Debian and derivatives of it such as Ubuntu, versions installed with an apt-get from the distribution's repository - so if you do an "apt-get install" of automake, autoconf, and libtool, that should be OK. (If it's not, that's a bug in your distribution.)

This is the output:

What's the output of "sh -x ./aclocal-flags"?