Re: slmodemd and alsa > 1.0.9: off-hook-channel doesn't get muted any more

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/03/07 08:31:20, Marvin Stodolsky wrote:
> Its obscure to be why your are using a /gcc-3.3.6/ version call when
> your kernel was compiled with gcc-4.1.  That may or maynot be a
> contributing problem.

I  tried  with gcc-4.1.1 now. Same problem. gcc-3.3.6 is complaining fewer and
better tested. But for both I have to uncomment "#slmodemd: -lasound" and then
the  make runs fine. I don't get the meaning of this line. The colon indicates
a target but that is defined above in  the  makefile.  -lasound  look  like  a
linker  flag  to  me  so assigning it to LFLAGS makes sense but that is done a
line below. Here the part of the modem/Makefile I get off the package:

all: slmodemd modem_test

slmodemd:  modem_main.o  modem_cmdline.o  $(modem-objs)  $(dp-objs)  dsplibs.o
$(sysdep-objs)
modem_test:  modem_test.o  modem_cmdline.o  $(modem-objs) $(dp-objs) dsplibs.o
$(sysdep-objs)

#SUPPORT_ALSA:=1
ifdef SUPPORT_ALSA
slmodemd: -lasound              #<------This is the line I  have  to  comment, there is
                                #       no file nor target named -lasound
CFLAGS+= -DSUPPORT_ALSA=1
LFLAGS+= -lasound               #<------This makes sense
endif

slmodemd modem_test:
        $(CC) $(LFLAGS) -o $@ $^


Well having slmodemd then there is still this off-hook bug. Here some output:

root@drago:~# slmodemd --version
SmartLink Soft Modem: version 2.9.11 Mar  2 2007 22:59:30
root@drago:~# which slmodemd
/usr/sbin/slmodemd
root@drago:~# ldd /usr/sbin/slmodemd
        linux-gate.so.1 =>  (0xffffe000)
        libasound.so.2 => /usr/local/lib/libasound.so.2 (0xb7ebe000)
        libc.so.6 => /lib/libc.so.6 (0xb7d9d000)
        libm.so.6 => /lib/libm.so.6 (0xb7d78000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d74000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7d61000)
        /lib/ld-linux.so.2 (0xb7f8f000)
root@drago:~# lsmod | grep snd_intel8x0m
snd_intel8x0m          17292  6
snd_ac97_codec         90528  2 snd_intel8x0m,snd_intel8x0
snd_pcm                                        75784                         6
snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_page_alloc          9992  3 snd_intel8x0m,snd_intel8x0,snd_pcm
snd                                           49892                         17
snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer


Trying precompiled slmodemd doesn't work because I have glibc-2.3.6  not  2.4.
Could that matter?

root@drago:~# slmodemd --version
slmodemd: /lib/libc.so.6: version `GLIBC_2.4' not found (required by slmodemd)
root@drago:~# /lib/libc.so.6
GNU C Library stable release version 2.3.6, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.0.3.
Compiled on a Linux >>2.6.19.1<< system on 2007-01-07.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.


If this is just a special problem nobody else has it might come  from  my  LFS
being not fully consistent any more. It's nearly three years old. On the other
hand I wonder nobody else has problems with the  makefile.  I  think  make  is
complaining  correctly.  Also using callback is quite rare. Otherwise the off-
hook bug might not be obvious. Well anyway, who is still using a  modem  these
days;)  I  can't even find anybody who answers my mail "Detecting remote-rings
when calling with slmodemd and co" ;-P

Many thanks for all Your ideas so far.
Good night
Lynx

PS: Was the question about working callback pointed to me?

>
> Under Debian/Ubuntu the external code used during the slmodemd compile
> is from packages libasound2 (usually installed by default) and
> libasound2-dev, needed for the ALSA mode compilation.  These were used
> in assembly of slmodemd with a gcc-4.1 , now in the
> SLMODEMD,gcc4.1.tar.gz  at
> http://phep2.technion.ac.il/linmodems/packages/smartlink/
> You could just try that slmodemd.   A sample compile is below.
>
> The snd-intel8x0m driver depends on snd-intel8x0, plus of course the
> set of ALSA modules as displayed by:
> $ lsmod | grep snd_intel8x0m
> Module                  Size  Used by
> -------------------------------------
> snd_intel8x0m          17292  0
> snd_ac97_codec         90528  2 snd_intel8x0m,snd_intel8x0
> snd_pcm                75784  4
> snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
> snd_page_alloc          9992  3 snd_intel8x0m,snd_intel8x0,snd_pcm
> snd                    49892  7
>
snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
>
> MarvS
>
> /usr/src/modules/slmodem-2.9.11-20070204/modem $ $ make SUPPORT_ALSA=1
> rebuild profile...
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_main.o -c modem_main.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_cmdline.o -c modem_cmdline.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o modem.o
> -c modem.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_datafile.o -c modem_datafile.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_at.o -c modem_at.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_timer.o -c modem_timer.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_pack.o -c modem_pack.c
> modem_pack.c: In function 'modem_async_get_bits':
> modem_pack.c:100: warning: pointer targets in passing argument 2 of
> 'm->get_chars' differ in signedness
> modem_pack.c: In function 'modem_async_put_bits':
> modem_pack.c:148: warning: pointer targets in passing argument 2 of
> 'm->put_chars' differ in signedness
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_ec.o -c modem_ec.c
> modem_ec.c: In function 'tx_info':
> modem_ec.c:723: warning: pointer targets in passing argument 2 of
> 'l->modem->get_chars' differ in signedness
> modem_ec.c: In function 'push_rest_data':
> modem_ec.c:811: warning: pointer targets in passing argument 2 of
> 'l->modem->put_chars' differ in signedness
> modem_ec.c: In function 'rx_info':
> modem_ec.c:860: warning: pointer targets in passing argument 2 of
> 'l->modem->put_chars' differ in signedness
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_comp.o -c modem_comp.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_param.o -c modem_param.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_debug.o -c modem_debug.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> homolog_data.o -c homolog_data.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> dp_sinus.o -c dp_sinus.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> dp_dummy.o -c dp_dummy.c
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> sysdep_common.o -c sysdep_common.c
> gcc -lasound -o slmodemd modem_main.o modem_cmdline.o modem.o
> modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
> modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
> dp_dummy.o dsplibs.o sysdep_common.o /usr/lib/libasound.so
> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
> modem_test.o -c modem_test.c
> gcc -lasound -o modem_test modem_test.o modem_cmdline.o modem.o
> modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
> modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
> dp_dummy.o dsplibs.o sysdep_common.o
>
> $ ls -l slmodemd
> -rwxr-xr-x 1 marv marv 1323499 2007-03-02 08:29 slmodemd
>
>
>
>
>
> On 3/2/07, lynx.abraxas@xxxxxxxxxx <lynx.abraxas@xxxxxxxxxx> wrote:
> >On 01/03/07 19:29:32, Marvin Stodolsky wrote:
> >> Lynx,
> >>
> >> RE: > I have to uncomment "slmodemd: -lasound"
> >> As instructed towards the end of the README, the command to use is:
> >> # make clean
> >> # make SUPPORT_ALSA=1
> >> which I just checked.
> >
> >Hm, this is what I get. What happens to the line "slmodemd: -lasound" when
> >You are doing the make?
> >
> >package slmodemd:/usr/src/slmodemd/slmodem-2.9.11-20061021> make
> >CC=/opt/gcc-3.3.6/bin/gcc clean
> >make -C modem clean &&  make -C drivers clean &&  echo "done."
> >make[1]: Entering directory
> >`/usr/src/slmodemd/slmodem-2.9.11-20061021/modem'
> >rm -f slmodemd modem_test modem_main.o modem_cmdline.o modem_test.o
> >modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
> >modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
> >dp_dummy.o sysdep_common.o
> >rm -f *~ *.orig *.rej
> >make[1]: Leaving directory
> >`/usr/src/slmodemd/slmodem-2.9.11-20061021/modem'
> >make[1]: Entering directory
> >`/usr/src/slmodemd/slmodem-2.9.11-20061021/drivers'
> >rm -f kernel-ver slamr.o slusb.o slamr.ko slusb.ko *st7554.o amrmo_init.o
> >sysdep_amr.o *.mod.* .*.cmd *~
> >rm -f -r .tmp_versions
> >make[1]: Leaving directory
> >`/usr/src/slmodemd/slmodem-2.9.11-20061021/drivers'
> >done.
> >package slmodemd:/usr/src/slmodemd/slmodem-2.9.11-20061021> make
> >CC=/opt/gcc-3.3.6/bin/gcc SUPPORT_ALSA=1
> >make -C modem all
> >make[1]: Entering directory
> >`/usr/src/slmodemd/slmodem-2.9.11-20061021/modem'
> >rebuild profile...
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_main.o -c modem_main.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_cmdline.o -c modem_cmdline.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem.o -c modem.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_datafile.o -c modem_datafile.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_at.o -c modem_at.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_timer.o -c modem_timer.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_pack.o -c modem_pack.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_ec.o -c modem_ec.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_comp.o -c modem_comp.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_param.o -c modem_param.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o modem_debug.o -c modem_debug.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o homolog_data.o -c homolog_data.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o dp_sinus.o -c dp_sinus.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o dp_dummy.o -c dp_dummy.c
> >/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
> >-DSUPPORT_ALSA=1   -o sysdep_common.o -c sysdep_common.c
> >make[1]: *** No rule to make target `-lasound', needed by `slmodemd'.
> >Stop.
> >make[1]: Leaving directory
> >`/usr/src/slmodemd/slmodem-2.9.11-20061021/modem'
> >make: *** [modem] Error 2
> >package slmodemd:/usr/src/slmodemd/slmodem-2.9.11-20061021>
> >
> >
> >
> >
> >>
> >> LFS 5.1.1 on Linux version 2.6.20 kernel is leading edge for us.
> >> I can't assess how this contributes to the failure of
> >> echo "ath0" > /dev/modem
> >> for your AgereSystems SIL27 codec modem:
> >>   Class 0703: 1039:7013 Modem: Silicon Integrated Systems
> >>      Primary PCI_id  1039:7013
> >>    Subsystem PCI_id  17c0:1059
> >>
> >> It is beyond my knowledge as to how the problem splits out between
> >> slmodemd and ALSA code.  Maintainer Sasha may comment
> >
> >That's what I feared. Could it be, I need more than the alsa-libs,
> >-plugins and -utils?
> >Is there a complete list of the alsa kernel modules one needs additionally
> >to snd-intel8x0m?
> >I noticed also I don't need to send "ath0" to the modem to go on-hook
> >under the old configuration. It can be any String, is that normal?
> >
> >Thanks.
> >Lynx
> >

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux