Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 220681

Summary: media-sound/audacity-1.3.4-r3 fails to compile with sys-devel/libtool-2.2.4
Product: Gentoo Linux Reporter: Markus Rathgeb <maggu2810>
Component: [OLD] DevelopmentAssignee: Professional Audio Applications Maintainers <proaudio>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 212763    
Attachments: /var/tmp/portage/media-sound/audacity-1.3.4-r3/temp/build.log

Description Markus Rathgeb 2008-05-06 21:08:12 UTC
If you compile "media-sound/audacity-1.3.4-r3" with installed "sys-devel/libtool-2.2.4" the build process will fail.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =sys-devel/libtool-2.2.4
2. emerge -1 =media-sound/audacity-1.3.4-r3

Actual Results:  
i686-pc-linux-gnu-g++ -c -O2 -march=athlon64 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=athlon64 -pipe          -I/usr/include/soundtouch   -I../lib-src/libnyquist/nyx    -I../lib-src/allegro -I../lib-src/FileDialog -Wall -fno-strict-aliasing -I./include -I.  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DAUDACITY_DLL_API=''   xml/XMLFileReader.cpp -o xml/XMLFileReader.o
widgets/../../images/AudacityLogoWithName.xpm: At global scope:
widgets/../../images/AudacityLogoWithName.xpm:2: warning: ‘AudacityLogoWithName_xpm’ defined but not used
i686-pc-linux-gnu-g++ -c -O2 -march=athlon64 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=athlon64 -pipe          -I/usr/include/soundtouch   -I../lib-src/libnyquist/nyx    -I../lib-src/allegro -I../lib-src/FileDialog -Wall -fno-strict-aliasing -I./include -I.  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DAUDACITY_DLL_API=''   xml/XMLWriter.cpp -o xml/XMLWriter.o
i686-pc-linux-gnu-g++ -c -O2 -march=athlon64 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=athlon64 -pipe          -I/usr/include/soundtouch   -I../lib-src/libnyquist/nyx    -I../lib-src/allegro -I../lib-src/FileDialog -Wall -fno-strict-aliasing -I./include -I.  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DAUDACITY_DLL_API=''   effects/nyquist/Nyquist.cpp -o effects/nyquist/Nyquist.o
i686-pc-linux-gnu-g++ -c -O2 -march=athlon64 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=athlon64 -pipe          -I/usr/include/soundtouch   -I../lib-src/libnyquist/nyx    -I../lib-src/allegro -I../lib-src/FileDialog -Wall -fno-strict-aliasing -I./include -I.  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DAUDACITY_DLL_API=''   effects/nyquist/LoadNyquist.cpp -o effects/nyquist/LoadNyquist.o
effects/nyquist/Nyquist.cpp: In constructor ‘NyquistDialog::NyquistDialog(wxWindow*, wxWindowID, const wxString&, wxString, NyqControlArray*)’:
effects/nyquist/Nyquist.cpp:789: warning: comparison between signed and unsigned integer expressions
i686-pc-linux-gnu-g++ -c -O2 -march=athlon64 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=athlon64 -pipe          -I/usr/include/soundtouch   -I../lib-src/libnyquist/nyx    -I../lib-src/allegro -I../lib-src/FileDialog -Wall -fno-strict-aliasing -I./include -I.  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DAUDACITY_DLL_API=''   effects/ladspa/LoadLadspa.cpp -o effects/ladspa/LoadLadspa.o
i686-pc-linux-gnu-g++ -c -O2 -march=athlon64 -pipe -I../lib-src/portmixer/include -I../lib-src/portaudio-v19/include -O2 -march=athlon64 -pipe          -I/usr/include/soundtouch   -I../lib-src/libnyquist/nyx    -I../lib-src/allegro -I../lib-src/FileDialog -Wall -fno-strict-aliasing -I./include -I.  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DAUDACITY_DLL_API=''   effects/ladspa/LadspaEffect.cpp -o effects/ladspa/LadspaEffect.o
make[1]: *** No rule to make target `../lib-src/portaudio-v19/lib/libportaudio.a', needed by `../audacity'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-sound/audacity-1.3.4-r3/work/audacity-src-1.3.4-beta/src'
make: *** [audacity] Error 2
 * ERROR: media-sound/audacity-1.3.4-r3 failed.
 * Call stack:
 *     , line   49:  Called src_compile
 *             environment, line 2646:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-sound/audacity-1.3.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/audacity-1.3.4-r3/temp/environment'.

