LinuxQuestions.org
Visit Jeremy's Blog.
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 11-06-2008, 11:55 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
glade application compilation problem - complains about libasound.so error


hi all,
I am tryin my hands at developing a simple GUI based application with glade.
After designing the GUI with a couple of GNOME and gtk widgets, When I did a autogen.sh it worked alright. But the subsequent make failed with the following errors:-

Quote:
/lib/libasound.so.2: undefined reference to `midiparser_input_buf'
/lib/libasound.so.2: undefined reference to `midiparser_create'
collect2: ld returned 1 exit status
make[2]:***[project2] Error 1
make[2]: Leaving directory '/root/Projects/project2/src'
make[1]:***[all-recursive] Error 1
make[1]: Leaving directory '/root/Projects/project2'
make: *** [all] Error 2
To me it looks like some sound library errors. My application doesnot have any sound functionality. Also for your info I donot have alsa on my machine, it is using OSS.

could someone help me compile the application and also tell me the reason for failure for future reference.

thanks in advance
nishith
 
Old 11-07-2008, 11:47 AM   #2
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Solved it
If an application refuses to start with "libasound.so.2: undefined symbol errors", then this indicates that the version of libasound the app was linked with is different from the libasound in the system. OSSv4.0 replaces libasound.so.2 with libsalsa, in order to allow some ALSA emulation and causes this error.
Do as under :-
Quote:
# mv /usr/lib/oss/lib/libsalsa.so.2.0.0 /usr/lib/oss/lib/libsalsa.so.2.0.0.bak
# ldconfig
Actually, pythong and gtk+ applications make a reference to the libasound.so library, the emulation libsalsa.so won't be any good.
thanks
nishith
 
  


Reply


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
[gtk] - adding an application icon using glade Misel Programming 3 01-08-2011 11:35 AM
Redhat9:rpm dependency errors:libasound.so.2,libasound.so.2(ALSA_0.9) Sailaja Reddy Red Hat 1 06-16-2009 12:41 PM
Ubuntu won't boot error missing libasound.so.2 Kiwi944 Linux - Newbie 2 05-05-2009 06:39 PM
C++ application with Glade: compiling problem dr_berta Linux - Software 10 10-03-2005 07:09 PM
Dependency error : libasound.so.2 pinakidutta Linux - Newbie 1 12-31-2004 06:59 AM

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

All times are GMT -5. The time now is 03:16 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