LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   glade application compilation problem - complains about libasound.so error (http://www.linuxquestions.org/questions/linux-software-2/glade-application-compilation-problem-complains-about-libasound-so-error-681571/)

nkd 11-06-2008 11:55 AM

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

nkd 11-07-2008 11:47 AM

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


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