Expected Results:  
A successfully finished merge.
Comment 1 Markus Rathgeb 2008-05-06 21:10:13 UTC
I have prepared to add this to the "libtool-2.2 tracker" by a 
"Bug 220681 blocks:  	212763"
I hope this is right.
Comment 2 Rafał Mużyło 2008-05-06 23:16:11 UTC
This bug report is not really helpful, post the build.log and maybe config.log
so we could see something without having to build audacity by ourselves.
Comment 3 Markus Rathgeb 2008-05-07 07:54:19 UTC
Created attachment 152203 [details]
Comment 4 Markus Rathgeb 2008-05-07 07:54:54 UTC
Created attachment 152205 [details]
Comment 5 Markus Rathgeb 2008-05-07 07:55:16 UTC
Created attachment 152207 [details]
Comment 6 Markus Rathgeb 2008-05-07 07:56:46 UTC
Created attachment 152209 [details]
Comment 7 Markus Rathgeb 2008-05-07 07:57:10 UTC
Created attachment 152211 [details]
Comment 8 Markus Rathgeb 2008-05-07 07:57:31 UTC
Created attachment 152213 [details]
Comment 9 Markus Rathgeb 2008-05-07 07:57:50 UTC
Created attachment 152215 [details]
Comment 10 Markus Rathgeb 2008-05-07 08:12:11 UTC
../lib-src/portaudio-v19/lib/libportaudio.a is just a symlink to a non existing file

# ls -lah /var/tmp/portage/media-sound/audacity-1.3.4-r3/work/audacity-src-1.3.4-beta/lib-src/portaudio-v19/lib/
total 16K
drwxr-xr-x  3 root root 4.0K 2008-05-07 10:02 .
drwxr-xr-x 12 root root 4.0K 2008-05-07 10:02 ..
lrwxrwxrwx  1 root root   20 2008-05-07 10:02 libportaudio.a -> .libs/libportaudio.a
-rw-r--r--  1 root root  979 2008-05-07 10:02
drwxr-xr-x  2 root root 4.0K 2008-05-07 10:02 .libs

# ls -lah /var/tmp/portage/media-sound/audacity-1.3.4-r3/work/audacity-src-1.3.4-beta/lib-src/portaudio-v19/lib/.libs/
total 176K
drwxr-xr-x 2 root root 4.0K 2008-05-07 10:02 .
drwxr-xr-x 3 root root 4.0K 2008-05-07 10:02 ..
-rw-r--r-- 1 root root  676 2008-05-07 10:02 libportaudio.exp
lrwxrwxrwx 1 root root   18 2008-05-07 10:02 -> ../
-rw-r--r-- 1 root root  980 2008-05-07 10:02 libportaudio.lai
lrwxrwxrwx 1 root root   21 2008-05-07 10:02 ->
lrwxrwxrwx 1 root root   21 2008-05-07 10:02 ->
-rwxr-xr-x 1 root root 150K 2008-05-07 10:02
-rw-r--r-- 1 root root  734 2008-05-07 10:02 libportaudio.ver

Comment 11 Rafał Mużyło 2008-05-08 09:58:07 UTC
OK, so the answer should lie somewhere in lib-src/portaudio-v19, cause it builds only a shared lib, instead of the needed static. I'll try to investigate.
Comment 12 Rafał Mużyło 2008-05-08 11:31:24 UTC
This won't be pretty.
portaudio-v19 build process is incompatible with libtool 2.*
it uses SHARED_FLAGS variable, which does not create any conflit by itself, but it puts '-shared' in that variable (at least on linux) which 2.* series treat as 'don't build static lib'.
Actually, I think it was an upstream bug in the first place, cause if I read (of portaudio) correctly, the stuff they put in SHARED_FLAGS was added by libtool anyway.
I think that the correct fix would be making sure that SHARED_FLAGS is set to either empty or '-static' (as that would disable building shared lib, which we don't need).

And portaudio upstream should be notified about it.
Comment 13 Rafał Mużyło 2008-05-08 11:41:50 UTC
At least -fPIC was.
Comment 14 Markus Rathgeb 2008-05-08 13:09:01 UTC
So, should I report this to the upstream (or have you done it yet)?
Comment 15 Alexis Ballier gentoo-dev 2008-05-11 18:15:32 UTC
patched it with 1.3.5 bump