LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2006, 12:29 AM   #1
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Rep: Reputation: 0
alsa-utils on fc4 not compiling


OK, I'm running 2.6.16-1.2096_FC4 (Fedora Core 4) on an AMD x64 system. After doing a yum install on alsa-drivers and alsa-kmdl for this kernel, I kept getting errors when I would login and no sound was coming out to the speakers. After much searching, I realized I was going to need to recompile these from scratch and not download pre-compiled versions. So I started by downloading from the alsa website the following packages:

alsa-driver**
alsa-lib**
alsa-utils**

All are version 1.0.11rc5. I can compile alsa-driver and alsa-lib no problem, but when I try to compile alsa-utils, I get the following error:

[root@localhost alsa-utils-1.0.11rc5]# make
Making all in include
make[1]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/include'
make all-am
make[2]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/include'
make[2]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/include'
make[1]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/include'
Making all in alsactl
make[1]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsactl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsactl'
Making all in alsaconf
make[1]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsaconf'
Making all in po
make[2]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsaconf/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsaconf/po'
make[2]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsaconf'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsaconf'
make[1]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsaconf'
Making all in alsamixer
make[1]: Entering directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsamixer'
gcc32 -g -O2 -o alsamixer alsamixer.o -lncurses -lasound -lm -ldl -lpthread
alsamixer.o(.text+0x1f97): In function `mixer_update_cbar':
/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsamixer/alsamixer.c:1012: undefined reference to `snd_mixer_selem_get_capture_dB'
alsamixer.o(.text+0x1fb1):/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsamixer/alsamixer.c:1013: undefined reference to `snd_mixer_selem_get_capture_dB'
alsamixer.o(.text+0x20a7):/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsamixer/alsamixer.c:991: undefined reference to `snd_mixer_selem_get_playback_dB'
alsamixer.o(.text+0x20c5):/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsamixer/alsamixer.c:992: undefined reference to `snd_mixer_selem_get_playback_dB'
collect2: ld returned 1 exit status
make[1]: *** [alsamixer] Error 1
make[1]: Leaving directory `/var/tmp/software/alsa/alsa-utils-1.0.11rc5/alsamixer'
make: *** [all-recursive] Error 1


I've scoured message boards and other sites, but nothing is coming up remotely similar I have installed an Audigy 2 sound card from Creative Labs.

Any suggestions where I can start?

Thanks in advance,
S.F.
 
Old 05-08-2006, 12:42 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Just out of curiosity; why? You do realize that 1.0.11 was released on April 19, 2006???

Try download the alsa-utils-1.0.11-6.rc2.src.rpm from the fedora development site;
http://download.fedora.redhat.com/pu...lopment/SRPMS/

Also get the released alsa-utils-1.0.11.tar.bz2 from;
ftp://ftp.alsa-project.org/pub/utils

With a minor editing of the extracted spec and copying the tar file to /usr/src/redhat/SOURCES build the alsa-utils-1.0.11 binary rpm and install.

I would also have suggested doing the same for alsa-lib, but far to many edits are required to the patch files to recommend.
 
Old 05-08-2006, 01:30 PM   #3
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the advice - I will try that later today and post the progress. As far as why I did this, well when I installed FC4, alsa just wouldn't work with my card. I followed the steps from wilsonet.com/mythtv, but I couldn't stop getting an error message every time I logged into kde. I tried everything others have tried posting on message boards, but to no avail. I figured that since my NVIDIA drivers weren't working well either and I had to download the source and compile those, I assumed to do the same for alsa. Also, the basic packages (when I downloaded them using yum) for some reason didn't include any of the alsa utilies - even though an rpm -qa revealed that the packages were installed. There were no alsaconf or any such alsa tools. I'm hoping these will give me the missing software utilities to run.

Thanks!
 
Old 05-08-2006, 03:56 PM   #4
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
Well, I just found another posting on sourceforge regarding the same exact issue. The great thing is that they resolved it. The bad thing is that they didn't post what rpm was needed to fix it. The link can be found here:

sourceforge.net/mailarchive/message.php?msg_id=14117529

(I tried putting in the full address, including http, but this site is telling me I need a minimum of 3 posts before I can put in a redirect)

I have no idea what rpm I would need to figure this out... great :P
 
