Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problems with finding headers for linux 2.4.22 during util..

 
   Soft32 Home -> Linux2 Arch -> Setup RSS
Next:  difficulty detecting ESS1887 on Digital PC 5400  
Author Message
Dennis Clarke

External


Since: Nov 28, 2003
Posts: 3



(Msg. 1) Posted: Fri Nov 28, 2003 3:37 pm
Post subject: Problems with finding headers for linux 2.4.22 during util-linux
Archived from groups: comp>os>linux>setup, others (more info?)

While attempting to build linux from scratch ( see www.linuxfromscratch.org )
I run into a nasty problem with util-linux :

http://www.blastwave.org/dclarke/linux/util-linux.log

Essentially the configure process for util-linux 2.12 can not find the headers
even though they are all installed in /tools/include.

A separate test of gcc with a simple c program the #include <scsi/scsi.h>
works but the configure in util-linux does not. What's up?

Dennis

----------- gcc test ------------


-bash-2.05b$ cat conftest.c
#define u_char unsigned char
#include <scsi/scsi.h>
#undef u_char
int main(){ exit(0); }


-bash-2.05b$ gcc --verbose -c -o conftest.o conftest.c
Reading specs from /tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --prefix=/tools
--with-local-prefix=/tools --enable-clocale=gnu --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++
Thread model: posix
gcc version 3.3.1
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/cc1 -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -D__sparc__
-D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__sparc__ -D__gnu_linux__
-D__linux__ -D__unix -D__linux -Asystem=unix -Asystem=posix
-D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc conftest.c -quiet -dumpbase
conftest.c -auxbase-strip conftest.o -version -o /tmp/ccgiW5aa.s
GNU C version 3.3.1 (sparc-unknown-linux-gnu)
compiled by GNU C version 3.3.1.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32115
ignoring nonexistent directory "/tools/sparc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/tools/include
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/include
/usr/include
End of search list.

/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/../../../../sparc-unknown-linux-gnu/bin/as
-V -Qy -s -relax -o conftest.o /tmp/ccgiW5aa.s
GNU assembler version 2.14 (sparc-unknown-linux-gnu) using BFD version 2.14
20030612

-bash-2.05b$ gcc --verbose -o conftest conftest.o
Reading specs from /tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --prefix=/tools
--with-local-prefix=/tools --enable-clocale=gnu --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++
Thread model: posix
gcc version 3.3.1
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/collect2 --eh-frame-hdr -m
elf32_sparc -Y P,/tools/lib -relax -dynamic-linker /tools/lib/ld-linux.so.2 -o
conftest /tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/../../../crt1.o
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/../../../crti.o
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/crtbegin.o
-L/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1
-L/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/../../../../sparc-unknown-linux-gnu/lib
-L/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/../../.. conftest.o -lgcc
-lgcc_eh -lc -lgcc -lgcc_eh -lc
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/crtend.o
/tools/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.1/../../../crtn.o
Back to top
Login to vote
David

External


Since: Oct 17, 2003
Posts: 354



(Msg. 2) Posted: Fri Nov 28, 2003 9:01 pm
Post subject: Re: Problems with finding headers for linux 2.4.22 during util-linux [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dennis Clarke wrote:
> While attempting to build linux from scratch ( see www.linuxfromscratch.org )
> I run into a nasty problem with util-linux :
>
> http://www.blastwave.org/dclarke/linux/util-linux.log
>
> Essentially the configure process for util-linux 2.12 can not find the headers
> even though they are all installed in /tools/include.
>
> A separate test of gcc with a simple c program the #include <scsi/scsi.h>
> works but the configure in util-linux does not. What's up?

It looks like you either don't have the kernel-headers installed
properly or possibly you didn't change the configure script to
look in the /tools/include for the header files.

configuring util-linux-2.12

You don't have <scsi/scsi.h>
You don't have <linux/blkpg.h>
You don't have <linux/kd.h>
You don't have <locale.h>
You don't have <langinfo.h>
You don't have <sys/user.h>
You don't have <asm/page.h>
You don't have <rpcsvc/nfs_prot.h>
You don't have <asm/types.h>
You don't have <linux/raw.h>

Did you run the lines below before trying to configure?

cp configure configure.backup
sed "s@/usr/include@/tools/include@g" configure.backup > configure

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 5 days, 1:37, 1 user, load average: 0.10, 0.12, 0.09
Back to top
Login to vote
Dennis Clarke

External


Since: Nov 28, 2003
Posts: 3



(Msg. 3) Posted: Sat Nov 29, 2003 7:59 am
Post subject: Re: Problems with finding headers for linux 2.4.22 during util-linux [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>>
>> A separate test of gcc with a simple c program the #include <scsi/scsi.h>
>> works but the configure in util-linux does not. What's up?
>
>It looks like you either don't have the kernel-headers installed
>properly or possibly you didn't change the configure script to
>look in the /tools/include for the header files.

That is what I figured, but close examination and manually editing the
configure script to ensure that /usr/local and /usr/include are not mentioned
anywhere has not lead me anywhere yet.

>Did you run the lines below before trying to configure?
>
>cp configure configure.backup
>sed "s@/usr/include@/tools/include@g" configure.backup > configure
>

yes. And very carefully too.

Further details may be see at :

http://www.blastwave.org/dclarke/linux/util-linux-2.12_fail.html

There you can see what happens when I edit the configure script to skip over
the check for old gcc ( using intel specific gcc options - useless on sparc )
and replacing the first test for scsi/scsi.h with a manual gcc command line.

That does actually find the header. But from where?

Dennis
Back to top
Login to vote
Dennis Clarke

External


Since: Nov 28, 2003
Posts: 3



(Msg. 4) Posted: Sat Nov 29, 2003 12:59 pm
Post subject: Re: Problems with finding headers for linux 2.4.22 during util-linux [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> It's been a while since I built a LFS system but these should be

Thanks for the reply. I am presently rebuilding gcc and then I will
re-install the headers, again. Then I will try again. Otherwise I am
beginning to believe that something very odd is going on.

Dennis
Back to top
Login to vote
David

External


Since: Oct 17, 2003
Posts: 354



(Msg. 5) Posted: Sat Nov 29, 2003 1:32 pm
Post subject: Re: Problems with finding headers for linux 2.4.22 during util-linux [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dennis Clarke wrote:
>
> There you can see what happens when I edit the configure
> script to skip over the check for old gcc ( using intel
> specific gcc options - useless on sparc ) and replacing the
> first test for scsi/scsi.h with a manual gcc command line.
>
> That does actually find the header. But from where?


It's been a while since I built a LFS system but these should be
in /tools/include and should have been installed there in the
"Installing Linux-2.4.22 headers" section of Chapter 5 or in
Chapter 6 they would have been installed to the /usr/include
directory.

+ ./testincl linux/blkpg.h
You don't have
+ ./testincl linux/kd.h
You don't have
+ ./testincl locale.h
You don't have
+ ./testincl langinfo.h
You don't have
+ ./testincl sys/user.h
You don't have
+ ./testincl asm/page.h
You don't have
+ ./testincl rpcsvc/nfs_prot.h
You don't have
+ ./testincl asm/types.h
You don't have
+ ./testincl linux/raw.h
You don't have

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 5 days, 18:07, 2 users, load average: 1.35, 0.79, 0.80
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Finding compatible Linux - How do I find a version of Linux that will run on my machine (Compaq Presario 5000T desktop). I made the mistake of..

finding windows partition - i installed fedora core 4 at a time where i had a single windows partition and the install detected it correctly..

Finding out which RPM *really* provides a file - Almost every time I get a package to build it seems to want some other obscure library, header file, or utility. The..

Finding a modem with COM/IRQ jumpers - I have been reading a lot of posts re: setting up a tricky modem in various Linux distros, and many of them recommend..

boxes for letters: finding a font - When an application shows squares where letters should be, I'm assuming its because a font that the app needs is not..

Linux/Windows Problems - Hello, I'm new to Linux and found that I botched the SuSE install to my Windows ME machine. SuSE seems to be..
       Soft32 Home -> Linux2 Arch -> Setup All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]