1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

firmware compile issues

Discussion in 'Cisco Small Business Routers and VPN Solutions' started by JonAlthoff, Jul 28, 2004.

  1. JonAlthoff

    JonAlthoff Network Guru Member

    I've given up on it for a while but here are the messages I was getting from trying to compile firmware I had posted on the Sveasoft forums.
    --------------------------------------------------------------------------------

    Version 2.03
    ipsec_hwaccel.c:145: warning: function declaration isn't a prototype
    ipsec_hwaccel.c: In function `ipsec_hwaccel_OsBuffPoolUnchainedBufGet':
    ipsec_hwaccel.c:146: `poolPtr' undeclared (first use in this function)
    ipsec_hwaccel.c:147: `newBufPtrPtr' undeclared (first use in this function)
    ipsec_hwaccel.c: At top level:
    ipsec_hwaccel.c:150: parse error before `*'
    ipsec_hwaccel.c:150: parse error before `*'
    ipsec_hwaccel.c:151: warning: return-type defaults to `int'
    ipsec_hwaccel.c:151: warning: function declaration isn't a prototype
    ipsec_hwaccel.c: In function `ipsec_hwaccel_OsBuffPoolBufFree':
    ipsec_hwaccel.c:152: `bufPtr' undeclared (first use in this function)
    ipsec_hwaccel.c:152: called object is not a function
    ipsec_hwaccel.c:153: warning: control reaches end of non-void function
    ipsec_hwaccel.c: At top level:
    ipsec_sa.h:60: storage size of `ips_errs' isn't known
    make[3]: *** [ipsec_hwaccel.o] Error 1
    make[3]: Leaving directory `/usr/local/src/WRV54G/os/linux-2.4/net/ipsec'
    make[2]: *** [first_rule] Error 2
    make[2]: Leaving directory `/usr/local/src/WRV54G/os/linux-2.4/net/ipsec'
    make[1]: *** [_subdir_ipsec] Error 2
    make[1]: Leaving directory `/usr/local/src/WRV54G/os/linux-2.4/net'
    make: *** [_dir_net] Error 2

    2.10
    utils.c:259: warning: implicit declaration of function `time'
    utils.c:260: warning: implicit declaration of function `ctime'
    utils.c:260: warning: assignment makes pointer from integer without a cast
    In file included from extra_crypto.c:22:
    /usr/local/src/cd_dir_gpl/pkg/freeswan/libdes/des.h:204: warning: function declaration isn't a prototype
    md4.c:124: warning: function declaration isn't a prototype
    In file included from chap_ms.c:59:
    stpcpy.h:38: warning: function declaration isn't a prototype
    chap_ms.c:219: warning: function declaration isn't a prototype
    main.o: In function `main':
    /usr/local/src/cd_dir_gpl/pkg/ppp/pppd/main.c:807: undefined reference to `extract_pty_ip'
    /usr/local/src/cd_dir_gpl/pkg/ppp/pppd/main.c:1027: undefined reference to `kill_proc_by_cmdline'
    /usr/local/src/cd_dir_gpl/pkg/ppp/pppd/main.c:1116: undefined reference to `kill_proc_by_cmdline'
    main.o: In function `device_script':
    /usr/local/src/cd_dir_gpl/pkg/ppp/pppd/main.c:1969: undefined reference to `create_args'
    main.o: In function `build_device_configuration':
    /usr/local/src/cd_dir_gpl/pkg/ppp/pppd/main.c:2842: undefined reference to `ip_class_netmask'
    collect2: ld returned 1 exit status

    2.21
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    sh.c:713: warning: function declaration isn't a prototype
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    tail.c:56: warning: function declaration isn't a prototype
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    tar.c: In function `readTarFile':
    tar.c:634: warning: `status' might be used uninitialized in this function
    tar.c: At top level:
    tar.c:585: warning: `exclude_file' defined but not used
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    busybox.o: In function `busybox_main':
    /usr/local/src/cd_dir_gpl/pkg/busybox/busybox.c:178: undefined reference to `stty_main'
    collect2: ld returned 1 exit status

    2.25.2
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    sh.c:713: warning: function declaration isn't a prototype
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    tail.c:56: warning: function declaration isn't a prototype
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    tar.c: In function `readTarFile':
    tar.c:634: warning: `status' might be used uninitialized in this function
    tar.c: At top level:
    tar.c:585: warning: `exclude_file' defined but not used
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    cc1: warning: -g with -fomit-frame-pointer may not give sensible debugging
    busybox.o: In function `busybox_main':
    /usr/local/src/cd_dir_gpl/pkg/busybox/busybox.c:178: undefined reference to `stty_main'
    collect2: ld returned 1 exit status
    -----------------------------------------------------------------------------

    --------------------------------------------------------------------------------

    make[2]: Entering directory `/usr/local/src/cd_dir_gpl/pkg/util'
    /usr/local/src/cd_dir_gpl/pkg/build/rg_gcc -D_LIBC_REENTRANT -I/usr/local/src/c
    d_dir_gpl/pkg/include -I/usr/local/src/cd_dir_gpl/pkg -I/usr/local/src/cd_dir_gp
    l/pkg/build/include -Wall -g -Os -mbig-endian -mapcs-32 -march=armv4 -mtune=st
    rongarm -mshort-load-bytes -DCONFIG_RG_TARGET_LINUX -Wstrict-prototypes -c -o
    openrg_gpl.o openrg_gpl.c
    /usr/local/src/cd_dir_gpl/pkg/build/rg_gcc -shared -o libopenrg_gpl.so openrg
    _gpl.o ipc.o bio_socket.o memory.o \
    -Wl,--no-whole-archive
    make[2]: Leaving directory `/usr/local/src/cd_dir_gpl/pkg/util'
    make -C tz/ all
    make[2]: Entering directory `/usr/local/src/cd_dir_gpl/pkg/tz'
    /usr/local/openrg/i386-jungo-linux-gnu/bin/i386-jungo-linux-gnu-gcc -DCC_FOR_BUI
    LD -I/usr/local/src/cd_dir_gpl/pkg/include -DCONFIG_HAS_MMU -I/usr/local/src/cd_
    dir_gpl/pkg -I/usr/local/src/cd_dir_gpl/pkg/include -DCONFIG_RG_TARGET_LINUX -O0
    -g -Wall -Wstrict-prototypes -I/usr/local/src/cd_dir_gpl/pkg/ -I/usr/local/src
    /cd_dir_gpl/pkg/include -c -o local_zic.o zic.c
    make[2]: /usr/local/openrg/i386-jungo-linux-gnu/bin/i386-jungo-linux-gnu-gcc: Co
    mmand not found
    make[2]: *** [local_zic.o] Error 127
    make[2]: Leaving directory `/usr/local/src/cd_dir_gpl/pkg/tz'
    make[1]: *** [tz/all.subdir__] Error 2
    make[1]: Leaving directory `/usr/local/src/cd_dir_gpl/pkg'
    make: *** [pkg/all.subdir__] Error 2

    -------------------------------------------------------------------------------

    --------------------------------------------------------------------------------

    ./busybox.sh: line 1: /usr/local/openrg/i386-jungo-linux-gnu/bin/i386-jungo-linu
    x-gnu-gcc: No such file or directory
    rm -f .depend
    /usr/local/src/cd_dir_gpl/pkg/build/rg_gcc -M -MG -D_LIBC_REENTRANT -I/usr/local
    /src/cd_dir_gpl/pkg/include -I/usr/local/src/cd_dir_gpl/pkg -I/usr/local/src/cd_
    dir_gpl/pkg/build/include -Wall -g -Os -mbig-endian -mapcs-32 -march=armv4 -mt
    une=strongarm -mshort-load-bytes -DCONFIG_RG_TARGET_LINUX -Wstrict-prototypes -
    Wall -Os -fomit-frame-pointer -D_GNU_SOURCE -fno-builtin -DBB_VER='"0.50"' -DBB
    _BT='"2004.05.19-03:27+0000"' -DUSE_SYSTEM_PWD_GRP busybox.c messages.c usage
    .c utility.c >> .depend;

    Does this mean that the missing part of the source code in the /usr/local/openrg/i386-jungo-linux-gnu folder?

    --------------------------------------------------------------------------------
    Message from Sveasoft/James
    Looks like you need to compile your own cross-compiler toolcahin and put it into the /usr/local/openrg/i386-jungo-linux-gnu/bin/i386-jungo-linu
    x-gnu-gcc directory or find out where the toolcahin is (if it's included) and modify the Busybox condig to point to it.

    --------------------------------------------------------------------------------

    I went back to 2.03 and updated to 2.25.2. running the sh compile.sh gives this:

    busybox.o: In function `busybox_main':
    /usr/local/src/cd_dir_gpl/pkg/busybox/busybox.c:178: undefined reference to `stty_main'
    collect2: ld returned 1 exit status

    --------------------------------------------------------------------------------

    Changed applets.h

    #ifdef BB_STTY
    APPLET_nousage(stty, stty_main, _BB_DIR_BIN)
    #endif

    maybe the stty.0 file is missing?

    Next...

    /usr/local/src/WRV54G/pkg/build/include/netinet/in.h:220: storage size of `sin_addr' isn't known
    /usr/local/src/WRV54G/pkg/build/include/netinet/in.h:235: storage size of `sin6_addr' isn't known

    --------------------------------------------------------------------------------

    Have you bothered to download the sourcecode yet James? I guess after thinking about it I am uncertain you would be able to download all of the required parts of the sourcecode.

    After following and reading the whole page on Seattlewireless I have gotten a little further. I will now have to wait until Intel grants me the ability to download the crypto software for the ixp425.

    http://www.seattlewireless.net/index.cgi/LinksysWrv54g

    After realizing James is not in the US it may not be possible to download the Intel portion of the software with crypto.

    http://www.intel.com/design/network/products/npfamily/ixp425swr1.htm

    --------------------------------------------------------------------------------

    I figured out the real problem for the busybox error. I figured out I needed to add a line to compile (I guess) the stty program

    $RGCC -D_LIBC_REENTRANT -I$RGSRC/pkg/include -I$RGSRC/pkg -I$RGSRC/pkg/build/include -Wall -g -Os -mbig-endian -mapcs-32 -march=armv4 -mtune=strongarm -mshort-load-bytes -DCONFIG_RG_TARGET_LINUX -Wstrict-prototypes -Wall -Os -fomit-fram
    e-pointer -D_GNU_SOURCE -fno-builtin -DBB_VER="\"0.50\"" -DBB_BT="\"2003.08.25-22:39+0000\"" -DUSE_SYSTEM_PWD_GRP -c -o stty.o stty.c

    And add stty.o to this line as well.

    $RGCC cat.o chmod_chown_chgrp.o cmdedit.o cp_mv.o date.o df.o du.o echo.o grep.o gunzip.o gzip.o head.o ifconfig.o insmod.o interface.o kill.o ln.o ls.o lsmod.o mkdir.o more.o mount.o mtab.o ping.o ps.o pwd.o rm.o rmdir.o rmmod.o route.o sh.o sort.o stty.o sync.o tail.o tar.o tftp.o touch.o umount.o usleep.o busybox.o messages.o usage.o utility.o -L$RGSRC/pkg/lib -Wl,-warn-common -o busybox

    --------------------------------------------------------------------------------

    whack.c: In function `main':
    whack.c:649: warning: `opt_whole' might be used uninitialized in this function
    server.o: In function `init_ctl_socket':
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/server.c:117: undefined reference to `ipc_connect'
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/server.c:117: undefined reference to `ipc_write'
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/server.c:123: undefined reference to `ipc_client_close'
    kernel.o: In function `do_command':
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/kernel.c:805: undefined reference to `ipc_connect'
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/kernel.c:805: undefined reference to `ipc_write'
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/kernel.c:805: undefined reference to `ipc_write'
    /usr/local/src/cd_dir_gpl/pkg/freeswan/pluto/kernel.c:814: undefined reference to `ipc_client_close'
    collect2: ld returned 1 exit status
     
  2. Gallardo

    Gallardo Network Guru Member

    HI!

    First of all james can download the intel code, i'm from austria and got the code too ;)

    2nd:

    how did you compile the code? (I tried serveral times now but without success, the first warning i get is in the lib.c the function sock_socket...)

    thx,

    greetz Gallardo
     
  3. Kugeln

    Kugeln Network Guru Member

    Those freeswan error messages may be related to the intel patch for freeswan (that I *think* enable freeswan to use the crypto-accelerator features of the IXP425). There's mention in the changelog of intel patches for freeswan, and IIRC, they're on the intel FTP server to download as well.


    --k-
     
  4. noaaah

    noaaah Network Guru Member

    I solved a similiar problem where it couldnt compile IPSEC stuff because it was missing the "glue" file or something similiar.

    I downloaded the sources for RV082, and in it, theres a tar file that has the missing files.

    Just copy them over to the vendor/intel/ixp425 folder and un-tar.

    I forgot the excact paths and will pull them up if you need them. But the point is that the RV082 source code has the missing files, dont ask me why they didnt include them into the RV042 tar. Maybe forgot?
     
  5. noaaah

    noaaah Network Guru Member

    My mistake, RV016 source has the file.
    Not sure if RV082 has it, because the source code file for 82 is corrupted, at least for me. And I've downloaded it a couple of times.
     

Share This Page