sys/asoundlib.h:1: This header is deprecated
On a SuSE Linux 8.0 box[1] I'm getting the following #warning a few times while building the current CVS version of Wine: In file included from alsa.h:23, from audio.c:46: /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead. Gerald -- Gerald "Jerry" pfeifer(a)dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
On Sun, 4 Aug 2002, Gerald Pfeifer wrote:
On a SuSE Linux 8.0 box[1] I'm getting the following #warning a few times while building the current CVS version of Wine:
In file included from alsa.h:23, from audio.c:46: /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead.
Hi Gerald, sys/asoundlib.h is the old 0.5 version header, and it seems that SuSE has added it just for backward compatibility. Can you try the attached patch? I had prepared it few days ago but I've forgot to submit it...
Gerald
bye, /pietrobo -- Stud. Marco Pietrobono | Murphy's Law: if something could v. del Calice, 39 - 00178 ROMA | go wrong, it does. Tel. +39.6.7186329 0339.7410893 | Legge di Murphy: se qualcosa può http://www.pietrobo.com | andar male, lo farà. ------------------------------------------------------------------------ Strange game. The only winning move is not to play. What about a nice play of chess ?
On Sun, 4 Aug 2002, Gerald Pfeifer wrote:
On a SuSE Linux 8.0 box[1] I'm getting the following #warning a few times while building the current CVS version of Wine:
In file included from alsa.h:23, from audio.c:46: /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead. Hi Gerald, sys/asoundlib.h is the old 0.5 version header, and it seems that SuSE has added it just for backward compatibility.
Can you try the attached patch? I had prepared it few days ago but I've forgot to submit it...
The direction of your patch is a good one, but there are some problems: Index: dlls/winmm/winealsa/alsa.h =================================================================== #ifdef HAVE_SYS_ASOUNDLIB_H #include <sys/asoundlib.h> #endif +#ifdef HAVE_ALSA_ASOUNDLIB_H +#include <alsa/asoundlib.h> +#endif If both alsa/asoundlib.h and sys/asoundlib.h exist, only one of them should be #included, namely alsa/asoundlib.h. sys/asoundlib.h should be ignored in this case. Index: dlls/winmm/winealsa/alsa.h =================================================================== @@ -561,7 +561,11 @@ dnl **** Check for ALSA **** AC_SUBST(ALSALIBS,"") AC_CHECK_HEADERS(sys/asoundlib.h) -if test "$ac_cv_header_sys_asoundlib_h" = "yes" +if test "$ac_cv_header_sys_asoundlib_h" = "no" +then + AC_CHECK_HEADERS(alsa/asoundlib.h) +fi +if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes" Similiar here: sys/asoundlib.h should be checked only if alsa/asoundlib.h does not exists. Gerald PS: Are you going to submit an updated patch? (I'm currently not subscribed to wine-devel; I'd appreciate explicit Cc:s.)
participants (2)
-
Gerald Pfeifer -
Marco Pietrobono