Hi,
when I try to compile pd test 11 alsa support with the latest Alsa 0.9.0beta 12. I run a:
./configure --enable-alsa make
make exits with this error:
cc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused
-Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
-DDL_OPEN -DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o
s_linux.c
In file included from s_linux.c:45:
/usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated,
use <alsa/asoundlib.h> instead.
make: *** [s_linux.o] Error 1
when I went back and ran make depend it exited with the same error as above. any clues ?
Thanks -Darwin
Looks like the alsa #include lines need to be changed, but I did
rm /usr/include/sys/asoundlib.h ln -s /usr/include/alsa/asoundlib.h /usr/include/sys/asoundlib.h
On Mon, Mar 04, 2002 at 12:22:33PM -0500, Darwin Marcus Johnson wrote:
Hi,
when I try to compile pd test 11 alsa support with the latest Alsa 0.9.0beta 12. I run a:
./configure --enable-alsa make
make exits with this error:
cc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
-DDL_OPEN -DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o s_linux.c In file included from s_linux.c:45: /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead. make: *** [s_linux.o] Error 1when I went back and ran make depend it exited with the same error as above. any clues ?
Thanks -Darwin
Ben Saylor hat gesagt: // Ben Saylor wrote:
Looks like the alsa #include lines need to be changed, but I did
rm /usr/include/sys/asoundlib.h ln -s /usr/include/alsa/asoundlib.h /usr/include/sys/asoundlib.h
Of course this works, but I think it's better to reflect the change in the applications.
The cleanest thing would be another autoconf-iguration that decides in advance, where the alsa headers are. But as they will stay in /usr/include/alsa now, I think it would be appropriate to edit s_linux.c and replace sys/asoundlib.h with alsa/asoundlib.h
It's only this location, where this little edit is necessary in PD. With other software it might be more complicated, and that's where your approach would save time.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\
On Monday 04 March 2002 07:02 pm, Frank Barknecht wrote:
Ben Saylor hat gesagt: // Ben Saylor wrote:
Looks like the alsa #include lines need to be changed, but I did
rm /usr/include/sys/asoundlib.h ln -s /usr/include/alsa/asoundlib.h /usr/include/sys/asoundlib.h
Of course this works, but I think it's better to reflect the change in the applications.
The cleanest thing would be another autoconf-iguration that decides in advance, where the alsa headers are. But as they will stay in /usr/include/alsa now, I think it would be appropriate to edit s_linux.c and replace sys/asoundlib.h with alsa/asoundlib.h
It's only this location, where this little edit is necessary in PD. With other software it might be more complicated, and that's where your approach would save time.
bye,
Thanks for both of your comments, I ended up doing a little sed to make it work. Command sequence below.
-Thanks again! Darwin
tar -xvzf pd-0.35-test11.linux.tar.gz && cd pd-0.35-test11/src && sed -e 's/sys/asoundlib.h/alsa/asoundlib.h/' s_linux.c >s_linux.c.tmp && mv s_linux.c.tmp s_linux.c && ./configure --enable-alsa && #make depend && make && make install
Darwin Marcus Johnson hat gesagt: // Darwin Marcus Johnson wrote:
Thanks for both of your comments, I ended up doing a little sed to make it work. Command sequence below.
tar -xvzf pd-0.35-test11.linux.tar.gz && cd pd-0.35-test11/src && sed -e 's/sys/asoundlib.h/alsa/asoundlib.h/' s_linux.c >s_linux.c.tmp && mv s_linux.c.tmp s_linux.c &&
Just a small comment: "#include sys/asoundlib.h" is twice in s_linux.c One is for the old ALSA 0.5, and there it should stay as "sys". But no harm, if only you build 0.9 ALSA.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\
Hi all,
I conclude from this that I really should change the include file now (this will make it not work with earlier ALSA versions but it seems that the old way fails with new ALSA because the makefile insists on failing whenever there's a warning on compilation.
cheers Miller
On Mon, Mar 04, 2002 at 12:22:33PM -0500, Darwin Marcus Johnson wrote:
Hi,
when I try to compile pd test 11 alsa support with the latest Alsa 0.9.0beta 12. I run a:
./configure --enable-alsa make
make exits with this error:
cc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
-DDL_OPEN -DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o s_linux.c In file included from s_linux.c:45: /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead. make: *** [s_linux.o] Error 1when I went back and ran make depend it exited with the same error as above. any clues ?
Thanks -Darwin
Hi,
It is probably a compiler issue
I noticed that with gcc 2.9.5 theses warnings are not treated as error. But gcc 2.9.6, wich comes with every new distros under the sun is more picky.
I believe that you can compile PD (alsa) with gcc 2.9.6 issuing "make -k" instead of make...
Linium
Le Mardi 12 Mars 2002 05:53, Miller Puckette a écrit :
Hi all,
I conclude from this that I really should change the include file now (this will make it not work with earlier ALSA versions but it seems that the old way fails with new ALSA because the makefile insists on failing whenever there's a warning on compilation.
cheers Miller
On Mon, Mar 04, 2002 at 12:22:33PM -0500, Darwin Marcus Johnson wrote:
Hi,
when I try to compile pd test 11 alsa support with the latest Alsa 0.9.0beta 12. I run a:
./configure --enable-alsa make
make exits with this error:
cc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DDL_OPEN -DALSA01 -DINSTALL_PREFIX="/usr/local" -I. -c -o ../obj/s_linux.o s_linux.c In file included from s_linux.c:45: /usr/include/sys/asoundlib.h:1: warning: #warning This header is deprecated, use <alsa/asoundlib.h> instead. make: *** [s_linux.o] Error 1
when I went back and ran make depend it exited with the same error as above. any clues ?
Thanks -Darwin
Linium hat gesagt: // Linium wrote:
It is probably a compiler issue
I noticed that with gcc 2.9.5 theses warnings are not treated as error. But gcc 2.9.6, wich comes with every new distros under the sun is more picky.
I believe that you can compile PD (alsa) with gcc 2.9.6 issuing "make -k" instead of make...
I always make a quick edit of the alsa include s_linux.c and all is well again.
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ / / __ \ ___\
/ / / ____/ / / / // ____// /\ \ ___\____ \
/_/ /_____/ /_/ /_//_____// / \ \_____\_____
/_/ _\