Re: amrmo_init.c:612: error: 'SA_SHIRQ' undeclared

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

 



On Wed, Feb 27, 2008 at 6:59 PM, Antonio Olivares
<olivares14031@xxxxxxxxx> wrote:
>
>  --- Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>
>  wrote:
>
>
>  > RE: root@slax:~# slmodemd -c USA /dev/slamr0
>  > SmartLink Soft Modem: version 2.9.11 Feb 27 2008
>  > 03:23:46
>  > symbolic link `/dev/ttySL0' -> `/dev/pts/2' created.
>  > modem `slamr0' created. TTY is `/dev/pts/2'
>  > Use `/dev/ttySL0' as modem device, Ctrl+C for
>  > termination.
>  >
>  > ----------
>  > What was the wvdial report?
>  >
>  Slax does not come with wvdial :(  The modem makes a
>  noise that tries to dial, but hangs and does not dial
>  out/make a connection.  I have to use KPPP with slax.
>  In Fedora the 2.6.23.14/15? based kernel,
>  slmodem-2.9.11-20080126 code compiles fine, but does
>  not dialout either :(.  With Fedora, I can use wvdial,
>  how should I run it and report back to the list? I can
>  only connect with 2.6.22.9? fc7 kernel from home.  At
>  school I have eth0 available and check the
>  compilations from there, also in Rawhide and gcc4.3
>  where slmodem-2.9.11-20080126.tar.gz also gives me
>  strange errors with a 2.6.25-rcX.git-fc9 kernel.

make[3]: Entering directory `/usr/src/kernels/2.6.25-0.69.rc3.git1.fc9-i686'
  CC [M]  /home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.o
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:
In function 'amrmo_pci_probe':
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612:
error: 'SA_SHIRQ' undeclared (first use in this function)
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612:
error: (Each undeclared identifier is reported only once
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612:
error: for each function it appears in.)
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:
In function 'amrmo_init':
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:752:
error: implicit declaration of function 'pci_find_device'
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:752:
warning: assignment makes pointer from integer without a cast
make[4]: *** [/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.o]
Error 1
make[3]: *** [_module_/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers]
Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.25-0.69.rc3.git1.fc9-i686'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers'
make: *** [drivers] Error 2

using the fix

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
       ret = request_irq(amrmo->irq, &amrmo_pci_interrupt,IRQF_SHARED,
                                 amrmo->name,amrmo);
#else
       ret = request_irq(amrmo->irq, &amrmo_pci_interrupt,SA_SHIRQ,
                                 amrmo->name,amrmo);
#endif

fixes part of the issue, but something else arises.

/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:
In function 'amrmo_init':
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:760:
error: implicit declaration of function 'pci_find_device'
/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.c:760:
warning: assignment makes pointer from integer without a cast
make[4]: *** [/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers/amrmo_init.o]
Error 1
make[3]: *** [_module_/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers]
Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.25-0.69.rc3.git1.fc9-i686'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/olivares/Downloads/slmodem-2.9.11-20080126/drivers'
make: *** [drivers] Error 2

This is of course looking into the future with Fedora 9 as soon as it
gets here. IT comes with gcc4.3 and there are some little things out
there.  Need not worry right now.  In the new 2.6.24 kernels the modem
does not dialout,  that is what is happening.

Thanks for your help,

Antonio
>
>  Thanks,
>
>  Antonio
>
>
> >
>  > Marv
>  >
>  > On Wed, Feb 27, 2008 at 8:23 AM, Antonio Olivares
>  > <olivares14031@xxxxxxxxx> wrote:
>  > > The slmodem-2.9.11-20070813 and the newer one, do
>  > not work :(
>  > >
>  > >  there is no dialout
>  > >
>  > >  thanks,
>  > >
>  > >  Antonio
>  > >
>  > >
>  > >
>  > >  On Tue, Feb 26, 2008 at 7:22 AM, Antonio Olivares
>  > >  <olivares14031@xxxxxxxxx> wrote:
>  > >  > IT does compile with
>  > slusb64bit-2.9.11-20070813.So what could be problem?
>  > >  >
>  > >  >  Regards,
>  > >  >
>  > >  >  Antonio
>  > >  >
>  > >  >  *** Compliation successful ***
>  > >  >  [students@localhost
>  > slusb64bit-2.9.11-20070813]$ make clean
>  > >  >
>  > >  > make -C modem clean &&  make -C drivers clean
>  > &&  echo "done."
>  > >  >  make[1]: Entering directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/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
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/modem'
>  > >  >  make[1]: Entering directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/drivers'
>  > >  >  rm -f kernel-ver slusb.o slusb.ko *st7554.o
>  > amrmo_init.o sysdep_amr.o
>  > >  >
>  > >  > *.mod.* .*.cmd *~
>  > >  >  rm -f -r .tmp_versions
>  > >  >  make[1]: Leaving directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/drivers'
>  > >  >  done.
>  > >  >  [students@localhost
>  > slusb64bit-2.9.11-20070813]$ make
>  > >  >  KERNEL_DIR=/lib/modules/2.6.24.2-4.fc8/build/
>  > >  >
>  > >  > make -C modem all
>  > >  >  make[1]: Entering directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/modem'
>  > >  >  rebuild profile...
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_main.o -c modem_main.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_cmdline.o -c
>  > >  >  modem_cmdline.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem.o -c modem.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_datafile.o -c
>  > >  >  modem_datafile.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_at.o -c modem_at.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_timer.o -c
>  > >  >  modem_timer.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -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 -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -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 -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_comp.o -c modem_comp.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_param.o -c
>  > >  >  modem_param.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_debug.o -c
>  > >  >  modem_debug.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o homolog_data.o -c
>  > >  >  homolog_data.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o dp_sinus.o -c dp_sinus.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o dp_dummy.o -c dp_dummy.c
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o sysdep_common.o -c
>  > >  >  sysdep_common.c
>  > >  >  gcc -m32  -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
>  > >  >  gcc -m32 -Wall -g -O -I. -DCONFIG_DEBUG_MODEM
>  >  -o modem_test.o -c modem_test.c
>  > >  >  gcc -m32  -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
>  > >  >  make[1]: Leaving directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/modem'
>  > >  >  make -C drivers
>  > KERNEL_DIR=/lib/modules/2.6.24.2-4.fc8/build/
>  > >  >  make[1]: Entering directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/drivers'
>  > >  >  cc
>  > -I/lib/modules/2.6.24.2-4.fc8/build//include -o
>  > kernel-ver kernel-ver.c
>  > >  >  make all KERNEL_VER=2.6.24.2-4.fc8
>  > >  >  make[2]: Entering directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/drivers'
>  > >  >  make modules -C
>  > /lib/modules/2.6.24.2-4.fc8/build/
>  > >  >
>  >
>  SUBDIRS=/home/students/Download/slusb64bit-2.9.11-20070813/drivers
>  > >  >  make[3]: Entering directory
>  > `/usr/src/kernels/2.6.24.2-4.fc8-i686'
>  > >  >   CC [M]
>  >
>  /home/students/Download/slusb64bit-2.9.11-20070813/drivers/st7554.o
>  > >  >   LD [M]
>  >
>  /home/students/Download/slusb64bit-2.9.11-20070813/drivers/slusb.o
>  > >  >
>  > >  >   Building modules, stage 2.
>  > >  >   MODPOST 1 modules
>  > >  >  WARNING: modpost: GPL-incompatible module
>  > slusb.ko uses future
>  > >  >  GPL-only symbol 'usb_deregister'
>  > >  >  WARNING: modpost: GPL-incompatible module
>  > slusb.ko uses future
>  > >  >  GPL-only symbol 'usb_register_driver'
>  > >  >   CC
>  >
>  /home/students/Download/slusb64bit-2.9.11-20070813/drivers/slusb.mod.o
>  > >  >   LD [M]
>  >
>  /home/students/Download/slusb64bit-2.9.11-20070813/drivers/slusb.ko
>  > >  >  make[3]: Leaving directory
>  > `/usr/src/kernels/2.6.24.2-4.fc8-i686'
>  > >  >  make[2]: Leaving directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/drivers'
>  > >  >  make[1]: Leaving directory
>  > >  >
>  >
>  `/home/students/Download/slusb64bit-2.9.11-20070813/drivers'
>  >
>  === message truncated ===
>
>
>
>
>       ____________________________________________________________________________________
>  Looking for last minute shopping deals?
>  Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>

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

  Powered by Linux