Old 05-08-2006, 03:57 PM   #5
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
Now that I've posted 3 times, I can put the full address in for the above link (yay):

http://sourceforge.net/mailarchive/m...sg_id=14117529
 
Old 05-08-2006, 05:32 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
So, according to the thread from sourceforge........

You have some installed rpm packages for alsa plus you have built and installed alsa-driver and alsa-lib correct??? So check and see if you have multiple libasound.so.* installed in /lib;

ls-al /lib/libasound*

Maybe it is a good idea to remove the alsa-lib rpm package???
 
Old 05-08-2006, 09:42 PM   #7
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
[root@localhost ~]# ls -al /lib/libasound*
-rwxr-xr-x 1 root root 799 May 8 22:15 /lib/libasound.la
lrwxrwxrwx 1 root root 18 May 8 22:15 /lib/libasound.so -> libasound.so.2.0.0
lrwxrwxrwx 1 root root 18 May 8 22:15 /lib/libasound.so.2 -> libasound.so.2.0.0
-rwxr-xr-x 1 root root 3439990 May 8 22:15 /lib/libasound.so.2.0.0


I hesitated removing alsa-lib, because when I run a "yum remove alsa-lib", I get this:

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
alsa-lib x86_64 1.0.9rc4-2 installed 1.0 M
alsa-lib i386 1.0.9rc4-2 installed 1.0 M
Removing for dependencies:
SDL-devel x86_64 1.2.8-3.2 installed 2.2 M
alsa-lib-devel x86_64 1.0.9rc4-2 installed 7.9 M
arts i386 8:1.4.0-1 installed 4.6 M
arts x86_64 8:1.4.0-1 installed 6.6 M
arts-devel x86_64 8:1.4.0-1 installed 976 k
desktop-printing x86_64 0.18-10 installed 285 k
eel2 x86_64 2.10.0-2 installed 1.2 M
esound i386 1:0.2.35-5 installed 273 k
esound x86_64 1:0.2.35-5 installed 292 k
esound-devel x86_64 1:0.2.35-5 installed 95 k
evolution x86_64 2.2.2-5 installed 23 M
evolution-data-server x86_64 1.2.2-3 installed 9.7 M
evolution-webcal x86_64 2.2.0-1 installed 226 k
firefox x86_64 1.0.4-4 installed 49 M
gaim x86_64 1:1.3.0-1.fc4 installed 10 M
gdm x86_64 1:2.6.0.8-16 installed 8.0 M
gnome-desktop x86_64 2.10.0-5 installed 1.3 M
gnome-games x86_64 1:2.10.0-5 installed 20 M
gnome-media x86_64 2.10.2-4 installed 5.1 M
gnome-panel x86_64 2.10.1-10 installed 8.4 M
gnome-pilot x86_64 2.0.13-2 installed 1.7 M
gnome-python2 x86_64 2.10.0-1 installed 612 k
gnome-python2-bonobo x86_64 2.10.0-1 installed 208 k
gnome-python2-canvas x86_64 2.10.0-1 installed 50 k
gnome-python2-extras x86_64 2.10.0-2.1 installed 93 k
gnome-python2-gnomevfs x86_64 2.10.0-1 installed 137 k
gnome-python2-gtkhtml2 x86_64 2.10.0-2.1 installed 23 k
gnome-spell x86_64 1.0.5-10 installed 196 k
gnomemeeting x86_64 1.2.1-1 installed 7.5 M
gstreamer-plugins x86_64 0.8.8-6 installed 4.0 M
gtkhtml3 x86_64 3.6.2-1 installed 3.1 M
kdbg x86_64 1:1.2.10-2 installed 853 k
kdeaddons x86_64 3.4.0-2 installed 9.5 M
kdeartwork x86_64 3.4.0-1 installed 9.0 M
kdebase i386 6:3.4.0-5 installed 49 M
kdebase x86_64 6:3.4.0-5 installed 54 M
kdebase-devel x86_64 6:3.4.0-5 installed 233 k
kdeedu x86_64 3.4.0-1 installed 46 M
kdegames x86_64 6:3.4.0-1 installed 17 M
kdegraphics x86_64 7:3.4.0-2 installed 14 M
kdegraphics-devel x86_64 7:3.4.0-2 installed 347
kdelibs x86_64 6:3.4.0-6 installed 46 M
kdelibs i386 6:3.4.0-6 installed 42 M
kdelibs-devel x86_64 6:3.4.0-6 installed 110 M
kdemultimedia x86_64 6:3.4.0-2 installed 25 M
kdemultimedia i386 6:3.4.0-2 installed 19 M
kdenetwork x86_64 7:3.4.0-3 installed 26 M
kdenetwork-devel x86_64 7:3.4.0-3 installed 298 k
kdepim x86_64 6:3.4.0-4 installed 49 M
kdepim-devel x86_64 6:3.4.0-4 installed 1.0 M
kdesdk x86_64 3.4.0-3 installed 17 M
kdesdk-devel x86_64 3.4.0-3 installed 126 k
kdeutils x86_64 6:3.4.0-1 installed 9.4 M
kdeutils-devel x86_64 6:3.4.0-1 installed 73 k
kdevelop x86_64 9:3.2.0-2 installed 38 M
krb5-auth-dialog x86_64 0.2-5 installed 21 k
libbonoboui x86_64 2.8.1-4 installed 1.1 M
libgal2 x86_64 2:2.4.2-4 installed 2.3 M
libgnome x86_64 2.10.0-3 installed 2.8 M
libgnomeui x86_64 2.10.0-1 installed 2.8 M
nautilus x86_64 2.10.0-4 installed 11 M
nautilus-cd-burner x86_64 2.10.0-2 installed 924 k
openh323 x86_64 1.15.3-1 installed 27 M
openh323 i386 1.15.3-1 installed 19 M
pwlib x86_64 1.8.4-1 installed 13 M
pwlib i386 1.8.4-1 installed 9.5 M
rhn-applet x86_64 2.1.17-3 installed 898 k
rhythmbox x86_64 0.8.8-2 installed 3.3 M
sound-juicer x86_64 2.10.1-1 installed 1.1 M
system-config-httpd noarch 5:1.3.2-2 installed 1.6 M
system-config-lvm noarch 0.9.32-1.0 installed 647 k
system-config-network noarch 1.3.26-1 installed 2.1 M
system-config-packages noarch 1.2.25-1 installed 1.1 M
system-config-printer-gui x86_64 0.6.131-1 installed 442 k
totem x86_64 1.0.2-1 installed 3.1 M
up2date-gnome x86_64 4.4.23-4 installed 661 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 78 Package(s)
Total download size: 0
Is this ok [y/N]:

I'm not that good with yum, but why would it want to remove 78 packages? Am I reading this wrong?
 
Old 05-08-2006, 11:11 PM   #8
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
Well, I got frustrated with this and went ahead and removed all these packages (yes I hit y). It seems to compile fine but everything else is broke so that doesn't help me :O)

Now I'm trying to figure out how to create an rpm package so I can package up this build, save it elsewhere, blow away this box, reinstall and add the newly built packages.

Any other suggestions?
 
Old 05-09-2006, 06:21 AM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Ouch!!! You did not have to remove all those packages. And yes yum told you correctly that all those packages depend on alsa-lib. You could have waited a bit......

I also noticed that you have not been keeping your FC4 system updated. Many updates are available; alsa, esound, firefox and KDE-3.5.1 to name a few. Maybe it would (still??) be a good idea to use yum to update (and restore the removed 70+ packages)the system before you blow it away, to get you started with this;

yum install kdebase esound gnome-desktop firefox

The updates; http://download.fedora.redhat.com/pu...ates/4/x86_64/
 
Old 05-09-2006, 11:59 AM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
As I said, you relly did not need to remove all those rpm packages........

Look here; http://people.redhat.com/stransky/alsa/
 
Old 05-09-2006, 03:33 PM   #11
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
I'll admit - I got frustrated. I've been trying to get this to work now for over 2 months. I might be a noob to Linux, but I've been working with Solaris for 10+ years, so I'm familiar with compiling, installing and configuring *nix systems - just not FC.... yet.

I won't argue with you - my system is definitely not all up to date and that's because of my previous mishaps with FC4. When I first installed it a while ago, I was told to do a "yum -y update". Well, every time I did this it hung my box one way or the other. From network failures, to just plain hanging the system. Frustrated and determined that "yum update" just doesn't work, I decided to give FC5 a try, thinking whatever the problem was, would be fixed there. Well, that stunk even more since I couldn't even get the X server to load during boot! (BTW - how's that happen, when a newer OS doesn't have the same if not better capabilities as the older????)

Anyway, to make a long story short FC5 wasn't cutting it, so I reverted back to FC4 after someone told me to just update any packages that I needed which were necessary and not do a yum update. So here I am stuck on two major problems. Video and Sound. I finally figured out the video issues, now I'm onto the sound.

I guess I'm just used to the Solaris mentality of being able to download an entire cluster patch and appying it to the system, instead of using this yum nonsense - where it downloads one package at a time and hangs right in the middle!! There's got to be a better way!

Anyway, enough rambling I will try your recommendations tonight again. I also want to thank you for helping me get this far - a BIG THANKS! I'm sure we can get through this soon!
 
Old 05-09-2006, 06:27 PM   #12
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Do not worry about it, everybody at one time or another gets that way.

Yum is one of the preferred methods of updating with Red Hat based OS's, it is a good tool once you get used to it. It is not perfect but it does for the most part beats dependency hell.

For myself, I never use the -y switch with yum, like you I run in a mixed (32-bit and 64-bit) mode environment. Sometimes yum cannot resolve the mixed mode dependencies correctly (both for install and removal) so it is a good idea to always check what it 'thinks' is correct.

About 8 months ago now I switched from the Fedora Core series to CentOS-4, much better IMHO. I got tired of some of the mistakes made when releasing updated packages. Still get that sometimes when trying out development packages, which brings me to the new 1.0.11 alsa source packages. The alsa-lib-1.0.11-2.src.rpm has a really stupid error in it;

%files devel
%defattr(-, root, root)
%doc doc/doxygen
%{_includedir}/alsa
%{_includedir}/sys/asoundlib.h
%{_libdir}/libasound.so
%{_libdir}/libasound.a
%exclude %{_libdir}/libasound.la
^^^^^^^^

This makes no sense, since for example, if one was to build the kdelibs-3.5.X source rpm it will fail due to the missing /usr/lib[64]/libasound.la file. The fix is to simply remove the '%exclude ' portion (notice the space). I checked and this error has been present since the 1.0.6 source rpm was released, not sure of earlier (did not check).
 
Old 05-09-2006, 10:03 PM   #13
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
I so want to throw this box out the window at this point... I started downloading the packages I removed but I noticed it was crawling. I then did an ethtool eth0 and this was the output:

[root@localhost net]# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes

I just noticed that it's not autonegotiating well - it's putting half-duplex and my network is forced full-duplex. I've tried ethtool -s eth0 duplex full and that doesn't change it. When I turned off autoneg, it pushed it to 10 half and I still couldn't change it. At 360MB of downloads, the rate it was going at was going to take me 3 days. ARGH THIS FEDORA!!!

If I cannot get this to work properly, I'm going to reinstall. I'll keep hacking at it tonight and let you know what happens....
 
Old 05-09-2006, 10:06 PM   #14
sf_basilix
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 4 x86_64
Posts: 16

Original Poster
Rep: Reputation: 0
I'm about ready to throw this box out the window. After I started downloading the packages I've removed (over 300MB), it was taking FOREVER. I then noticed the ethtool eth0 output as:

[root@localhost net]# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes

It's half duplex! I have my switch forced to 100 full and even when I do an ethtool -s eth0 duplex full, it doesn't change! I even tried to turn off autoneg, but that only set the speed to 10 and kept it at half.

ARGH THIS FEDORA!!!!

I'm going to have to hack at this tonight and figure out what's going on before I can proceed. If I can't get this to work right, I'm going to reinstall again. I just cannot believe no one else is going through these issues...
 
  


Reply



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
alsa-utils-1.0.8 fails during Make aaaantoine Linux - Software 15 02-25-2008 07:33 AM
broke gentoo after installing alsa-driver & alsa-utils snakeo2 Linux - Newbie 1 01-26-2006 08:05 AM
[ALSA 1.0.9b-4] No more sound, no more alsa-utils package Creak Debian 5 08-18-2005 04:22 PM
alsa-utils conflicts with alsa-lib sloik2000 Linux - Software 0 07-09-2005 08:50 AM
Any Help With Alsa Utils & Nvidia ? krissly1 Linux - Newbie 11 11-29-2003 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration