FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    aspire101 Guest

    compiling SLModem sources

    when running make, i get the following error:

    Code:
    make[1]: Entering directory `/home/phendrick/Software/builds/slmodem-2.9.10/modem' rebuild profile... gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.cgcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c modem.c: In function āmodem_resetā: modem.c:1701: error: invalid storage class for function āsregs_initā modem.c:1713: warning: implicit declaration of function āsregs_initā modem.c: At top level: modem.c:1727: error: static declaration of āsregs_initā follows non-static declaration modem.c:1713: error: previous implicit declaration of āsregs_initā was here make[1]: *** [modem.o] Error 1 make[1]: Leaving directory `/home/phendrick/Software/builds/slmodem-2.9.10/modem' make: *** [modem] Error 2
    i can't see anything in the faq or googling about this, so i'm thinking it's a gcc4 problem. any ideas?

  2. #2
    odiseo77 Guest
    I'm having exactly the same problem after upgrading to FC4. If you manage to get it working, let me know please.

  3. #3
    fsck Guest
    Try the following patch to modem.c in slmodem 2.9.9d, save this code and apply patch by 'cd'ing to root of the source tree and running:
    Code:
    patch -p0 < patchname
    The patch:
    Code:
    diff -wru slmodem-2.9.9d_orig/modem/modem.c
    slmodem-2.9.9d/modem/modem.c
    --- slmodem-2.9.9d_orig/modem/modem.c	2005-04-23
    04:14:29.000000000 +0300
    +++ slmodem-2.9.9d/modem/modem.c	2005-06-20
    17:09:33.000000000 +0300
    @@ -1598,10 +1598,10 @@
     	return 0;
     }
     
    +static int sregs_init(unsigned char sregs[]);
     
     int modem_reset(struct modem *m)
     {
    -	static int sregs_init(unsigned char sregs[]);
     	MODEM_DBG("modem reset...\n");
     	if(m->state != STATE_MODEM_IDLE)
     		modem_hup(m,1);

  4. #4
    odiseo77 Guest
    I had the following error when trying to patch slmodem 2.9.9d:
    Code:
    [root@localhost slmodem-2.9.9d]# patch -p0 < slmodem-2.9.9d-patch
    can't find file to patch at input line 7
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -wru slmodem-2.9.9d_orig/modem/modem.c
    |slmodem-2.9.9d/modem/modem.c
    |--- slmodem-2.9.9d_orig/modem/modem.c   2005-04-23
    |04:14:29.000000000 +0300
    |+++ slmodem-2.9.9d/modem/modem.c        2005-06-20
    |17:09:33.000000000 +0300
    --------------------------
    File to patch: /root/slmodem-2.9.9d/modem/modem.c
    patching file /root/slmodem-2.9.9d/modem/modem.c
    patch unexpectedly ends in middle of line
    Hunk #1 FAILED at 1598.
    1 out of 1 hunk FAILED -- saving rejects to file /root/slmodem-2.9.9d/modem/modem.c.rej
    [root@localhost slmodem-2.9.9d]#
    The 'modem.c.rej' content is the following:

    Code:
    ***************
    *** 1598,1607 ****
             return 0;
      }
    
    
      int modem_reset(struct modem *m)
      {
    -        static int sregs_init(unsigned char sregs[]);
             MODEM_DBG("modem reset...\n");
             if(m->state != STATE_MODEM_IDLE)
    
    --- 1598,1607 ----
             return 0;
      }
    
    + static int sregs_init(unsigned char sregs[]);
    
      int modem_reset(struct modem *m)
      {
             MODEM_DBG("modem reset...\n");
             if(m->state != STATE_MODEM_IDLE)
    Does someone know how to patch the driver and solve this problem??
    Thanks in advance.

  5. #5
    Join Date
    Mar 2004
    Location
    Quebec
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Livna have slmodem rpm ready for FC4. It is called slmodem-alsa

    Now, with this rpm, when I launch the service from the terminal inside gnome, everything work well. But, when I reboot my laptop and the service start during the bootup, here is the error message :

    Jul 6 14:12:35 portable slmodemd: error: alsa setup: cannot open playback device 'modem:1': Invalid argument
    Jul 6 14:12:35 portable slmodemd: error: cannot setup device `modem:1'

    Anyone know how to solve it?

    Thanks
    Jeff Saucier (djf_jeff)
    Fedora profile
    GPG : 0xA9E6E953

  6. #6
    odiseo77 Guest
    I'm not sure what migyht be the problem since I haven't used this livna rpm, but what I did was to download the slmodem-2.9.9e-pre1.tar.gz and the ungrab-winmodem module from http://linmodems.technion.ac.il/packages/smartlink/
    and install them. Note that you will need the ungrabwinmodem module in order to make the driver work. Before loading slamr with modprobe you must load the ungrab-winmodem with '/sbin/modprobe ungrab-winmodem. This worked on FC4 which is what I'm using. I hope this helps you.

  7. #7
    Join Date
    Feb 2005
    Location
    netherlands
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have the same problem. It is ,I think in the kernel module. Try installing an FC 3 kernel.
    Check this:

    code:

    dmesg

    Output:

    codec_semaphore: semaphore is not ready [0x1][0x701300]
    codec_read 0: semaphore is not ready for register 0x72
    codec_semaphore: semaphore is not ready [0x1][0x701300]
    codec_read 1: semaphore is not ready for register 0x54


    Kind regards,

    otto

Similar Threads

  1. downloading, compiling, and using sources
    By invictus in forum Programming & Packaging
    Replies: 3
    Last Post: 12th July 2007, 05:41 PM
  2. FC4 ATI/kernel sources installation. Where are the sources?
    By Bear Knuckle in forum EOL (End Of Life) Versions
    Replies: 5
    Last Post: 18th June 2005, 09:49 PM
  3. slmodem 2
    By buki79 in forum Hardware
    Replies: 1
    Last Post: 10th June 2004, 05:03 AM
  4. slmodem on FC2
    By semaforo in forum Hardware
    Replies: 0
    Last Post: 30th May 2004, 12:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •