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]$
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
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
got my previous answer back
Quote:
Originally Posted by
wpte
If you unrar them via samba, the attributes should be allright.
note that winrar doesnt use any attributes!
so if you unrar it via command line you probably should.
Hi,
I got it from cache
==================
Quote:
Originally Posted by
wpte
If you unrar them via samba, the attributes should be allright.
note that winrar doesnt use any attributes!
so if you unrar it via command line you probably should.
Ok.
I native downloaded and unrarred your archives.
Linux file system only no samba.
(from the net)
=============
Tar is an archiver that collects all files and attributes (important on Linux; not so very much on Windows) into one stream.
Obviously, you didn't read that rar archives do not preserve file attributes and permissions.
Re: D2X-XL posted by Anonymous @ 71.229.81.55 on Nov 17 2006 7:58 AM
Another issue with using rar and zip is that they don't allow for the enhanced linux file attributes, such as file ownership and so forth; making a backup of your system using rar will NOT give you a real "backup", but a disaster.
===========
Ok.
So I chmod 755 bin directory in untarred /opt
than copied into root /opt
------------------
BTW
ncurses is ipkg package I installed earlier from ipkg list
----------
ncurses - 5.7-1 - NCurses libraries
ncursesw - 5.7-1 - NCurses libraries with wide char support.
Is using ncurses developed by you in /opt not in conflict with the ncurses from ipkg ?
logfile
...
...
checking if we have identified curses headers... none
configure: error: No curses header-files found
[admin@oo dialog]$
So what attributes should I set for each of directories in your ncurses
(unrarred package).
/bin set to 755
is it ok
as I run compilation as admin ?
And what place is right for installation of ncurses, you have mentioned earlier,
"
you can also specify the right dir with:
./configure --with-curses-dir=[the dir you installed ncruses in]
"
I set ./configure --prefix=/opt
as your ncurses comes as /opt directory tree
so what is your suggestion
as you keep insisting on me to install unrarred ncurses.
Did you provide install script ?
As unrarred ncurses directory tree has not
/opt/ncurses directory
already created by me to native compile
ncurses.c program.
Tried to download and untar ncurses as ipk package to see
file /directory attributes
http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/
but can't get wget or http lynx to download and save it to disk.
Darius
=================