LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2011, 02:54 PM   #1
seahawkibiza
LQ Newbie
 
Registered: Jul 2011
Location: Ibiza/Spain
Distribution: CLFS
Posts: 5

Rep: Reputation: Disabled
Problems with a CLFS to find the curses.h


Hi folks....

I know, it,s my first post here. But why we are searching a forum? Yeah, we are need help....

But sure, that I can help in the future also.

But now to my problem:

I must build a CLFS for a i686-linux-gcc-gnu system.

My problem is, after the normal installation of all packages I can't install the kernel, because this are missing the curses.h.

The header is in the correct include-folder, but the cross-system has the structure /tools/include.
I think, make dos'nt search there. So, how can I tell with a option where I have stored the header or the libs?

I try to build the CLFS from http://cross-lfs.org/ with the option "go to boot"

Any suggestions?

Best,
Ingolf

PS: And I used the search function, but the most of the threads ore from distros like debian, suse etc.... This is in my case not really helpfull.
I know, it's not complicated, if someone knows how... hehehehe

Last edited by seahawkibiza; 07-11-2011 at 03:09 PM.
 
Old 07-12-2011, 01:35 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,544

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
Please identify which CLFS book you are building from? Also are you building on different architecture, like host is PPC and CLFS is x86, because if not
the chroot option is usually less painful.

Please also tell us which chapter you are up to in the book as I do not believe building the kernel is at this point?
 
Old 07-12-2011, 03:25 AM   #3
seahawkibiza
LQ Newbie
 
Registered: Jul 2011
Location: Ibiza/Spain
Distribution: CLFS
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hello,

thanks for your answer. This is the book, what I want to build: http://cross-lfs.org/view/1.1.0/x86/
and on this chapter I stay now: http://cross-lfs.org/view/1.1.0/x86/boot/kernel.html

on this: make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig comes the error, that I must install curses.h, but they are installed (also with a softlink from ncurses.h to curses.h). The files are located in /tools/include.

The crosscompile is from a i486-linux-... to a i686-linux-... system. The target is a embedded system with a Atom 470 1,6GHz, 1GB Ram, without harddisk (CF-Card...) and I must build at the end a read-only Linux-System.

I must also build some special drivers in the future for a own PC104-Card. The system is a controller board for a machine.
 
Old 07-12-2011, 04:03 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,544

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
Would you please copy in the exact error? Maybe the last 10 or so lines of the compilation if you have it.
 
Old 07-12-2011, 07:04 AM   #5
seahawkibiza
LQ Newbie
 
Registered: Jul 2011
Location: Ibiza/Spain
Distribution: CLFS
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok, now from beginning, with some screenshots...

I told, that the installation of ncurses5.6 runs without error, also the header are installed, but in tools/include.

Here a screenshot: Include Dir

The problem occurs with texinfo-4.11 and with the kernel.

Here the screenshots from the install of the texinfo, this is similar to the kernel...
configure with prefix to tools
warning in configure of missing libs...

Here you can see the same error with the kernel:
Kernel error

How can I told to the make where are the headers?
 
Old 07-12-2011, 08:12 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,544

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
Well I have looked over the book details and even the one I followed (Pure 64) and unfortunately I can only come to the conclusion that you must have not followed a step somewhere
in the previous steps

I can tell you that when lxdialog looks for curses it executes a script called check-lxdialog.sh and in there is the following function:
Code:
# Where is ncurses.h?
ccflags()
{
        if [ -f /usr/include/ncurses/ncurses.h ]; then
                echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
        elif [ -f /usr/include/ncurses/curses.h ]; then
                echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
        elif [ -f /usr/include/ncurses.h ]; then
                echo '-DCURSES_LOC="<ncurses.h>"'
        else
                echo '-DCURSES_LOC="<curses.h>"'
        fi
}
But most of these would point to the host system so I am not sure how it works out where your includes are.

Sorry I cannot be much more help. My general suggestion is to go back and follow the steps again as they are tested reasonably well and should work.

I did notice that you changed an option, ARCH=x86 instead of ARCH=i386, so if you have changed others along the way it may be the cause of your issue if you perhaps selected
the wrong item to change.
 
Old 07-12-2011, 08:28 AM   #7
seahawkibiza
LQ Newbie
 
Registered: Jul 2011
Location: Ibiza/Spain
Distribution: CLFS
Posts: 5

Original Poster
Rep: Reputation: Disabled
Many thanks,

I will have a look...

Yes, with the option ARCH=i368 comes always a error message. In the downloaded tar-ball from kernel.org I missing the subdirectory for i386, there are only one for x86. So, if I change from i386 to x86 it works...

Possible you can tell me, what goes wrong with this option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] python and curses : unable to getch() for a curses.KEY event mangec Programming 1 11-09-2010 04:21 PM
[CLFS] E2fsprogs in chapter 7.5 - Can't find libblkid SkepticalMystic Linux From Scratch 1 10-01-2010 01:36 AM
chown clfs:clfs mishap Louis_Carole Linux From Scratch 4 03-21-2007 07:40 PM
do I need curses? jake_01 Programming 1 04-28-2005 06:24 AM
Curses nitinkatageri Linux - General 2 08-18-2003 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration