Successful wifi-box compilation anyone ?

Discussion in 'Other Firmware Projects' started by idefix, Feb 8, 2005.

  1. idefix

    idefix Guest

    Hello,

    I've been trying to compile wifi-box-2.02.2-6-tp from sources (yes, I know, there are binaries out there but I wanted to tweak some parameters), but I have been unable to achieve that, either with the wrt54g.2.02.2.tgz sources I got from the Linksys GPL code center to which I applied the wifibox diffs from sourceforge (the "vanilla" sources compile ok, though), or even with the CVS version. The latter (CVS version) bails out when compiling libbb/change_identity.c, with the following error:

    /opt/brcm/hndtools-mipsel-uclibc/usr/bin/gcc -I./include -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG -c -o libbb/change_identity.o libbb/change_identity.c
    libbb/change_identity.c:43: warning: `struct passwd' declared inside parameter list
    libbb/change_identity.c:43: warning: its scope is only this definition or declaration, which is probably not what you want.
    libbb/change_identity.c: In function `change_identity_e2str':
    libbb/change_identity.c:45: warning: implicit declaration of function `initgroups'
    libbb/change_identity.c:45: dereferencing pointer to incomplete type
    libbb/change_identity.c:45: dereferencing pointer to incomplete type
    libbb/change_identity.c:47: warning: implicit declaration of function `endgrent'
    libbb/change_identity.c:49: dereferencing pointer to incomplete type
    libbb/change_identity.c:51: dereferencing pointer to incomplete type
    libbb/change_identity.c: At top level:
    libbb/change_identity.c:56: warning: `struct passwd' declared inside parameter list
    libbb/change_identity.c: In function `change_identity':
    libbb/change_identity.c:58: warning: passing arg 1 of `change_identity_e2str' from incompatible pointer type
    libbb/change_identity.c:61: warning: implicit declaration of function `bb_perror_msg_and_die'
    make[2]: *** [libbb/change_identity.o] Error 1
    make[2]: Leaving directory `/local/tmp/cvs/WRT54G/src/router/busybox'
    make[1]: *** [busybox] Error 2
    make[1]: Leaving directory `/local/tmp/cvs/WRT54G/src/router'
    make: *** [all] Error 2

    The former ("vanilla" sources with the different diffs successively applied) complains about 2 missing functions (which have in fact been added by Wifi-box, but it seems the file(s) containing those is(are) missing in the diffs):

    broadcom.o: In function `valid_wep_key':
    /local/tmp/WIFI-BOX/release/src/router/shared/broadcom.c(.data+0x3ef4): undefined reference to `ej_server_profile_table'
    /local/tmp/WIFI-BOX/release/src/router/shared/broadcom.c(.data+0x3efc): undefined reference to `ej_uptime'
    collect2: ld returned 1 exit status
    make[2]: *** [httpd] Error 1
    make[2]: Leaving directory `/local/tmp/WRT54G/release/src/router/httpd'
    make[1]: *** [httpd] Error 2
    make[1]: Leaving directory `/local/tmp/WRT54G/release/src/router'
    make: *** [all] Error 2

    Has anybody out there been able to overcome those errors ?

    Thanks a lot in advance for any answer or pointer !

    Idefix
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice