While "networking/interface.c" is compiled, the error message looks like:
----- below : compilation & error message ----- /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-l inux-gnu-gcc -Wp,-MD,networking/.interface.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.11.1)" -DBB_BT=AUTOCONF_TIMESTAMP -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -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 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(interface)" -D"KBUILD_MODNAME=KBUILD_STR(interface)" -c -o networking/interface.o networking/interface.c networking/interface.c:818: error: 'ARPHRD_INFINIBAND' undeclared here (not in a function) make[3]: *** [networking/interface.o] Error 1 ----- above : compilation & error message ----- ARPHRD_INFINIBAND is defined in <linux/if_arp.h> in my tool, and here comes my questions: Q1: networking/interface.c includes <net/if_arp.h>. However, there is no ".../net/if_arp.h" exists in /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/ arm-unknown-linux-gnu/include/ or busybox's header file directories. Why the compiler didn't compile for this file's not existence? Please note that ARPHRD_INFINIBAND is defined in <linux/if_arp.h> in this tool. Q2 : What macro values can I set while I invoke make to compile busybox? (e.g. CROSS_COMPILE, V, ...?) Any list? Could they be listed in "make help"? Q3 : Shall I set proper macro values while making busybox (in order to include proper header files and link proper libraries)? Q4 : if the cross-compiler and glibc is too new, which version is preferred? And could I get a ready-made version from internet? (I need a tool to compile linux-2.6.x.x, busybox-1.11.x, and some other gnu applications e.g. pure-ftp, lighttpd, ...) Thank you very much. Best Regards, Stan Liao _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
