LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2014, 12:11 AM   #1
dharm_sk
LQ Newbie
 
Registered: Jul 2014
Posts: 13

Rep: Reputation: Disabled
Cross Compilation of Net-SNMPv3 with mipsel linux


Hi All,

I am using Ubuntu 11.10 and have to install net-snmp-5.4.3 which uses mipsel-linux libraries from buildroot-mipsel toolchain. I haven't worked with toolchains before.

I have the buildroot folder in /opt/buildroot-micrel.

While doing ./configure in net-snmp-5.4.3 am i supposed to specify mipsel-linux as host or target? I would like to know if any other changes must be done.

When I mentioned host as mipsel-linux and endianness as little, ./configure ran well and gave this summary:

Net-SNMP configuration summary:
---------------------------------------------------------

SNMP Versions Supported: 1 2c 3
Net-SNMP Version: 5.4.3
Building for: linux
Network transport support: Callback Unix TCP UDP
SNMPv3 Security Modules: usm
Agent MIB code: default_modules => snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host
Embedded Perl support: disabled
SNMP Perl modules: building -- not embeddable
SNMP Python modules: disabled
Authentication support: MD5 SHA1
Encryption support: DES AES



but make didn't run as expected and gave the following error:

In file included from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdio.h:28,
from snmp_client.c:44:
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/features.h:216:5: error: #error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file support enabled.
In file included from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdio.h:72,
from snmp_client.c:44:
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/bits/uClibc_stdio.h:61:2: error: #error Sorry... uClibc was built without large file support!
In file included from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/pthread.h:21,
from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/bits/uClibc_mutex.h:15,
from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/bits/uClibc_stdio.h:107,
from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdio.h:72,
from snmp_client.c:44:
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/time.h:177: error: two or more data types in declaration specifiers
In file included from snmp_client.c:44:
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdio.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fpos_t'
In file included from snmp_client.c:44:
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdio.h:719: error: expected declaration specifiers or '...' before 'fpos_t'
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdio.h:721: error: expected ';', ',' or ')' before '*' token
In file included from /opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/stdlib.h:207,
from snmp_client.c:47:
/opt/buildroot-micrel/staging/usr/mipsel-unknown-linux-uclibc/sysroot/usr/include/sys/types.h:90: error: two or more data types in declaration specifiers
make[1]: *** [snmp_client.lo] Error 1

What changes have to be made and what configure options should be tried for installation?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog-ng compilation for mipsel using ubuntu manishkumar6288@gmail.co Programming 5 12-03-2010 12:53 PM
cross-compile the SSH of mipsel-linux platform panger123 Programming 2 06-20-2009 03:18 PM
ARM-Linux Cross compilation Toolkits 2.95 hazzyb Programming 3 02-06-2009 10:21 AM
No floating-point when cross-compiling Python for Mipsel Sytse Linux - Newbie 0 12-05-2008 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration