×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    2

    URGENT: Nokia D211 on SuSE Linux 9.0

    Hello to Nokia-Support-Team,

    I tried to install the Linux software downloaded from nokia.com on my notebook running SuSE Linux 9.0. I still didn't succeed.

    'make all' produced this error message:
    dmodule.c:40: error: initializer element is not constant

    Here the data of my environment:
    SuSE Linux 9.0 Professional
    kernel 2.4.21
    gcc 3.3.1
    files nokia_d211-linux-1.06-bin-gcc3.2.tar.gz and
    nokia_d211-linux-1.06.tar.gz

    Any help would be appreciated. Thanks a lot!

    George M.


    ------------------- all the output of 'make all' -----------------------
    linux # make all
    set -e; for d in src ui control; do make -C $d ; done
    make[1]: Entering directory `/tmp/d211-linux-src/d211/src'
    gcc -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -D__KERNEL__ -DMODULE -I../include -I/lib/modules/2.4.21-99-default/build/include -c dllc.c
    chmod -x dllc.o
    gcc -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -D__KERNEL__ -DMODULE -I../include -I/lib/modules/2.4.21-99-default/build/include -c dmodule.c
    dmodule.c:40: error: initializer element is not constant
    make[1]: *** [dmodule.o] Error 1
    make[1]: Leaving directory `/tmp/d211-linux-src/d211/src'
    make: *** [all] Error 2
    linux #
    Last edited by mrsnob; 2004-04-05 at 15:24.

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    1

    patch

    try this patch:

    diff -aur src/d211/src/dmodule.c src/OK/d211/src/dmodule.c
    --- src/d211/src/dmodule.c 2003-02-13 08:18:20.000000000 +0100
    +++ src/OK/d211/src/dmodule.c 2004-04-20 20:17:03.000000000 +0200
    @@ -37,7 +37,12 @@
    #include "dllc_priv.h"

    /* one sec in jiffies */
    +/* original nokia
    const int DHZ = HZ;
    +*/
    +
    +// patch for SUSE Linux 9.0
    +int DHZ;

    /* externs */
    /* check_wlan_gprs_concurrency is used to control WLAN/GSM/GPRS
    @@ -146,6 +151,8 @@

    static int d_init_module(void)
    {
    + // patch for SUSE Linux 9.0
    + DHZ = HZ;
    servinfo_t servinfo;

    dnc_print_version();
    diff -aur src/d211/src/nokia_priv.h src/OK/d211/src/nokia_priv.h
    --- src/d211/src/nokia_priv.h 2002-06-11 11:52:26.000000000 +0200
    +++ src/OK/d211/src/nokia_priv.h 2004-01-07 15:36:36.000000000 +0100
    @@ -38,7 +38,7 @@
    #define MANFID_NOKIA 0x0124

    extern unsigned long volatile jiffies;
    -extern const int DHZ; /* one sec in jiffies */
    +extern int DHZ; /* one sec in jiffies */

    /* PCMCIA actions */
    #define CARD_REMOVAL 1
    Last edited by tomasgn; 2004-04-23 at 09:52.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    1
    Hello,

    I have the same problem and I have tried this patch, but there is still nearly the same. Do you maybe have the whole script you could send by mail?
    Thanks
    BRGDS
    Jan Held

Posting Permissions

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