Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#867 closed enhancement (worksforme)

error "curses.h: No such file or directory" when compiling

Reported by: messs@… Owned by: alfs-log@…
Priority: lowest Milestone:
Component: nALFS - Back End (XML Handlers) Version: 1.2.4
Severity: minor Keywords:
Cc:

Description

hi, i got the following error, when compiling. version : nALFS-1.2.4 system : fresh installation of RedHat 9 command : { ./configure && make && make install; }

configure seems to be OK, make fails. here are last screens .... : (i can provide full log on request)

configure: creating ./config.status config.status: creating nALFS-config config.status: creating Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory `/tmp/aLFS/nALFS-1.2.4' Making all in doc make[2]: Entering directory `/tmp/aLFS/nALFS-1.2.4/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/tmp/aLFS/nALFS-1.2.4/doc' make[2]: Entering directory `/tmp/aLFS/nALFS-1.2.4' if /bin/sh ./libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -

  1. -I./src/include -I./src -W -Wall -Wshadow -Winline -g -O2 -MT

src/lib/src_lib_libnALFS_la-digest.lo -MD -MP - MF "src/lib/.deps/src_lib_libnALFS_la-digest.Tpo" \

-c -o src/lib/src_lib_libnALFS_la-digest.lo `test -f 'src/lib/digest.c'

echo './'`src/lib/digest.c; \ then mv -f "src/lib/.deps/src_lib_libnALFS_la- digest.Tpo" "src/lib/.deps/src_lib_libnALFS_la-digest.Plo"; \ else rm -f "src/lib/.deps/src_lib_libnALFS_la-digest.Tpo"; exit 1; \ fi In file included from src/lib/digest.c:48: src/win.h:28:20: curses.h: No such file or directory In file included from src/lib/digest.c:48: src/win.h:79: parse error before "WINDOW" src/win.h:79: warning: no semicolon at end of struct or union src/win.h:82: parse error before '}' token src/win.h:82: warning: type defaults to int' in declaration of window_s' src/win.h:82: warning: data definition has no type or storage class src/win.h:90: parse error before "window_s" src/win.h:90: warning: no semicolon at end of struct or union src/win.h:91: warning: type defaults to int' in declaration of status' src/win.h:91: warning: data definition has no type or storage class src/win.h:99: parse error before '}' token src/win.h:99: warning: type defaults to int' in declaration of windows_s' src/win.h:99: warning: data definition has no type or storage class src/win.h:101: parse error before "windows" src/win.h:101: warning: type defaults to int' in declaration of windows' src/win.h:101: warning: data definition has no type or storage class src/win.h:107: warning: declaration of `lines' shadows a global declaration src/win.h:80: warning: shadowed declaration is here src/lib/digest.c: In function `verify_digest': src/lib/digest.c:78: `FILE' undeclared (first use in this function) src/lib/digest.c:78: (Each undeclared identifier is reported only once src/lib/digest.c:78: for each function it appears in.) src/lib/digest.c:78: `istream' undeclared (first use in this function) src/lib/digest.c:112: warning: implicit declaration of function `fopen' src/lib/digest.c:116: warning: implicit declaration of function `fread' src/lib/digest.c:134: warning: implicit declaration of function `fclose' src/lib/digest.c:137: warning: implicit declaration of function `sprintf' make[2]: * [src/lib/src_lib_libnALFS_la-digest.lo] Error 1 make[2]: Leaving directory `/tmp/aLFS/nALFS-1.2.4' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/tmp/aLFS/nALFS-1.2.4' make: * [all] Error 2

Change History (6)

comment:1 by kpfleming@…, 20 years ago

Resolution: invalid
Status: newclosed
Version: 1.2.21.2.4

The nALFS configure script does not check for the presence of the ncurses headers, only the library. If the library is present (because the ncurses package is installed), but the headers are not, it is likely because the ncurses-devel (or similar) package is not installed.

comment:2 by jwrober@…, 20 years ago

Resolution: invalid
Status: closednew

Re-opened.

comment:3 by jwrober@…, 20 years ago

Severity: normalenhancement

After discussing with Kevin, reopening to have the configure script actually try to compile a test program that uses ncurses (like it does for libxml2, openssl and curl) to avoid this problem.

comment:4 by messs@…, 20 years ago

Resolution: fixed
Status: newclosed

hi, after short delay again back on the net ...

as I am new to linux, I controlled the presence of the ncurses by :

[root@localhost root]# rpm -q ncurses ncurses-5.3-4

for me it looked ok, but ...

then i got the idea to resolve this issue by instalinng the Ncurses-5.4 from the LFS-tarball and it worked ;-)

so I think this bug can be closed.

comment:5 by kpfleming@…, 20 years ago

Resolution: fixed
Status: closedreopened

comment:6 by kpfleming@…, 20 years ago

Resolution: worksforme
Status: reopenedclosed

Marked as "WORKSFORME" because the problem was not the fault of nALFS.

Note: See TracTickets for help on using tickets.