Hi have a problem compiling open-wrt for x86 generic.

When i do the following it compiles ok :-)

svn co svn://svn.openwrt.org/openwrt/branches/backfire openwrt-src
cd openwrt-src
make package/symlinks
make prepare

Then i enabled php-cli using make menuconfig.

After that i try to compile it again and then i get the following compile error:

Perry

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

+ for file in include/mysql/plugin.h include/mysql.h
+ i486-openwrt-linux-uclibc-gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql/plugin.h + /home/openwrt/openwrt/openwrt-src/staging_dir/host/bin/sed -e '/^# /d' -e '/^[ ]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ /usr/bin/diff -w include/mysql/plugin.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
+ for file in include/mysql/plugin.h include/mysql.h
+ i486-openwrt-linux-uclibc-gcc -E -nostdinc -dI -DMYSQL_ABI_CHECK -I./include -I./include/mysql -I./sql -I./include -I./include/mysql -I./sql include/mysql.h + /home/openwrt/openwrt/openwrt-src/staging_dir/host/bin/sed -e '/^# /d' -e '/^[ ]*$/d' -e '/^#pragma GCC set_debug_pwd/d' -e '/^#ident/d'
+ /usr/bin/diff -w include/mysql.h.pp ./abi_check.out
+ /bin/rm ./abi_check.out
make[6]: Leaving directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53' make[6]: Entering directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53' make[5]: Leaving directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53' make[4]: Leaving directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53' make -C "/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53/libmysql" CC="gcc" LINK="gcc -o conf_to_src -lc" CFLAGS="" CPPFLAGS="" conf_to_src make[4]: Entering directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53/libmysql' /bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -static -L/home/openwrt/openwrt/openwrt-src/staging_dir/target-i386_uClibc-0.9.30.1/usr/lib -L/home/openwrt/openwrt/openwrt-src/staging_dir/target-i386_uClibc-0.9.30.1/lib -L/home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib -L/home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/lib -rdynamic -o conf_to_src conf_to_src.o libtool: link: gcc -rdynamic -o conf_to_src conf_to_src.o -L/home/openwrt/openwrt/openwrt-src/staging_dir/target-i386_uClibc-0.9.30.1/usr/lib -L/home/openwrt/openwrt/openwrt-src/staging_dir/target-i386_uClibc-0.9.30.1/lib -L/home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib -L/home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/lib /usr/bin/ld: warning: ld-uClibc.so.0, needed by /home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/libc.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x1d): undefined reference to `__libc_start_main'
conf_to_src.o: In function `print_array':
conf_to_src.c:(.text+0x189): undefined reference to `__ctype_b_loc'
conf_to_src.c:(.text+0x221): undefined reference to `__ctype_b_loc'
/home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/libc.so: undefined reference to `_dl_app_init_array' /home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/libc.so: undefined reference to `_dl_loaded_modules' /home/openwrt/openwrt/openwrt-src/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/libc.so: undefined reference to `_dl_app_fini_array'
collect2: ld returned 1 exit status
make[4]: *** [conf_to_src] Error 1
make[4]: Leaving directory `/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53/libmysql' make[3]: *** [/home/openwrt/openwrt/openwrt-src/build_dir/target-i386_uClibc-0.9.30.1/mysql-5.1.53/.built] Error 2 make[3]: Leaving directory `/home/openwrt/openwrt/openwrt-src/feeds/packages/libs/mysql'
make[2]: *** [package/feeds/packages/mysql/compile] Error 2
make[2]: Leaving directory `/home/openwrt/openwrt/openwrt-src'
make[1]: *** [/home/openwrt/openwrt/openwrt-src/staging_dir/target-i386_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/openwrt/openwrt-src'
make: *** [world] Error 2


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to