Results 1 to 15 of 43

Thread: HowTo native compilation ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by wpte View Post
    that last line is most likely ur problem, for some reason you can get errors during install.

    try this code to reinstall the whole compile package (also in my howto)


    anyway... you get a syntax error, wich means there are some missing/to mutch signs like ()[] etc.
    Debugging is done via putting breakpoints down... but since I think you can't do that, nor have the software for it... you can better use the lots of debugging flag turned on:


    native compiling is always tricky since not everything is supported on a mipsel device...

    now there isn't mutch else to say about this, because compiling is always tricky, and you do need to know basic programming skills at C or C++ to properly fix things.
    thanks again
    and have a look at errors generated while reinstalling packages

    Ok. Compiling is always tricky, but we all use the same firmware, the same hardware, the same packages, so compiling is a deterministic process
    and we should get the same results for the same configuration and settings.

    Frankly speaking I don't anyone but me, claiming native compilation problems.
    On the other hand, I don't anyone claiming successful native compilation of any package, any program in c.

    You have ever succeeded in native compilation ?
    If so, how did you manage to create any directory in /mnt read only directory ?

    logfile
    ....
    update-alternatives: Linking //opt/bin/sed to /opt/bin/gnu-sed
    Configuring svn
    Configuring tar
    update-alternatives: Linking //opt/bin/tar to /opt/bin/gnutar
    Configuring wget-ssl
    An error ocurred, return value: 22.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-F1bzOx http://ipkg.nslu2-linux.org/feeds/op...-13_mipsel.ipk'
    Failed to download buildroot. Perhaps you need to run 'ipkg update'?
    [admin@oo /mnt]$

    memory usage
    ++++++++++++
    [admin@oo ncurses]$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 3008 3008 0 100% /
    /dev/root 3008 3008 0 100% /
    /dev/discs/disc0/part2
    1198832 1157340 0 100% /opt
    /dev/discs/disc0/part3
    2140816 68444 1963624 4% /tmp/mnt/disc0_3
    [admin@oo ncurses]$

    Any idea what's wrong ?

    /opt/ipkg-F1bzOx looks like broken temporary download

    Darius

  2. #2
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by darius View Post
    You have ever succeeded in native compilation ?
    If so, how did you manage to create any directory in /mnt read only directory ?
    When you read... do you think?
    I have my hdd mounted on /mnt (because it's shorter, duh!)
    maybe you have it mounted on /tmp/harddisk
    I dunno, just place it somewhere you can access it!

    and yes, I had several properly compiled packages under oleg:
    libupnp, wol, Ocaml, openssh, openvpn, ncurses and some others.

    some other guys reading my how-to managed to compile things like extra PHP includes.

    + just start off with something easy and small to compile, so you can get the grip on it and feel the way compiling happens.

  3. #3
    Quote Originally Posted by wpte View Post
    When you read... do you think?
    I have my hdd mounted on /mnt (because it's shorter, duh!)
    maybe you have it mounted on /tmp/harddisk
    I dunno, just place it somewhere you can access it!

    and yes, I had several properly compiled packages under oleg:
    libupnp, wol, Ocaml, openssh, openvpn, ncurses and some others.

    some other guys reading my how-to managed to compile things like extra PHP includes.

    + just start off with something easy and small to compile, so you can get the grip on it and feel the way compiling happens.

    When you read... do you think?
    as you can see my last 2 follow-ups
    there is permanent problem with buildroot download.
    So how could I compile anything easy or small at all .

    Could you verify buildroot download on your native Linux machine ?

    Darius


    [admin@oo /mnt]$ ipkg install -force-overwrite -force-reinstall buildroot
    Reinstalling buildroot (4.1.1-13) on /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...-13_mipsel.ipk
    Nothing to be done
    An error ocurred, return value: 22.
    Collected errors:
    ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-cF3Erv http://ipkg.nslu2-linux.org/feeds/op...-13_mipsel.ipk'
    Failed to download buildroot. Perhaps you need to run 'ipkg update'?
    [admin@oo /mnt]$

  4. #4
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    maybe ur disk is full? it takes 42MB to download...

  5. #5
    Quote Originally Posted by wpte View Post
    maybe ur disk is full? it takes 42MB to download...
    must be the case

    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 3008 3008 0 100% /
    /dev/root 3008 3008 0 100% /
    /dev/discs/disc0/part2
    1198832 1148840 0 100% /opt
    /dev/discs/disc0/part3
    2140816 70716 1961352 4% /tmp/mnt/disc0_3
    [admin@oo root]$

    Any chance to free /opt
    What ipkg, files should I remove ?

    Darius

    My ipkg list_installed

    adduser - 1.10.3-1 - a multi-call binary for login and user account administration
    apr - 1.3.3-1 - Apache Portable Runtime library
    apr-util - 1.3.4-2 - Apache Portable Runtime utilities library
    autoconf - 2.61-2 - Creating scripts to configure source code packages using templates
    automake - 1.10-2 - Creates GNU standards-compliant Makefiles from template files
    bash - 3.2.33-1 - A bourne style shell
    bison - 2.3-2 - a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that gramm
    bluez-hcidump - 1.42-1 - Bluetooth packet analyzer.
    bluez-libs - 3.36-1 - Bluetooth libraries.
    bluez-utils - 3.36-3 - Bluetooth utilities.
    buildroot - 4.1.1-13 - uClibc compilation toolchain
    bzip2 - 1.0.5-1 - Very high-quality data compression program
    coreutils - 6.12-2 - Bunch of heavyweight *nix core utilities
    cron - 4.1-7 - Standard vixie cron, with cron.d addition
    cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
    dbus - 1.1.1-3 - D-Bus is a message bus system, a simple way for applications to talk to one another.
    diffutils - 2.8.1-6 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files
    e2fslibs - 1.41.2-1 - Ext2 Filesystem Libraries
    e2fsprogs - 1.41.2-1 - Ext2 Filesystem Utilities
    expat - 2.0.1-1 - XML Parser library
    file - 4.26-1 - Ubiquitous file identification utility.
    findutils - 4.2.32-1 - File finding utilities
    flex - 2.5.35-1 - Generates programs that perform pattern-matching on text.
    fontconfig - 2.5.0-0 - Font configuration library
    freetype - 2.3.6-1 - Free truetype library
    gawk - 3.1.6-1 - Gnu AWK interpreter
    gconv-modules - 2.2.5-7 - Provides gconv modules missing from the firmware. These are used by glibc iconv() implementation.
    gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
    glib - 2.16.6-1 - The GLib library of C routines.
    gpsd - 2.37-1 - A daemon that communicates with GPS receiver and provides data to other applications.
    groff - 1.19.2-2 - front-end for the groff document formatting system
    gzip - 1.2.4a-3 - GNU Zip data compression program
    hdparm - 9.6-1 - Linux hard drive parameter utility
    ipkg-opt - 0.99.163-10 - The Itsy Package Manager
    less - 418-1 - Less file browser
    libdb - 4.2.52-3 - Berkeley DB Libraries
    libgd - 2.0.35-2 - An ANSI C library for the dynamic creation of images
    libjpeg - 6b-2 - collection of jpeg tools
    libpng - 1.2.34-1 - Portable Network Graphics Libraries
    libtool - 1.5.24-1 - Library tools.
    libuclibc++ - 0.2.2-8 - C++ standard library designed for use in embedded systems
    libuclibc++ - 0.2.2-8 - C++ standard library designed for use in embedded systems
    libxml2 - 2.7.2-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
    lighttpd - 1.4.20-1 - A fast webserver with minimal memory footprint.
    m4 - 1.4.12-1 - gnu macro processor and compiler front end
    make - 3.81-2 - examines files and runs commands necessary for compilation
    mc - 4.6.1-3 - Midnight Commander File Manager
    microcom - 102-1 - A minicom-like serial terminal emulator with scripting support.
    mysql - 4.1.22-2 - Popular free SQL database system
    nano - 2.1.7-1 - A pico like editor
    ncurses - 5.7-1 - NCurses libraries
    ncursesw - 5.7-1 - NCurses libraries with wide char support.
    neon - 0.28.3-1 - an HTTP and WebDAV client library, with a C interface
    nload - 0.7.2-1 - Nload is a console application which monitors network traffic and bandwidth usage in real time
    openldap-libs - 2.3.43-1 - Open Lightweight Directory Access Protocol
    openssl - 0.9.7m-5 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
    optware-devel - 6.8-9 - This is a meta package that bundles all the packages required for optware native development.
    patch - 2.5.9-3 - applies a diff to produce a patched file
    pcre - 7.8-1 - Perl-compatible regular expression library
    perl - 5.8.8-20 - Practical Extraction and Report Language.
    pkgconfig - 0.15.0-1 - Package configuration tool
    ppp - 2.4.3-1 - PPP is the Point-to-Point Protocol daemon.
    procps - 3.2.7-6 - PROCPS System Utilities
    python25 - 2.5.4-1 - Python is an interpreted, interactive, object-oriented programming language.
    readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
    rsync - 3.0.5-1 - fast remote file copy program (like rcp)
    screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
    sed - 4.1.5-3 - Stream editor.
    slang - 2.1.4-1 - S-Lang is a multi-platform library designed to allow a developer to create robust multi-platform software.
    sqlite - 3.6.4-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
    svn - 1.5.5-1 - a compelling replacement for CVS
    tar - 1.21-1 - heavyweight version of the Tape ARchiver
    termcap - 1.3.1-2 - Terminal emulation library
    uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
    unrar - 3.7.8-1 - unrar is an application that can decompress files and archives created using the RAR compression scheme
    unzip - 5.52-3 - A (de)compression library for the ZIP format
    wget-ssl - 1.11.4-1 - A network utility to retrieve files from the Web
    zip - 2.32-1 - a compression and file packaging utility.
    zlib - 1.2.3-3 - zlib is a library implementing the 'deflate' compression system.

  6. #6
    Quote Originally Posted by wpte View Post
    maybe ur disk is full? it takes 42MB to download...
    ok
    what files, directories can I safely delete ?

    is /opt/broadcom/src
    really necessary
    as I removed
    cross-compilation
    GPL_1927.zip
    i
    or is part of optware-devel ipkg
    I installed ?


    Darius

  7. #7
    dialog native compilation

    another failed attemp

    Darius

    Code:
    make
    -----
    ...
    .
    /opt/include/ncursest/curses.h:753: error: previous declaration of 'wclrtobot' was here
    ./curses.h:681: error: conflicting types for 'wclrtoeol'
    /opt/include/ncursest/curses.h:754: error: previous declaration of 'wclrtoeol' was here
    ./curses.h:682: error: conflicting types for 'wcolor_set'
    /opt/include/ncursest/curses.h:755: error: previous declaration of 'wcolor_set' was here
    ./curses.h:683: error: conflicting types for 'wdelch'
    /opt/include/ncursest/curses.h:757: error: previous declaration of 'wdelch' was here
    ./curses.h:684: error: expected declaration specifiers or '...' before '-' token
    ./curses.h:684: error: conflicting types for 'winsdelln'
    /opt/include/ncursest/curses.h:770: error: previous declaration of 'winsdelln' was here
    ./curses.h:685: error: conflicting types for 'wechochar'
    /opt/include/ncursest/curses.h:759: error: previous declaration of 'wechochar' was here
    ./curses.h:686: error: conflicting types for 'werase'
    /opt/include/ncursest/curses.h:760: error: previous declaration of 'werase' was here
    ./curses.h:687: error: conflicting types for 'wgetch'
    /opt/include/ncursest/curses.h:761: error: previous declaration of 'wgetch' was here
    ./curses.h:688: error: conflicting types for 'wgetnstr'
    /opt/include/ncursest/curses.h:762: error: previous declaration of 'wgetnstr' was here
    ./curses.h:689: error: expected declaration specifiers or '...' before '-' token
    ./curses.h:689: error: conflicting types for 'wgetnstr'
    /opt/include/ncursest/curses.h:762: error: previous declaration of 'wgetnstr' was here
    ./curses.h:690: error: conflicting types for 'whline'
    /opt/include/ncursest/curses.h:764: error: previous declaration of 'whline' was here
    ./curses.h:691: error: conflicting types for 'winch'
    /opt/include/ncursest/curses.h:765: error: previous declaration of 'winch' was here
    ./curses.h:692: error: conflicting types for 'winchnstr'
    /opt/include/ncursest/curses.h:766: error: previous declaration of 'winchnstr' was here
    ./curses.h:693: error: expected declaration specifiers or '...' before '-' token
    ./curses.h:693: error: conflicting types for 'winchnstr'
    /opt/include/ncursest/curses.h:766: error: previous declaration of 'winchnstr' was here
    ./curses.h:694: error: conflicting types for 'winnstr'
    /opt/include/ncursest/curses.h:768: error: previous declaration of 'winnstr' was here
    ./curses.h:695: error: conflicting types for 'winsch'
    /opt/include/ncursest/curses.h:769: error: previous declaration of 'winsch' was here
    ./curses.h:696: error: conflicting types for 'winsdelln'
    /opt/include/ncursest/curses.h:770: error: previous declaration of 'winsdelln' was here
    ./curses.h:697: error: expected declaration specifiers or '...' before numeric constant
    ./curses.h:697: error: conflicting types for 'winsdelln'
    /opt/include/ncursest/curses.h:770: error: previous declaration of 'winsdelln' was here
    ./curses.h:698: error: expected declaration specifiers or '...' before '-' token
    ./curses.h:698: error: conflicting types for 'winnstr'
    /opt/include/ncursest/curses.h:768: error: previous declaration of 'winnstr' was here
    ./curses.h:699: error: conflicting types for 'wmove'
    /opt/include/ncursest/curses.h:775: error: previous declaration of 'wmove' was here
    ./curses.h:700: error: conflicting types for 'wnoutrefresh'
    /opt/include/ncursest/curses.h:776: error: previous declaration of 'wnoutrefresh' was here
    ./curses.h:702: error: conflicting types for 'wprintw'
    /opt/include/ncursest/curses.h:778: error: previous declaration of 'wprintw' was here
    ./curses.h:703: error: conflicting types for 'wredrawln'
    /opt/include/ncursest/curses.h:779: error: previous declaration of 'wredrawln' was here
    ./curses.h:704: error: conflicting types for 'wrefresh'
    /opt/include/ncursest/curses.h:780: error: previous declaration of 'wrefresh' was here
    ./curses.h:705: error: conflicting types for 'wresize'
    /opt/include/ncursest/curses.h:852: error: previous declaration of 'wresize' was here
    ./curses.h:707: error: conflicting types for 'wscanw'
    /opt/include/ncursest/curses.h:782: error: previous declaration of 'wscanw' was here
    ./curses.h:708: error: conflicting types for 'wscrl'
    /opt/include/ncursest/curses.h:783: error: previous declaration of 'wscrl' was here
    ./curses.h:709: error: conflicting types for 'wsetscrreg'
    /opt/include/ncursest/curses.h:784: error: previous declaration of 'wsetscrreg' was here
    ./curses.h:710: error: expected declaration specifiers or '...' before numeric constant
    ./curses.h:710: error: conflicting types for 'wattrset'
    /opt/include/ncursest/curses.h:743: error: previous declaration of 'wattrset' was here
    ./curses.h:711: error: expected declaration specifiers or '...' before numeric constant
    ./curses.h:711: error: conflicting types for 'wattrset'
    /opt/include/ncursest/curses.h:743: error: previous declaration of 'wattrset' was here
    ./curses.h:712: error: conflicting types for 'wtimeout'
    /opt/include/ncursest/curses.h:789: error: previous declaration of 'wtimeout' was here
    ./curses.h:713: error: conflicting types for 'wtouchln'
    /opt/include/ncursest/curses.h:790: error: previous declaration of 'wtouchln' was here
    ./curses.h:716: error: conflicting types for 'wvline'
    /opt/include/ncursest/curses.h:791: error: previous declaration of 'wvline' was here
    make: *** [trace.o] Error 1
    [admin@oo dialog]$

  8. #8
    Hi,

    I followed wpte's tutorial, but I get this error right after installing optware-devel and buildroot:

    PHP Code:
    -sh: ./configurenot found 
    What am I missing?

    BTW... I'm trying to compile aircrack-ng (for having airodump working only)

    Cheers,
    dp79

Similar Threads

  1. [PYTANIE] Asus HOWTO - czy byloby zainteresowanie?
    By kaos in forum Polish Discussion - Polski (PL)
    Replies: 7
    Last Post: 30-11-2008, 15:37

Posting Permissions

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