Trying to native compile Debian Dialog

 
Thread Tools Search this Thread
Operating Systems Linux Debian Trying to native compile Debian Dialog
# 1  
Old 03-25-2009
Trying to native compile Debian Dialog

Hi,

tried to native compile Debian Dialog as ncurses-dev is available.
I am trying native compile Debian Dialog using gcc on Linux embedded router.

What's wrong, as running than make
I get errors.
Mayby this line in the log file is an exaplanation to a problem ?
"
checking if we have identified curses libraries... no
"
In my previous trials, curses.h headers were an issue.
I was assured, ncurses-dev comes with headers

Jack

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]$

# 2  
Old 03-25-2009
follow-up

when I run
make
I get the following log file
(last part attached)

Thanks for your comments.

Jack

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]$

Oh, I see.
I have to remove previous ncurses library installed into ncursest.
As new one ncurses-dev-addon library is installed exactly into
/ncurses-dev-addon directory

Have a next try tommorrow.

Jack
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Lftp with dialog

Hi all. I want to know, if there is any chance to pass lftp listing to CLI dialog. I want to make an interactive CLI ftp manager, based on lftp. Version of dialog I use: root@dlink:~# dialog -v cdialog (ComeOn Dialog!) version 1.1-20100428 (0 Replies)
Discussion started by: n158
0 Replies

2. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

3. UNIX for Dummies Questions & Answers

Trying to native compile Linux Dialog

Hi, as my thread has been moved to Debian. I don't run Debian machine. My machine is Linux embedded router - mipsel. Sources come from Debian, but Dialog sources are GNU, so no Debian specific. Native compilation vs. crosscompilation, exactly to let you know, that I don't run Debian... (2 Replies)
Discussion started by: jack2
2 Replies

4. Shell Programming and Scripting

Unix / Linux Dialog Utility - how to open 2+ more dialog windows ?

Hi, example of Unix / Linux dialog utility is below. I am going to use dialog as simple GUI for testing of a modem. So I need to combine some dialog boxes into one. I need to have input box, output box, info box, dialog box, radiobox as in any standard program with graphical user... (2 Replies)
Discussion started by: jack2
2 Replies

5. Programming

Regarding Native method

Hi, I am working with solaris 9 and I am using jre1.6. In my application,I am using java and C++ in my application.Basically we are using the java for front end and C/C++ for back hand.So I have to call the C/C++ source code form java code.we are using native methods for it.. So application... (1 Reply)
Discussion started by: smartgupta
1 Replies

6. UNIX for Dummies Questions & Answers

HoHow to compile Linux dialog - "curses.h" missing ?

Hi, I tried native compile Linux dialog for Linux embedded device and got "curses.h" error message. As Linux dialog is already compiled and working as Debian .deb package (installed it). What is a way to import curses.h from other package sources to work for dialog sources compilation in my... (2 Replies)
Discussion started by: darius2
2 Replies

7. AIX

AIX native MPIO

Hi folks, does anybody have a link to a documentation how to implement native MPIO on AIX? We are using EMC PowerPath and Datacore SanSymphony/Cambex for this so far and I wasn't able to find a good description on that topic. All I know so far is that mkpath, chpath and lspath are used to... (3 Replies)
Discussion started by: zaxxon
3 Replies

8. Programming

Problem using Java Native Interface on Debian

Hi all, First visit to this forum, hope I've chosen an appropriate place to post this. I have a Java-based application that uses native C++ libraries (built with g++-4.0) for specialized, computation-intensive routines. Within the native code, I need to catch exceptions thrown inside... (0 Replies)
Discussion started by: QED
0 Replies

9. UNIX for Dummies Questions & Answers

format to linux native?

hi again all, i am still trying to get my old win95 pc to become a unix/linux pc, running with redhat. i managed to install it on my old win32/fat partition (which is the whole hdd), but when i did this it said it may result in lower operating speed, but i couldn't manage to create a linux native... (2 Replies)
Discussion started by: gan
2 Replies
Login or Register to Ask a Question