Hi, I'm newbie in Linux land. I'm trying to build a small router for GPRS applications and I downloaded last version of uclinux (uClinux-dist-20070130) and m68k-tools (m68k-uclinux-tools-20061214) for a M5272C3 EVB.
It compiles fine for default options, but when I set routing functions, linker stage for libnfnetlink doesn't works. Here it's output: make[5]: Entering directory `/uClinux-dist/lib/libnfnetlink/build/src' /bin/sh ../libtool --mode=link ucfront-gcc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -fPIC -Wall -O2 -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -Wl,--fatal-warnings -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings -Wl,-elf2flt -Wl,-move-rodata -msep-data -o libnfnetlink.la -rpath /lib -Wc,-nostartfiles libnfnetlink.lo rm -fr .libs/libnfnetlink.so.0.0.0.elf .libs/libnfnetlink.so.0.0.0.elf2flt ucfront-gcc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -shared .libs/libnfnetlink.o -m5307 -msep-data -Wl,--fatal-warnings -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings -Wl,-elf2flt -Wl,-move-rodata -msep-data -nostartfiles -Wl,-soname -Wl,libnfnetlink.so.0 -o .libs/libnfnetlink.so.0.0.0 /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 00000000 .libs/libnfnetlink.so.0.0.0.elf2flt: In function `__uClibc_start_main': : undefined reference to `main' collect2: ld returned 1 exit status make[5]: *** [libnfnetlink.la] Error 1 make[5]: Leaving directory `/uClinux-dist/lib/libnfnetlink/build/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/uClinux-dist/lib/libnfnetlink/build' make[3]: *** [all] Error 2 make[3]: Leaving directory `/uClinux-dist/lib/libnfnetlink' make[2]: *** [libnfnetlink] Error 2 make[2]: Leaving directory `/uClinux-dist/lib' make[1]: *** [all] Error 2 make[1]: Leaving directory `/uClinux-dist/lib' make: *** [subdirs] Error 1 [EMAIL PROTECTED] uClinux-dist]# It didn't works for kernel 2.4 neither kernel 2.6 I also compile my own version of tools just to see if that solves the problem, but it doesn't. I guess all problem is a symbolink link to tell compiler where to search for uClibc libraries. But problem is where to put symbolic link? I also have tried switching from uClibc to uC-lib and kernel and libraries stages compile fine, but user apps won't compile. By the way, uC-lib isn't to old now for user apps now? Also when I set MTD options using kernel 2.6 there's a compile problem in jedec probe. Here it's output: make[1]: Entering directory `/uClinux-dist/linux-2.6.x' CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h GEN usr/initramfs_data.cpio.gz AS usr/initramfs_data.o LD usr/built-in.o CC drivers/mtd/chips/jedec_probe.o drivers/mtd/chips/jedec_probe.c:395: error: 'MTD_UADDR_0x1554_0x0AAA' no se declaró aquí (no en una función) make[4]: *** [drivers/mtd/chips/jedec_probe.o] Error 1 make[3]: *** [drivers/mtd/chips] Error 2 make[2]: *** [drivers/mtd] Error 2 make[1]: *** [drivers] Error 2 make[1]: Leaving directory `/uClinux-dist/linux-2.6.x' make: *** [linux] Error 1 [EMAIL PROTECTED] uClinux-dist]# It works for 2.4 version. I also change user to root, isn't the best practice, but I have to try! ;) -- Francisco Perea Ing. Electricista -- Francisco Perea Ing. Electricista _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
