gusrc / darkice-svn

Automatically exported from code.google.com/p/darkice
0 stars 0 forks source link

configure script fails in multiarch #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo apt-get build-dep darkice
2. svn checkout http://darkice.googlecode.com/svn/darkice/trunk/ 
darkice-read-only
3. cd darkice-read-only/
4. ./autogen.sh

What is the expected output? What do you see instead?
This is the output. With a lot of not found warnings. The expected is to found 
them.

checking for lame library at /usr ... found at /usr 
checking for vorbis libraries at /usr ... configure: WARNING: not found, 
building without Ogg Vorbis
checking for faac library at /usr ... found at /usr 
checking for aacplus library at /usr ... configure: WARNING: not found, 
building without aacplus
checking for twolame library at /usr ... found at /usr 
checking for alsa libraries at /usr ... configure: WARNING: not found, building 
without ALSA support
checking for pulseaudio libraries at /usr ... configure: WARNING: not found, 
building without PULSEAUDIO support
checking for jack libraries at /usr ... configure: WARNING: not found, building 
without JACK support
checking for samplerate libraries at /usr ... configure: WARNING: not found, 
building libsamplerate support

What version of the product are you using? On what operating system?

Ubuntu 11.10, that comes with multiarch support enabled by default. Latest svn 
update

Please provide any additional information below.

I trace the problem back to file acinclude.m4 and the function 
AC_DEFUN([LA_SEARCH_LIB].
This function expects the libraries to be in $prefix/lib, but with multiarch 
they are in $prefix/lib/x86_64-linux-gnu

Original issue reported on code.google.com by flip.ro...@gmail.com on 19 Jan 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Confirmed this bug.
And temporary use the options:
./configure --with-alsa-prefix=/usr/lib/i386-linux-gnu 
--with-samplerate-prefix=/usr/lib/i386-linux-gnu 
--with-jack-prefix=/usr/lib/i386-linux-gnu 
--with-lame-prefix=/usr/lib/i386-linux-gnu 
--with-pulseaudio-prefix=/usr/lib/i386-linux-gnu 
-with-vorbis-prefix=/usr/lib/i386-linux-gnu

or for 64bit:
/usr/lib/x86_64-linux-gnu

Original comment by lucka...@gmail.com on 3 Apr 2012 at 10:33

GoogleCodeExporter commented 9 years ago
I tried this and everything worked except for pulse on Ubuntu 12.04 x64. Any 
idea where this is?

checking for pulseaudio libraries at /usr/lib/x86_64-linux-gnu ... configure: 
WARNING: not found, building without PULSEAUDIO support

Original comment by jackiegl...@gmail.com on 27 Jun 2012 at 7:47

GoogleCodeExporter commented 9 years ago
That configure with a lot of arguments doesn't work for me. What works is 
changing acinclude.m4 :

index c0adc6e..dc3e16f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -43,7 +43,7 @@ dnl  by Florian Bomers
 dnl-----------------------------------------------------------------------------
 AC_DEFUN([LA_SEARCH_LIB],[
   dnl look for lib
-  LA_SEARCH_FILE($1, $3, $5 $5/lib64 $5/lib )
+  LA_SEARCH_FILE($1, $3, $5 $5/lib64 $5/lib $5/lib/x86_64-linux-gnu )
   dnl look for header.
   LA_SEARCH_FILE($2, $4, $5 $5/include )
   if test ".$1" = "." || test ".$2" = "."; then

Original comment by flip.ro...@gmail.com on 28 Jun 2012 at 2:11

GoogleCodeExporter commented 9 years ago
Please also add $5/lib/i386-linux-gnu  to the line
LA_SEARCH_FILE($1, $3, $5 $5/lib64 $5/lib $5/lib/x86_64-linux-gnu )

(at least to compile on 32 bit Ubuntu 12.04.2)

Cheers!

Original comment by sgo...@gmail.com on 21 Jun 2013 at 5:40