Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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?

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    -->

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •