Skip to contentSkip to conversation

alsa-lib linking problem

DISCUSSION Andrei Boros 3 participants 5 messages Mar 10, 2003 – Mar 11, 2003

lore
Share & tools
lore
#0 lore raw

Latest cvs alsa-lib compiles ok up to a point where the linker fails on
a library:

gcc -shared conf.lo confmisc.lo input.lo output.lo async.lo error.lo dlmisc.lo -Wl,--whole-archive control/.libs/libcontrol.al mixer/.libs/libmixer.al pcm/.libs/libpcm.al rawmidi/.libs/librawmidi.al timer/.libs/libtimer.al hwdep/.libs/libhwdep.al seq/.libs/libseq.al instr/.libs/libinstr.al compat/.libs/libcompat.al -Wl,--no-whole-archive -lm -ldl -lpthread -lc -Wl,-soname -Wl,libasound.so.2 -o .libs/libasound.so.2.0.0 /usr/i386-slackware-linux/bin/ld: .libs/libasound.so.2.0.0: undefined versioned symbol name snd_pcm_forward@@ALSA_0.9.0rc8 /usr/i386-slackware-linux/bin/ld: failed to set dynamic section sizes:
Bad value
collect2: ld returned 1 exit status
make[2]: *** [libasound.la] Error 1
make[2]: Leaving directory `/serve/install/alsa-cvs/alsa-lib/src' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/serve/install/alsa-cvs/alsa-lib/src'
make: *** [all-recursive] Error 1

Signature · 10 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw
Quoted 13 lines · Andrei Boros

Latest cvs alsa-lib compiles ok up to a point where the linker fails on
a library:

gcc -shared conf.lo confmisc.lo input.lo output.lo async.lo error.lo dlmisc.lo -Wl,--whole-archive control/.libs/libcontrol.al mixer/.libs/libmixer.al pcm/.libs/libpcm.al rawmidi/.libs/librawmidi.al timer/.libs/libtimer.al hwdep/.libs/libhwdep.al seq/.libs/libseq.al instr/.libs/libinstr.al compat/.libs/libcompat.al

(quoted diff) +0 -2
-Wl,--no-whole-archive  -lm -ldl -lpthread -lc  -Wl,-soname
-Wl,libasound.so.2 -o .libs/libasound.so.2.0.0

/usr/i386-slackware-linux/bin/ld: .libs/libasound.so.2.0.0: undefined versioned symbol name snd_pcm_forward@@ALSA_0.9.0rc8

Quoted 8 lines

/usr/i386-slackware-linux/bin/ld: failed to set dynamic section sizes:
Bad value
collect2: ld returned 1 exit status
make[2]: *** [libasound.la] Error 1
make[2]: Leaving directory `/serve/install/alsa-cvs/alsa-lib/src' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/serve/install/alsa-cvs/alsa-lib/src'
make: *** [all-recursive] Error 1

It looks like libtool problem. The 1.4.2 version is ok.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw
Quoted 3 lines · Jaroslav Kysela

It looks like libtool problem. The 1.4.2 version is ok.

I see configure doing this:
checking for versioned symbols... broken libtool - use libtool v1.4+; no versions

Is this so critical? If not, linking should work fine given this warning, or else configure should halt.

Or versioned symbols shouldn't be versioned if this is what configure sees...

Signature · 11 lines
ing. Andrei Boros
mailto:[email protected] / +40-21-303-1870
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
#3 lore raw

At Tue, 11 Mar 2003 15:58:44 +0200,

Quoted 6 lines · Andrei Boros
Quoted 3 lines · Jaroslav Kysela

It looks like libtool problem. The 1.4.2 version is ok.

Quoted 6 lines

I see configure doing this:
checking for versioned symbols... broken libtool - use libtool v1.4+; no versions

Is this so critical? If not, linking should work fine given this warning, or else configure should halt.

not too critical but i recommend you to update it than using too old version if the update is not difficult.

a workaroud is to pass --with-versioned=no to configure script, btw.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

#4 lore raw
Quoted 12 lines · Takashi Iwai

At Tue, 11 Mar 2003 15:58:44 +0200,

Quoted 10 lines · Andrei Boros
Quoted 3 lines · Jaroslav Kysela

It looks like libtool problem. The 1.4.2 version is ok.

I see configure doing this:
checking for versioned symbols... broken libtool - use libtool v1.4+; no versions

Quoted 7 lines
Quoted 2 lines

Is this so critical? If not, linking should work fine given this warning, or else configure should halt.

not too critical but i recommend you to update it than using too old version if the update is not difficult.

a workaroud is to pass --with-versioned=no to configure script, btw.

This workaround doesn't work. I'm working on this problem.

Jaroslav

P.S. Problems in my list before 0.9.0final:

1) OSS seq emulator segfaults (seems some memory leak)
- try alsa-driver/test/seq2 test utility to run several times
- if you'll work on this problem ASAP, please drop an e-mail, otherwise I'm working on it
2) vxpocket drivers don't work with the dmix plugin (machine hangup)
- I'll disable the dmix plugin for this card and solve problem later
3) alsa-lib - symbol versions
4) vmalloc_to_page() problem again

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en