OpenWrt Forum Archive

Topic: mips cross compile issue

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi I need file like this:

libnetsnmpmibs.so.15.1.0: ELF 32-bit LSB shared object, MIPS, version 1 (SYSV), not stripped

Could someone help me? I developed new MIBs for SNMPD  (school project) and need this file as a library during cross-compilation. I'm still beginner in cross compiling, so I appreciate all tips how to do that.

That file is part of 5.4.1 sources,
http://net-snmp.sourceforge.net/download.html

(Last edited by maestro2912 on 1 Jun 2008, 10:12)

here are some details:
"gcc_mips" is symbolic link on "gcc" from openwrt

[maestro@creative3 agent]$ /data/release/brcm-2.4/staging_dir_mipsel/mipsel-linux-uclibc/bin/gcc --version
gcc (GCC) 3.4.6 (OpenWrt-2.0)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# cross-compiling a subagent (my code), library libnetsnmpmibs.so for mips architecture is missing:
command: make all
output: http://www.localnet.sk/~maestro/bc/cros … tion_error

# cross-compiling net-snmp package
- missing library libnetsnmpmibs.so is available in net-snmp 5.4.1 package, but I need to compile it for mips architecture. So I substituted all "gcc" with "gcc_mips" in "configure" file and run configuration.
command: ./configure --target=mips  --with-endianness=big
output: http://www.localnet.sk/~maestro/bc/cros … figure.log

command: make
output:
http://www.localnet.sk/~maestro/bc/cros … d_make.log

Please can someone help with cross compilation? Am I'm doing something wrong? I'm new to cross compiling.

(Last edited by maestro2912 on 1 Jun 2008, 10:10)

The discussion might have continued from here.