LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-11-2010, 12:58 AM   #1
grisu42
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Rep: Reputation: 1
Question Can't compile ALSA with USB-support in Scientific Linux


Okey, my first post, so a friendly "HELLO WORLD!" from my side first

I've got a problem compiling the current ALSA-Drivers (1.0.22.1) for my Scientific Linux
uname -a
Linux comp_854 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 00:57:09 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

./configure --with-cards=emu20k1,usb-audio --with-sequencer=yes works fine but the make output bitches with
Quote:
In file included from /home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbaudio.inc:16,
from /home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbaudio.c:1:
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:20: error: redefinition of ‘usb_endpoint_dir_in’
include/linux/usb.h:474: error: previous definition of ‘usb_endpoint_dir_in’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:26: error: redefinition of ‘usb_endpoint_dir_out’
include/linux/usb.h:485: error: previous definition of ‘usb_endpoint_dir_out’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:32: error: redefinition of ‘usb_endpoint_xfer_bulk’
include/linux/usb.h:496: error: previous definition of ‘usb_endpoint_xfer_bulk’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:39: error: redefinition of ‘usb_endpoint_xfer_int’
include/linux/usb.h:521: error: previous definition of ‘usb_endpoint_xfer_int’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:46: error: redefinition of ‘usb_endpoint_xfer_isoc’
include/linux/usb.h:534: error: previous definition of ‘usb_endpoint_xfer_isoc’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:53: error: redefinition of ‘usb_endpoint_is_bulk_in’
include/linux/usb.h:547: error: previous definition of ‘usb_endpoint_is_bulk_in’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:59: error: redefinition of ‘usb_endpoint_is_bulk_out’
include/linux/usb.h:559: error: previous definition of ‘usb_endpoint_is_bulk_out’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:65: error: redefinition of ‘usb_endpoint_is_int_in’
include/linux/usb.h:571: error: previous definition of ‘usb_endpoint_is_int_in’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:71: error: redefinition of ‘usb_endpoint_is_int_out’
include/linux/usb.h:583: error: previous definition of ‘usb_endpoint_is_int_out’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:77: error: redefinition of ‘usb_endpoint_is_isoc_in’
include/linux/usb.h:595: error: previous definition of ‘usb_endpoint_is_isoc_in’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:83: error: redefinition of ‘usb_endpoint_is_isoc_out’
include/linux/usb.h:607: error: previous definition of ‘usb_endpoint_is_isoc_out’ was here
/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbcompat.h:91: error: redefinition of ‘usb_endpoint_xfer_control’
include/linux/usb.h:508: error: previous definition of ‘usb_endpoint_xfer_control’ was here
make[3]: *** [/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb/usbaudio.o] Error 1
make[2]: *** [/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1/usb] Error 2
make[1]: *** [_module_/home/wizard/Download/alsa/alsa-1.0.22/alsa-driver-1.0.22.1] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.11.1.el5-x86_64'
make: *** [compile] Error 2

Disabling the usb-audio device according to
./configure --with-cards=emu20k1,usb-audio=n --with-sequencer=yes
works. Also the make and the make install (as root) seems to compile without complain, but I need the usb-audio device (webcam-mic) ...
 
Old 03-11-2010, 03:51 AM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Can you not just compile it into the kernel? Which is something you may want to look at anyway, you're using quite an old kernel there, a few years old.
 
Old 03-11-2010, 05:50 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,625

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
' kernel 2.6.18-164.11.1.el5 ' is the latest : 21-Jan-2010

But may be the upcoming kernel 2.6.18-186.el5 has it → →
EL 5.5 : Soon to come, with even more new drivers ..
http://distrowatch.com/index.php?dis...h=all&year=all
http://www.desktoplinux.com/news/NS6...09.html?kc=rss

.....
 
Old 03-11-2010, 05:54 AM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Oh, I assumed RHEL/ RHEL derivatives be on the same Kernel development cycle as others, I thought 2.6.18 was an old one.

Balls, there goes my quick answer
 
Old 03-11-2010, 07:35 AM   #5
grisu42
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 1
Well, yes, the beta testing period is scheduled to continue through March 16 ... Maybe this solves the problem.
Thanks for the replies!

In fact, I have an idea. Maybe in the late evening I get some time to try something ...
 
Old 03-11-2010, 08:13 AM   #6
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Okay, are you compiling from a vendor specific tarball? Or the one from the alsa website?
 
Old 03-12-2010, 12:29 AM   #7
grisu42
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by jamescondron View Post
Okay, are you compiling from a vendor specific tarball? Or the one from the alsa website?
Directly from http://www.alsa-project.org.
 
Old 03-13-2010, 02:31 AM   #8
grisu42
LQ Newbie
 
Registered: Mar 2010
Posts: 6

Original Poster
Rep: Reputation: 1
Okey, tried to outcommend the redefination section (I think the problem is due to the different kernel version!) and to compile.
Compilation successfull, but the sound device is still not working ...


Maybe I wait for a kernel update ...
 
  


Reply

Tags
el55


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer won't compile with alsa support bruno buys Debian 6 08-23-2009 12:35 PM
linux boot cd with cciss support and USB 2.0 support zerobane Linux - Software 0 03-21-2006 10:03 PM
ALSA support for MAudio, Recording in linux, and tweaks and general questions. Crashlander42 Linux - Newbie 1 03-19-2004 03:41 AM
USB mouse thru a USB modem & linux support zeppelin Slackware 7 07-29-2003 03:43 PM


All times are GMT -5. The time now is 01:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration