Cannot build SVN HEAD on Debian 5 Lenny

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
edgar-rft
Posts: 347
Joined: Sun Jan 20, 2008 12:03 am
Operating System: Please select

Cannot build SVN HEAD on Debian 5 Lenny

Post by edgar-rft » Mon Jan 31, 2011 5:21 pm

Since quite a while (approx half a year) I have problems with building Audacity SVN HEAD on Debian 5 Lenny, especially with libsndfile.

The current SVN HEAD ./configure aborts with the following error:

cd .. && /bin/sh /home/edgar/Downloads/audacity/audacity-2011-01-31/lib-src/libsndfile/Cfg/missing --run automake-1.10 --gnu tests/Makefile
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
tests/Makefile.am:3: ENABLE_TEST_COVERAGE does not appear in AM_CONDITIONAL
tests/Makefile.am:178: LINUX_MINGW_CROSS_TEST does not appear in AM_CONDITIONAL
tests/Makefile.am:220: ENABLE_TEST_COVERAGE does not appear in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am: The usual way to define `am__fastdepCC' is to add `AC_PROG_CC'
/usr/share/automake-1.10/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.10/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am: The usual way to define `AMDEP' is to add one of the compiler tests
/usr/share/automake-1.10/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_CXX, AC_PROG_OBJC,
/usr/share/automake-1.10/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.10/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.10/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am: The usual way to define `am__fastdepCXX' is to add `AC_PROG_CXX'
/usr/share/automake-1.10/am/depend2.am: to `configure.ac' and run `aclocal' and `autoconf' again.
make: *** [Makefile.in] Error 1
configure: error: ./configure failed for lib-src/libsndfile

auotools (including automake-1.10) are installed. Anybody an idea what else the reason could be?

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: Cannot build SVN HEAD on Debian 5 Lenny

Post by bgravato » Tue Feb 01, 2011 1:12 am

I've been able to build svn head on debian, but my system is a mix of lenny, squeeze and sid...

I can try to build it on a pure lenny system, but squeeze shouldn't take much longer to come out so if it builds on squeeze I think it should be ok for the next audacity release.
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

edgar-rft
Posts: 347
Joined: Sun Jan 20, 2008 12:03 am
Operating System: Please select

Re: Cannot build SVN HEAD on Debian 5 Lenny

Post by edgar-rft » Tue Feb 01, 2011 2:24 am

I can build on Squeeze (32-bit) without problems, it's only Lenny (32-bit) that causes problems, and always with linsndfile, the strange thing is that sometimes it works and sometimes not. Examples: In November 2010 the build on Lenny failed for similar reasons. Stupidly I can't remember the exact error, but ./configure complained something about automake-1.10 to be not installed. But automake-1.10 *was* installed. A few days later (new SVN checkout) it suddenly worked. In December 2010 ./configure failed again with libsndfile, and now again in January 2011.

The main question is whether anybody has similar experiences or if there's something missing on my system. I'm aware that the ./configure error text from above is probably not enough information, I can give more info on request (the full ./configure transcript is several hundred lines long).

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: Cannot build SVN HEAD on Debian 5 Lenny

Post by bgravato » Tue Feb 01, 2011 3:16 am

I don't remember if I had any trouble the first time I tried to build svn head. The last few times I compiled it all went fine... but like I said my system is a big mess of lenny/squeeze/sid packages...

I can set up a clean pure-lenny virtualbox image tomorrow and see if I get into any trouble...

I'm afraid that probably no one else here is using debian (among the more active users... Steve and Gale are both on ubuntu).
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

edgar-rft
Posts: 347
Joined: Sun Jan 20, 2008 12:03 am
Operating System: Please select

Re: Cannot build SVN HEAD on Debian 5 Lenny

Post by edgar-rft » Tue Feb 01, 2011 12:37 pm

AAAARRRRRGGGGHH!!!! Audacity once again nerds me to death.

I've tried to compile Audacity on Lenny (32-bit) for three days now (with several svn checkouts), and every time it fails with the libsndfile error from above. Now on the third day (and again a new svn checkout) it suddenly works.

If anybody using Debian Lenny reads this please tell me if there had ever been similar problems with libsndfile and automake.

Thanks to bgravato, at the moment it works for me, but I'm afraid that I'll be back here as soon as I try to compile Audacity on Lenny the next time.

I never had problems with libndfile or automake on Lenny with other audio software. Audacity uses its own copy of libsndfile what makes me assume that there must be something wrong with Audacity's libsndfile ./configure setup. Unfortunately I have no idea what exactly the reason could be.

bgravato
Posts: 2098
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Linux Debian

Re: Cannot build SVN HEAD on Debian 5 Lenny

Post by bgravato » Wed Feb 02, 2011 4:25 am

I just finished installing a pure lenny system on a virtualbox image.

I installed the base system from netinst cd image (32 bits) release 5.08 and the rest from official repositories mirrors.

During setup I installed only the standard system (no dekstop environment).

Then I ran:

Code: Select all

apt-get build-dep audacity
This installed nearly a couple hundred packages including build-essential, etc... but it didn't install automake. It did install libsndfile1 and libsndfile1-dev. It also installed wxwidgets 2.6 rather than 2.8. All of this is not an audacity problem of course it's just how the debian dependencies are set for the debian package of audacity (1.3.12). I just ran the above command in the hope to easily install all the necessary packages for building audacity.

I installed subversion and I got audacity source from svn with:

Code: Select all

svn checkout http://audacity.googlecode.com/svn/audacity-src/trunk/ audacity-read-only
as stated here: http://audacityteam.org/community/developers#svn
I got revision 10896.

I tried to run configure at this point, it obviously failed complaining about wxwidgets being 2.6 and not 2.8. So I installed wxwidgets 2.8 (from debian repos).

Code: Select all

apt-get install libwxgtk2.8-dev
update-alternatives --config wx-config
And I selected gtk2-unicode-release-2.8 alternative.

I ran configure again and it executed without errors.
I ran make and it apparently built audacity binary without errors.
All this was without automake. No version of automake is installed (and apparently not needed...).

I didn't run the binary because I don't have X installed yet on the virtualbox image.

Shall I try to compile it with automake installed?
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

Locked