hxping7 / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

compile firmware(1.9.2.7-rtn) error #315

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.download hndtools-mipsel-uclibc-4.4.6-K26-r3826.tar.bz2 and           
linux-2.6.22.19.tar.bz2
2.follow the steps on the wiki web to compile the firmware

What is the expected output? What do you see instead?
when making gagteway, i found the error:

make -C busybox all STRIP=mipsel-uclibc-strip EXTRA_LDFLAGS="-Wl,-rpath /lib"
make[1]: Entering directory `/root/Desktop/brcm/src/gateway/busybox'
  LINK    busybox_unstripped

Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
mipsel-uclibc-gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes 
-Wunused -Wunused-parameter -Wunused-function -Wunused-value 
-Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement 
-Wold-style-definition -fno-builtin-strlen -finline-limit=0 
-fomit-frame-pointer -ffunction-sections -fdata-sections 
-fno-guess-branch-probability -funsigned-char -static-libgcc 
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os 
-mips32 -mtune=mips32 -Wno-pointer-sign -DBCMWPA2 -DLINUX26 -Wl,-rpath /lib -o 
busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment 
-Wl,--gc-sections -Wl,--start-group applets/built-in.o archival/lib.a 
archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a 
coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a 
e2fsprogs/e2p/lib.a e2fsprogs/ext2fs/lib.a editors/lib.a findutils/lib.a 
init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a 
miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a 
networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a 
shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a 
archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o 
coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o 
e2fsprogs/built-in.o e2fsprogs/e2p/built-in.o e2fsprogs/ext2fs/built-in.o 
editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o 
libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o 
miscutils/built-in.o modutils/built-in.o networking/built-in.o 
networking/libiproute/built-in.o networking/udhcp/built-in.o 
printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o 
shell/built-in.o sysklogd/built-in.o util-linux/built-in.o 
util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm 
-Wl,--end-group
==========
networking/lib.a(ipcalc.o): In function `ipcalc_main':
ipcalc.c:(.text.ipcalc_main+0x268): warning: gethostbyaddr is obsolescent, use 
getaddrinfo() instead.
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xe8): warning: gethostbyname is obsolescent, use 
getnameinfo() instead.
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/bin/ld: warning: ld-uClibc.so.0, needed by 
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/lib/libc.so, not found (try using -rpath or 
-rpath-link)
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/lib/libc.so: undefined reference to 
`_dl_app_init_array'
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/lib/libc.so: undefined reference to 
`__tls_get_addr'
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/lib/libc.so: undefined reference to 
`_dl_loaded_modules'
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/lib/libc.so: undefined reference to 
`_dl_app_fini_array'
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
make[1]: Leaving directory `/root/Desktop/brcm/src/gateway/busybox'
make: *** [busybox] Error 2

What version of the product are you using?
RT-N10
1.9.2.7-rtn

Original issue reported on code.google.com by shiyuanj...@gmail.com on 27 Apr 2012 at 6:19

GoogleCodeExporter commented 9 years ago
toolchain was not installed properly:

/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/bin/ld: warning: ld-uClibc.so.0, needed by 
/root/Desktop/brcm/hndtools-mipsel-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.4
.6/../../../../mipsel-linux-uclibc/lib/libc.so, not found (try using -rpath or 
-rpath-link)

Original comment by lly.dev on 27 Apr 2012 at 7:02