<div>I am trying to compile uclibc-0.9.26 with</div>
<div>binutils-2.15, gcc-3.3.3, kernel headers version 2.4.27</div>
<div> </div>
<div>when i run make i get the following error</div>
<div> </div>
<div>[root@shastabuild uClibc-0.9.26]# make CROSS=mips-linux-<br>+ ./extra/scripts/fix_includes.sh -k /mnt/hdb/mips-toolchain/kernel/linux-kernel-2.4 -t mips<br>Current kernel version is 2.4.27-ubnt0</div>
<div><br>Using kernel headers from 2.4.27-ubnt0 for architecture 'mips'<br> provided in directory /mnt/hdb/mips-toolchain/kernel/linux-kernel-2.4</div>
<div><br>+ TOPDIR=.<br>+ CC=mips-linux-gcc<br>+ /bin/sh extra/scripts/gen_bits_syscall_h.sh<br>+ cmp include/bits/sysnum.h include/bits/sysnum.h.new<br>+ mv -f include/bits/sysnum.h.new include/bits/sysnum.h<br>make -C libc/sysdeps/linux/common headers<br>
make[1]: Entering directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/linux/common'<br>ln -fs ../libc/sysdeps/linux/common/fpu_control.h ../../../..//include/<br>make[1]: Leaving directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/linux/common'<br>
make -C libc/sysdeps/linux/mips headers<br>make[1]: Entering directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/linux/mips'<br>ln -fs ../libc/sysdeps/linux/mips/sgidefs.h ../../../..//include/<br>ln -fs ../libc/sysdeps/linux/mips/fpu_control.h ../../../..//include/<br>
make[1]: Leaving directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/libc/sysdeps/linux/mips'<br>make -C ldso<br>make[1]: Entering directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso'<br>ln -fs ../../include/elf.h include/<br>
ln -fs ../ldso/mips/boot1_arch.h include/<br>ln -fs ../ldso/mips/ld_syscalls.h include/<br>ln -fs ../ldso/mips/ld_sysdep.h include/<br>make -C ldso;<br>make[2]: Entering directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso/ldso'<br>
mips-linux-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -Os -mno-split-addresses -mips32 -mtune=mips32 -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/mnt/hdb/mips-toolchain/mips-linux/\" -fno-builtin -nostdinc -I../../ldso/include -I. -I../../include -I/mnt/hdb/mips-toolchain/lib/gcc-lib/mips-linux/3.3.3/include -I../libdl -c ldso.c -o ldso.o<br>
In file included from _dl_progname.h:2,<br> from ldso.c:156:<br>mips/elfinterp.c: In function `_dl_parse_relocation_information':<br>mips/elfinterp.c:177: warning: unused variable `old_val'<br>ldso.c: In function `_dl_boot2':<br>
ldso.c:362: error: `PAGE_SIZE' undeclared (first use in this function)<br>ldso.c:362: error: (Each undeclared identifier is reported only once<br>ldso.c:362: error: for each function it appears in.)<br>ldso.c:454:2: warning: #warning "Debugging threads on mips won't work till someone fixes this..."<br>
../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>In file included from ldso.c:1343:<br>readelflib1.c: In function `_dl_load_elf_shared_library':<br>readelflib1.c:452: error: `PAGE_SIZE' undeclared (first use in this function)<br>
In file included from ldso.c:1343:<br>../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>
../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>
../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>readelflib1.c: In function `_dl_dprintf':<br>readelflib1.c:787: error: `PAGE_SIZE' undeclared (first use in this function)<br>
In file included from ldso.c:1343:<br>../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>In file included from ldso.c:1343:<br>readelflib1.c: In function `_dl_malloc':<br>
readelflib1.c:886: error: `PAGE_SIZE' undeclared (first use in this function)<br>In file included from ldso.c:1343:<br>../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>
../../ldso/include/ld_syscall.h: In function `_dl_mmap':<br>../../ldso/include/ld_syscall.h:56: warning: use of memory input without lvalue in asm operand 7 is deprecated<br>make[2]: *** [ldso.o] Error 1<br>make[2]: Leaving directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso/ldso'<br>
make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/mnt/hdb/mips-toolchain/sources/uClibc-0.9.26/ldso'<br>make: *** [_dir_ldso] Error 2<br></div>
<div>can anyone please help me solve this problem?</div>
<div> </div>
<div>regards</div>
<div>abhijit</div>
<div> </div>