Bug 43110 - --with-alsa do not compile alsa support
Summary: --with-alsa do not compile alsa support
Status: RESOLVED WORKSFORME
Alias: None
Product: arts
Classification: Unmaintained
Component: artsd (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Westerfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-26 21:48 UTC by Gioele Barabucci
Modified: 2003-11-09 16:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gioele Barabucci 2002-05-26 21:44:31 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           artsd
Version:           KDE 3.0.5 CVS/CVSup/Snapshot
Severity:          normal
Installed from:    Compiled sources
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

The whole story:
I've alsa 0.9 without oss support.
I've compiled CVS arts with --enable-alsa.

grep "ALSA" config.h -B 1 -A 1


/* Define if you have the <alsa/asoundlib.h> header file. */
#define HAVE_ALSA_ASOUNDLIB_H 1

/* Define if you have libasound.so.1 (required for ALSA 0.5.x support) */
/* #undef HAVE_LIBASOUND */

/* Define if you have libasound.so.2 (required for ALSA 0.9.x support) */
/* #undef HAVE_LIBASOUND2 */

and in config.log

configure:25179: checking for snd_seq_create_simple_port in -lasound
configure:25206: gcc -o conftest -ansi -W -Wall -pedantic -Wshadow -Wpointer-ari
th -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2  -
O3 -march=i686  -DQT_THREAD_SUPPORT  -D_REENTRANT -L/usr/X11R6/lib -L/usr/local/
qt3/lib -L${exec_prefix}/lib   conftest.c -lasound   >&5
/lib/libm.so.6: undefined reference to `atexit'

so the function is there but that stupid atexit breaks the compilation of the test...

Once that is solved alsa would be in...

(Submitted via bugs.kde.org)
Comment 1 Gioele Barabucci 2002-09-27 13:11:46 UTC
It will work is AC_LANG(C++) is selected...  
Shoudn't this test (and the others) be made with C++ language set? ALSA is C 
code, but we're compiling with C++ (and without extern "C"  { #include 
<alsa/asoundlib.h> }).  
Comment 2 Matt Rogers 2003-11-09 16:57:24 UTC
this looks like an system problem since if you have Alsa 0.9.x HAVE_LIBASOUND2 should be defined but it's not. Even without using --enable-alsa, on my system alsa is detected fine.