Page 1 of 2 12 LastLast
Results 1 to 15 of 43

Thread: HowTo native compilation ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    HowTo native compilation ?

    Hi,

    worked really hard, got help from many people and still see no chance to compile basic Linux application for a router, called Linux Dialog.

    Could you kindly write HowTo native compilation ?


    Please read the following thread
    http://wl500g.info/showthread.php?t=17717

    Linux dialog sources
    http://ftp.de.debian.org/debian/pool...21.orig.tar.gz

    ============================================

    created a toolchain for native compilation use:
    ipkg install optware-devel

    as advised by al37919

    running
    /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc

    i get the follwing errors

    ======================
    [admin@oo /opt]$ mipsel-uclibc-gcc -o helloworld
    -sh: mipsel-uclibc-gcc: not found
    [admin@oo /opt]$ /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc
    /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc: /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc: 1: Syntax error: "(" unexpected
    [admin@oo /opt]$ /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc --help
    /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc: /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc: 1: Syntax error: "(" unexpected
    [admin@oo /opt]$


    Any sollution for syntax error "(" ?

    And what directory is/was correct to save optware-devel
    and how to make

    /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-0.9.19/bin/mipsel-uclibc-gcc

    running as
    mipsel-uclibc-gcc
    only ?

    What is your solution ?

    Tried to install
    mkdir /opt
    cd /opt < enter >
    wget http://www.asuscom.de/pub/ASUS/wirel...3/GPL_1927.zip < enter >
    tar zxf ./GPL_1927.zip < enter >
    cp -R /opt/broadcom/opt/brcm /opt < enter >

    ==========
    cd /var/tmp
    wget http://oleg.wl500g.info/1.9.2.7-6b/w...2.7-6b.tar.bz2
    tar xjf wl500g-1.9.2.7-6b.tar.bz2
    cd wl500g-1.9.2.7-6b
    make uClibc

    but was low on memory (2GB pendrive)
    and -j option didn't work.

    Today
    mipsel-uclibc-gcc

    generates syntax error.

    I need Linux dialog to test some shell scripts.


    Darius

  2. #2
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    I already gave you this link: http://wpte.kicks-ass.net/forum/view...hp?thread_id=2

    I''m working with this, and it works fine, since it''s the most obvious way to compile stuff...

    these toolchains you have here are for machines that arent MIPS and want to compile something for MIPS called cross-compiling.
    the only thing you need is GCC and some other basic things.

    + you need those ncurses headers wich I just compiled
    the package dialog itself still contains some bugs, just some linking problems so I need to dive into that and fix the code

  3. #3
    Quote Originally Posted by wpte View Post
    I already gave you this link: http://wpte.kicks-ass.net/forum/view...hp?thread_id=2

    I''m working with this, and it works fine, since it''s the most obvious way to compile stuff...

    these toolchains you have here are for machines that arent MIPS and want to compile something for MIPS called cross-compiling.
    the only thing you need is GCC and some other basic things.

    + you need those ncurses headers wich I just compiled
    the package dialog itself still contains some bugs, just some linking problems so I need to dive into that and fix the code
    Thanks.
    So no chance for native dialog compilation as of today ?

    I have already visited the link you provided:

    ==================================
    Discussion Forum
    Forum Threads Posts Last Post
    There are no Forums defined.

    New Posts - Forum with new posts since last visit.
    No New Posts - Forum with no new posts since last visit.
    ==========================================

    where to go now ?


    Two other forum members already claimed Linux dialog native compilation to work

    "
    Lesiuk Lesiuk is offline
    Member

    Join Date: Aug 2008
    Posts: 43
    Download sources and compile it. I try it and it works. (I native compile it under my router.)

    Link to sources: http://ftp.de.debian.org/debian/pool...21.orig.tar.gz
    "

    al37919 al37919 is offline
    Forum Guru
    said:\

    "
    to create a toolchain for native compilation use:
    PHP Code:
    ipkg install optware-devel
    "

    Darius

  4. #4
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    Well, may be instead of flooding the forum by endless and useless topics you make an effort to read what is already answered on your questions?

    Hint: read two last lines of the following post 100 times until the Great Enlightenment comes to you: http://wl500g.info/showpost.php?p=126157&postcount=18

    I don't think that your flood in Russian forum will be honored either.

  5. #5
    Quote Originally Posted by al37919 View Post
    Well, may be instead of flooding the forum by endless and useless topics you make an effort to read what is already answered on your questions?

    Hint: read two last lines of the following post 100 times until the Great Enlightenment comes to you: http://wl500g.info/showpost.php?p=126157&postcount=18

    I don't see any flood in Russian forum will be honored either.
    As there is no flood in Russian forum at all, very basic questions only,
    let others to share their Linux experience.

    Exhibit No.1
    ===========
    Russian Discussion
    http://wl500g.info/forumdisplay.php?f=86
    My dear friend,

    I am surprised by your answer and really don't know what your problem is.
    You are Forum Guru.
    Aren't you ?

    So I have asked you very basic question how to native compile Linux dialog
    and still don't have your answer

    EXHIBIT No.2
    ===========
    http://wl500g.info/showpost.php?p=126157&postcount=18

    al37919 al37919 is nu online
    Forum Guru

    Join Date: Feb 2007
    Location: Ìîñêâà, Ðîññèÿ
    Posts: 2,049
    Hm..., and where in this text you see the statement that this should be done on the router?
    ================================================== =======

    I am not interested in philosophy.
    I have asked very basic question and expected exact answer only.
    Yes or No.

    If you claim native compilation is not possible, just say so, to save my time.
    But say it in plain words, avoding any philosophy.


    Not giving exact anwers that's you generating the problem, forcing me to ask the same question again to other members.

    None topic is endless and useless.
    Native compilation is of great importance to users of Asus routers.

    I don't need to read any post 100 times.
    Read your answer once and run compiler and got syntax error message.

    Is ")" syntax error ok for you ?

    Asking questions is not flooding a forum.
    Russian Discussion is populated by many experienced Linux developers
    so I expect Linux dialog be compiled for a router,
    by one such experienced Linux developer finally.

    Native or cross compiled.

    Asking question is expecting to get the right answer.
    If I don't get it, I just say what I did, what results are, and ask what should I do next.

    So what is your final answer to my question about native compilation of Linux dialog.

    As I am not a Linux developer, Asus router user only, I expected to get help from this Forum's Guru, not another puzzle.

    Can you write step-by-step Native Compile HowTo manual one day for beginners ?

    If not Linux dialog, so what about native compilation of
    ncurses.c / curses exaple
    from
    http://www.captain.at/howto-curses-example.php

    Or some other solution for outputting shell script generated data to monitor screen ?
    gmplot is for graphics,

    installed ncurses interface
    ipkg install ncurses and still don't know how to start
    basic data viewer application (very very basic) on native Asus router.


    As you see, I am really surprised, much more experienced Linux fans
    didn't compiled Linux dialog yet.
    One claimed a problem with ncurses compilation.

    Have a nice day.

    Darius

    BTW
    As your claims are totally unsupported
    copy goes to my lawyer for review.

  6. #6
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by al37919 View Post
    Well, may be instead of flooding the forum by endless and useless topics you make an effort to read what is already answered on your questions?

    Hint: read two last lines of the following post 100 times until the Great Enlightenment comes to you: http://wl500g.info/showpost.php?p=126157&postcount=18

    I don't think that your flood in Russian forum will be honored either.
    yeh... gotta agree with that tbh...
    darius, I don't think ur a bad guy, but we are all here to learn and help. it's free and we do it voluntairy.
    you can't just come here and shout to everyone that he needs to help you.
    I didn't do everything by myself, and so didn't all the others here (if I may say that), but we did find out stuff for ourself and shared it here. so others can find their way to a nice router quickly.
    I love reading and posting on the forums since I keep learning here, things I might use in my study

    anyway... sorry for my site to have a bug I didn't discovered yet
    probably have to change a few settings there
    but here you go: http://wl500g.info/showthread.php?t=14538
    Last edited by wpte; 06-01-2009 at 13:49.

  7. #7
    Quote Originally Posted by wpte View Post
    yeh... gotta agree with that tbh...
    darius, I don't think ur a bad guy, but we are all here to learn and help. it's free and we do it voluntairy.
    you can't just come here and shout to everyone that he needs to help you.
    I didn't do everything by myself, and so didn't all the others here (if I may say that), but we did find out stuff for ourself and shared it here. so others can find their way to a nice router quickly.
    I love reading and posting on the forums since I keep learning here, things I might use in my study

    anyway... sorry for my site to have a bug I didn't discovered yet
    probably have to change a few settings there
    but here you go: http://wl500g.info/showthread.php?t=14538
    wpte, I don't think ur a bad guy,

    visited the above thread and followed your HowTo

    ipkg update
    ipkg upgrade

    ipkg install optware-devel
    ipkg install buildroot

    Downloaded the source into /opt/dialog directory

    ./configure --prefix=/opt
    make
    make install

    ===========
    The issue is, when I run
    ./configure --prefix=/opt


    [admin@oo dialog]$ ./configure --prefix=/opt/dialog
    checking for package version... 1.1
    checking for package patch date... 20080819
    checking for gcc... gcc
    checking for C compiler default output... configure: error: C compiler cannot create executables

    Ok. I am low on memory
    and mayby I should copy dialog sources
    into /mnt/share/dialog directory
    as advised by wpte

    I tested gcc, running it alone from a command line and it generated "(" syntax error.

    How could I debug to see what's wrong ?

    I am a beginner in Linux compilation.

    As you can see there is a problem with c compiler.
    How to debug it ?

    Darius

  8. #8

    Native compilation of dialog sources problems

    Hi,

    please follow this logfile and tell me what can be done
    with the last error notice

    configure: error: No curses header-files found

    Darius
    ===============================================

    [admin@oo dialog]$ ./configure --prefix=/opt/dialog
    checking for package version... 1.1
    checking for package patch date... 20080819
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for executable suffix...
    checking for object suffix... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking how to run the C preprocessor... ./configure: ./configure: 1898: egrep: not found
    ./configure: ./configure: 1898: egrep: not found
    gcc -E
    ./configure: ./configure: 1975: egrep: not found
    ./configure: ./configure: 1975: egrep: not found
    checking whether gcc needs -traditional... no
    checking whether make sets ${MAKE}... yes
    checking for ranlib... ranlib
    checking for a BSD compatible install... /opt/bin/install -c
    checking for ar... ar
    checking for POSIXized ISC... no
    checking for gcc option to accept ANSI C... none needed
    checking for an ANSI C-conforming const... yes
    checking for makeflags variable...
    checking if filesystem supports mixed-case filenames... yes
    checking for ctags... no
    checking for etags... no
    checking if you want to see long compiling messages... yes
    checking build system type... mipsel-unknown-linux-gnu
    checking host system type... mipsel-unknown-linux-gnu
    Configuring for linux-gnu
    checking if gcc -U and -D options work together... yes
    checking if we must define _GNU_SOURCE... yes
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking for _LARGE_FILES value needed for large files... no
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking for fseeko... yes
    checking whether to use struct dirent64... no
    checking version of gcc... 4.1.1
    checking if you want to check for gcc warnings... no
    checking for ANSI C header files... ./configure: ./configure: 4126: egrep: not f ound
    no
    checking for inline... inline
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for off_t... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for stdlib.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for getpagesize... yes
    checking for working mmap... yes
    checking whether we are using the GNU C Library 2.1 or newer... no
    checking for argz.h... ./configure: ./configure: 1: egrep: not found
    no
    checking for limits.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for locale.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for nl_types.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for malloc.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for stddef.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for sys/param.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for feof_unlocked... yes
    checking for fgets_unlocked... yes
    checking for getcwd... yes
    checking for getegid... yes
    checking for geteuid... yes
    checking for getgid... yes
    checking for getuid... yes
    checking for mempcpy... yes
    checking for munmap... yes
    checking for putenv... yes
    checking for setenv... yes
    checking for setlocale... yes
    checking for stpcpy... yes
    checking for strchr... yes
    checking for strcasecmp... yes
    checking for strdup... yes
    checking for strtoul... yes
    checking for tsearch... yes
    checking for __argz_count... no
    checking for __argz_stringify... no
    checking for __argz_next... no
    checking for iconv... yes
    checking for iconv declaration...
    extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, ch ar * *outbuf, size_t *outbytesleft);
    checking for nl_langinfo and CODESET... yes
    checking for LC_MESSAGES... yes
    checking whether NLS is requested... no
    checking if -lm needed for math functions... yes
    checking if you want to use dmalloc for testing... no
    checking if you want to use dbmalloc for testing... no
    checking if you want to use purify for testing... no
    checking if you want to use valgrind for testing... no
    checking if you want to perform memory-leak testing...
    checking if you want --trace option... yes
    checking if you want to build libraries with libtool... no
    checking for extra include directories... no
    checking if we have identified curses headers... none
    configure: error: No curses header-files found
    [admin@oo dialog]$

  9. #9

    another compilation example - ncurses is the issue

    ncurses installed

    --------------------------

    Makefile

    all:: ncurses

    ncurses: ncurses.c
    gcc -o $@ $? -lncurses

    clean::
    rm -f ncurses

    .PHONY: clean

    ============


    source file .c

    #include <time.h>
    #include <curses.h>

    int current_getch;
    int doloop = 1;
    static WINDOW *mainwnd;
    static WINDOW *screen;
    WINDOW *my_win;

    int now_sec, now_min, now_hour, now_day, now_wday, now_month, now_year;
    time_t now;
    struct tm *now_tm;

    void screen_init(void) {
    mainwnd = initscr();
    noecho();
    cbreak();
    nodelay(mainwnd, TRUE);
    refresh(); // 1)
    wrefresh(mainwnd);
    screen = newwin(13, 27, 1, 1);
    box(screen, ACS_VLINE, ACS_HLINE);
    }

    static void update_display(void) {
    curs_set(0);
    mvwprintw(screen,1,1,"-------- HEADER --------");
    mvwprintw(screen,3,6,"TIME: %d:%d:%d", now_hour, now_min, now_sec);
    mvwprintw(screen,5,6,"DATE: %d-%d-%d", now_day, now_month, now_year);
    mvwprintw(screen,7,6,"PRESS q TO END");
    mvwprintw(screen,10,1,"-------- FOOTER --------");
    wrefresh(screen);
    refresh();
    }

    void screen_end(void) {
    endwin();
    }

    void maketime(void) {
    // Get the current date/time
    now = time (NULL);
    now_tm = localtime (&now);
    now_sec = now_tm->tm_sec;
    now_min = now_tm->tm_min;
    now_hour = now_tm->tm_hour;
    now_day = now_tm->tm_mday;
    now_wday = now_tm->tm_wday;
    now_month = now_tm->tm_mon + 1;
    now_year = now_tm->tm_year + 1900;
    }

    int main(void) {
    screen_init();
    while (doloop) {
    current_getch = getch();
    if (current_getch == 113) {
    doloop = 0;
    }
    maketime();
    update_display();
    sleep(1);
    }
    screen_end();
    printf("TEST ENDS\n");
    return 0;
    }

    ============


    [admin@oo ncurses]$ make
    gcc -o ncurses ncurses.c -lncurses
    ncurses.c:2:20: error: curses.h: No such file or directory
    ncurses.c:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    ncurses.c:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    ncurses.c:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    ncurses.c: In function 'screen_init':
    ncurses.c:15: error: 'mainwnd' undeclared (first use in this function)
    ncurses.c:15: error: (Each undeclared identifier is reported only once
    ncurses.c:15: error: for each function it appears in.)
    ncurses.c:18: error: 'TRUE' undeclared (first use in this function)
    ncurses.c:21: error: 'screen' undeclared (first use in this function)
    ncurses.c:22: error: 'ACS_VLINE' undeclared (first use in this function)
    ncurses.c:22: error: 'ACS_HLINE' undeclared (first use in this function)
    ncurses.c: In function 'update_display':
    ncurses.c:27: error: 'screen' undeclared (first use in this function)
    ncurses.c: In function 'main':
    ncurses.c:65: warning: incompatible implicit declaration of built-in function 'printf'
    make: *** [ncurses] Error 1

  10. #10
    Hi,

    tried to native compile Debian Dialog today as ncurses-dev is available.

    What's wrong ?

    Darius

    run
    ./configure --prefix=/opt/dialog

    [code]

    [admin@oo dialog]$ ./configure --prefix=/opt/dialog
    checking for package version... 1.1
    checking for package patch date... 20080819
    checking for gcc... gcc
    checking for C compiler default output... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for executable suffix...
    checking for object suffix... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking how to run the C preprocessor... ./configure: ./configure: 1898: egrep: not found
    ./configure: ./configure: 1898: egrep: not found
    gcc -E
    ./configure: ./configure: 1975: egrep: not found
    ./configure: ./configure: 1975: egrep: not found
    checking whether gcc needs -traditional... no
    checking whether make sets ${MAKE}... yes
    checking for ranlib... ranlib
    checking for a BSD compatible install... /opt/bin/install -c
    checking for ar... ar
    checking for POSIXized ISC... no
    checking for gcc option to accept ANSI C... none needed
    checking for an ANSI C-conforming const... yes
    checking for makeflags variable...
    checking if filesystem supports mixed-case filenames... yes
    checking for ctags... no
    checking for etags... no
    checking if you want to see long compiling messages... yes
    checking build system type... mipsel-unknown-linux-gnu
    checking host system type... mipsel-unknown-linux-gnu
    Configuring for linux-gnu
    checking if gcc -U and -D options work together... yes
    checking if we must define _GNU_SOURCE... yes
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking for _LARGE_FILES value needed for large files... no
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking for fseeko... yes
    checking whether to use struct dirent64... no
    checking version of gcc... 4.1.1
    checking if you want to check for gcc warnings... no
    checking for ANSI C header files... ./configure: ./configure: 4126: egrep: not found
    no
    checking for inline... inline
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for off_t... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for stdlib.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for getpagesize... yes
    checking for working mmap... yes
    checking whether we are using the GNU C Library 2.1 or newer... no
    checking for argz.h... ./configure: ./configure: 1: egrep: not found
    no
    checking for limits.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for locale.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for nl_types.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for malloc.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for stddef.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for sys/param.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for feof_unlocked... yes
    checking for fgets_unlocked... yes
    checking for getcwd... yes
    checking for getegid... yes
    checking for geteuid... yes
    checking for getgid... yes
    checking for getuid... yes
    checking for mempcpy... yes
    checking for munmap... yes
    checking for putenv... yes
    checking for setenv... yes
    checking for setlocale... yes
    checking for stpcpy... yes
    checking for strchr... yes
    checking for strcasecmp... yes
    checking for strdup... yes
    checking for strtoul... yes
    checking for tsearch... yes
    checking for __argz_count... no
    checking for __argz_stringify... no
    checking for __argz_next... no
    checking for iconv... yes
    checking for iconv declaration...
    extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
    checking for nl_langinfo and CODESET... yes
    checking for LC_MESSAGES... yes
    checking whether NLS is requested... no
    checking if -lm needed for math functions... yes
    checking if you want to use dmalloc for testing... no
    checking if you want to use dbmalloc for testing... no
    checking if you want to use purify for testing... no
    checking if you want to use valgrind for testing... no
    checking if you want to perform memory-leak testing...
    checking if you want --trace option... yes
    checking if you want to build libraries with libtool... no
    checking for extra include directories... no
    checking if we have identified curses headers... curses.h
    checking for curses.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for terminfo header... term.h
    checking for ncurses version... 5.7.20081102
    checking if we have identified curses libraries... no
    checking for tgoto... no
    checking for tgoto in -lncurses... yes
    checking for initscr in -lncurses... yes
    checking if you want extra dialogs... yes
    checking if you want config-file support... yes
    checking if you want Xdialog-style dialogs... yes
    checking if you want the form dialog... yes
    checking if you want the gauge dialog... yes
    checking if you want the tailbox dialog... yes
    checking if you want the mixedform dialog... yes
    checking if you want the mixedgauge dialog... yes
    checking if you want the wide-curses features... no
    checking for ANSI C header files... (cached) no
    checking whether time.h and sys/time.h may both be included... yes
    checking for dirent.h that defines DIR... yes
    checking for opendir in -ldir... no
    checking for search.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for unistd.h... (cached) yes
    checking for term.h... (cached) term.h
    checking return type of signal handlers... void
    checking for _nc_free_and_exit... yes
    checking for strcasecmp... (cached) yes
    checking for tsearch... (cached) yes
    checking for waitpid... yes
    checking if we must define _XOPEN_SOURCE_EXTENDED... unknown
    checking for flushinp... yes
    checking for getbegx... yes
    checking for getbegy... yes
    checking for getbegyx... yes
    checking for getcurx... yes
    checking for getcury... yes
    checking for getmaxx... yes
    checking for getmaxy... yes
    checking for getmaxyx... yes
    checking for getparx... yes
    checking for getpary... yes
    checking for getparyx... yes
    checking for use_default_colors... yes
    checking for wget_wch... no
    checking for start_color... yes
    checking for chtype typedef... yes
    checking if chtype is scalar or struct... scalar
    checking for sys/wait.h... ./configure: ./configure: 1: egrep: not found
    yes
    checking for union wait... no
    checking if we must include wchar.h to declare mbstate_t... yes
    configure: creating ./config.status
    config.status: creating dialog-config
    config.status: creating makefile
    config.status: creating headers-sh
    config.status: creating samples/install/makefile
    config.status: creating dlg_config.h
    config.status: dlg_config.h is unchanged
    [admin@oo dialog]$

  11. #11
    follow-up

    than run
    make
    what's wrong ?
    Is system time an issue ?

    Darius

    Code:
    /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]$

  12. #12

    Linux dialog native compilation problems as before

    Hi,

    downloaded, unrarred and installed
    ncurses by wpte

    run
    [admin@oo dialog]$ ./configure --prefix=/opt


    .................
    ...
    checking if we have identified curses headers... none
    configure: error: No curses header-files found

    Any idea how to get Linux dialog finally compiled ?

    Darius

  13. #13
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by darius View Post
    Hi,

    downloaded, unrarred and installed
    ncurses by wpte

    run
    [admin@oo dialog]$ ./configure --prefix=/opt


    .................
    ...
    checking if we have identified curses headers... none
    configure: error: No curses header-files found

    Any idea how to get Linux dialog finally compiled ?

    Darius

    are you sure you placed the files in the correct folder?
    I get this output:
    checking if we have identified curses headers... curses.h
    checking for curses.h... yes
    you can also specify the right dir with:
    ./configure --with-curses-dir=[the dir you installed ncruses in]

  14. #14
    Quote Originally Posted by wpte View Post
    are you sure you placed the files in the correct folder?
    I get this output:


    you can also specify the right dir with:
    ./configure --with-curses-dir=[the dir you installed ncruses in]
    Ok.
    So tell me the right installation procedure and how to start with,
    step by step.
    Where download ncurses-5.7.rar to
    and what commands, switches should I use with
    unrar ... ncurses-5.7.rar

    Mayby I should use an installer for uncurses to chmod for directories ?

    Darius

  15. #15
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    well... I expect people to look inside an archive before just extracting it anywhere

    the archive contains the folder opt, referring as your disk mounted as opt....

    so if you use command line (and it works), you should first cd to home:
    cd /
    now you can unrar it I guess, if it works the same way as tar in commandline.

    you can also extract it simply by winrar to a samba share of your /opt

Page 1 of 2 12 LastLast

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
  •