[lfs-support] 7.4 5.15. Ncurses-5.9 fails to make

2013-12-04 Thread Ron Hartikka
Hi Group,


Things seemed to be going well and according to the book until ncurses.
My host is Ubuntu 13.10 the rest of my info is below.
Any ideas what is wrong?

Thanks,
Ron


The error I got was: unterminated #ifdef. It happened here:

gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include
-I../include -DUSE_BUILD_CC -DHAVE_CONFIG_H -I../ncurses -I.  -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64  -DNDEBUG -I. -I../include -I/tools/include -O2
--param max-inline-insns-single=1200 ./tinfo/make_hash.c
In file included from ./../include/ncurses_cfg.h:177:0,
 from ../ncurses/build.priv.h:53,
 from ./tinfo/make_hash.c:40:
./../include/ncurses_def.h:5:0: error: unterminated #ifndef
 #ifndef NC_DEFINE_H

__
the file in question looks exactly like some others I found on the web!

lfs@ron-Studio-1737:/mnt/lfs/sources/ncurses-5.9$ cat
../ncurses-5.9/include/ncurses_def.h
/*
 * This file is generated by ./MKncurses_def.sh
 */

#ifndef NC_DEFINE_H
#define NC_DEFINE_H 1

lfs@ron-Studio-1737:/mnt/lfs/sources/ncurses-5.9$

_
full configure and make

lfs@ron-Studio-1737:/mnt/lfs/sources/ncurses-5.9$ ./configure
--prefix=/tools --with-shared \
 --without-debug --without-ada --enable-overwrite
checking for egrep... grep -E
Configuring NCURSES 5.9 ABI 5 (Wed Dec  4 20:06:19 EST 2013)
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring for linux-gnu
checking for prefix... /tools
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 version of gcc... 4.8.1
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether gcc understands -c and -o together... yes
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... /sbin/ldconfig
checking if you want to ensure bool is consistent with C++... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... /tools/bin/g++
checking version of g++... 4.8.1
checking if you want to build C++ binding and demo... yes
checking if you want to build with Ada95... no
checking if you want to install manpages... yes
checking if you want to build programs such as tic... yes
checking if you want to build test-programs... yes
checking if you wish to install curses.h... yes
checking for mawk... mawk
checking for egrep... (cached) grep -E
checking for a BSD compatible install... /usr/bin/install -c
checking for tdlint... no
checking for lint... no
checking for alint... no
checking for splint... no
checking for lclint... no
checking whether ln -s works... yes
checking if ln -s -f options work... yes
checking for long file names... yes
checking if you want to use pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking if we should install .pc files for /usr/bin/pkg-config... no
checking if we should assume mixed-case filenames... auto
checking if filesystem supports mixed-case filenames... yes
checking whether make sets ${MAKE}... yes
checking for exctags... no
checking for ctags... no
checking for exetags... no
checking for etags... no
checking for ctags... no
checking for etags... no
checking for makeflags variable...
checking for ranlib... ranlib
checking for ld... ld
checking for ar... ar
checking for ar... (cached) ar
checking for options to update archives... -curv
checking if you have specified an install-prefix...
checking if libtool -version-number should be used... yes
checking if you want to build libraries with libtool... no
checking if you want to build shared libraries... yes
checking if you want to build static libraries... yes
checking if you want to build debug libraries... no
checking if you want to build profiling libraries... no
checking for specified models...  shared normal
checking for default model...
checking if you want to build a separate terminfo library... no
checking if you want to build a separate tic library... no
checking if you want to link with the GPM mouse library... maybe
checking for gpm.h... no
checking for default loader flags...
checking for an rpath option... -Wl,-rpath,
checking if release/abi version should be used for shared libs... auto
checking which gcc option to use... -fPIC
checking if you wish to install ncurses overwriting curses... yes
checking if external terminfo-database is used... yes
checking which terminfo source-file will be installed...
${top_srcdir}/misc/terminfo.src
checking whether to 

Re: [lfs-support] 7.4 5.15. Ncurses-5.9 fails to make

2013-12-04 Thread Bruce Dubbs
Ron Hartikka wrote:
 Hi Group,


 Things seemed to be going well and according to the book until ncurses.
 My host is Ubuntu 13.10 the rest of my info is below.
 Any ideas what is wrong?

Not really.  include/ncurses_def.h is definitely wrong.  That's a 
generated file.  The host requirements look OK, but I do see that 
configure is picking up mawk anyway.

My log shows:

   AWK=gawk sh ./MKncurses_def.sh ./ncurses_defs ncurses_def.h

You may want to mv mawk to mawk.sav and try again.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] 7.4 5.15. Ncurses-5.9 fails to make

2013-12-04 Thread Ron Hartikka
 You may want to mv mawk to mawk.sav and try again.

-- Bruce


That did it. :)
Configure checks for mawk first.

It was mawk 1.3.3-17ubuntu1

Thanks again Bruce.



Ron Hartikka
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page