[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Bug+Problem building Net-SNMP



Hello,

 

I am trying to build Net-SNMP (mini-agent with mib + trap app) application into the kernel.

 

1)      I had to change the user/Makefile from dir_$(CONFIG_USER_UCDSNMP_SNMPD) to dir_$(CONFIG_USER_NETSNMP_SNMPD) for the build to get started (I think this is a bug)

2)      After that doing a make all dep give the following error:

 

-dist/user/Makefile wrong var (doesn't agree with -dist/configure/.oldconfig to include net-snmp in romfs

 

microblaze-uclinux-gcc  -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall  -mcpu=v -mno-xl-soft-mul -mcpu=v7.00.a   -DEMBED -I/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist -I/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/include -I/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/include -Dlinux -D__linux__ -Dunix -D__uClinux__ -DLINUX -shared  snmp_client.lo mib.lo parse.lo snmp_api.lo snmp.lo snmp_auth.lo asn1.lo md5.lo snmp_parse_args.lo system.lo vacm.lo int64.lo read_config.lo snmp_debug.lo tools.lo snmp_logging.lo snmpv3.lo lcd_time.lo keytools.lo scapi.lo callback.lo default_store.lo snmp_alarm.lo data_list.lo oid_stash.lo mt_support.lo snmp_enum.lo snmp-tc.lo snprintf.lo strlcpy.lo strtol.lo strtoul.lo strtok_r.lo snmp_transport.lo snmpUDPDomain.lo snmpTCPDomain.lo snmpUnixDomain.lo snmpCallbackDomain.lo snmp_secmod.lo snmpusm.lo snmp_version.lo check_varbind.lo container.lo container_binary_array.lo container_null.lo container_list_ssll.lo container_iterator.lo cmu_compat.lo ucd_compat.lo   -Wl,-soname -Wl,libnetsnmp.so.5 -o .libs/libnetsnmp.so.5.2.1

microblaze-uclinux-gcc: unrecognized option `-shared'

.libs/libnetsnmp.so.5.2.1.elf2flt: In function `_start':

.libs/libnetsnmp.so.5.2.1.elf2flt(.text+0x44): undefined reference to `main'

.libs/libnetsnmp.so.5.2.1.elf2flt: In function `__ashldi3':

/home/jwilliams/PetaLogix/petalinux-test/toolchains/microblaze-uclinux/srcs/gcc/gcc/libgcc2.c(.text+0x5f6e0): undefined reference to `main'

collect2: ld returned 1 exit status

make[4]: *** [libnetsnmp.la] Error 1

make[4]: Leaving directory `/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/user/net-snmp/build/snmplib'

make[3]: *** [subdirs] Error 1

make[3]: Leaving directory `/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/user/net-snmp/build'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/user/net-snmp'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/devel/petalinux-v0.30-rc1DEV/software/petalinux-dist/user'

make: *** [subdirs] Error 1

 

I am not quite sure if the error is due to “microblaze-uclinux-gcc: unrecognized option `-shared'”

Or

“the incorrect path “/home/jwilliams/PetaLogix/petalinux-test/toolchains/microblaze-uclinux/srcs/gcc/gcc/libgcc2.c”

 

Thanks for any insight.

 

-A Bose