Forum Discussion
Altera_Forum
Honored Contributor
20 years agoThanks hippo, I'm going to try out the buildroot toolchain. I'll let you know how it goes.
About net-snmp, if anyone needs to port 5.3.0.1, you can use the same procedure as for 5.2.2, except I also needed to comment out the definitions of getutent, endutent, and setutent in agent/mibgroup/host/hr_system.c (they're already defined in uClibc and the linker complains about having two sets of them). Also, if you use the same toolchain binaries as I did, then gcc's optimizer will introduce a bug when compiling agent/mibgroup/hardware/cpu/cpu.c. Either add 'asm("nop");' after the call to _cpu_update_stats on line 34, or compile with -O1 instead of -O2. Incidentally, I've also found that it's not necessary to use --with-ldflags="-Wl,-v" and then edit the Makefiles to add -elf2flt. You can just use --with-ldflags="-elf2flt" when running ./configure.