Professional Web Applications Themes

Problems with finding headers for linux 2.4.22 during util-linuxmake - Linux Setup, Configuration & Administration

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 ...

  1. #1

    Default Problems with finding headers for linux 2.4.22 during util-linuxmake


    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

    Dennis Guest

  2. #2

    Default Re: Problems with finding headers for linux 2.4.22 during util-linuxmake

    Dennis Clarke wrote: 

    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/includeg" 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
    David Guest

  3. #3

    Default Re: Problems with finding headers for linux 2.4.22 during util-linuxmake

     
    >
    >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.[/ref]

    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.
     

    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
    Dennis Guest

  4. #4

    Default Re: Problems with finding headers for linux 2.4.22 during util-linuxmake

    Dennis Clarke wrote: 


    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
    David Guest

  5. #5

    Default Re: Problems with finding headers for linux 2.4.22 during util-linuxmake

     

    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



    Dennis Guest

Similar Threads

  1. FMS RED HAT LINUX PROBLEMS
    By frustrated_FMS in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: September 28th, 09:28 AM
  2. Problems finding gd.pm in perl 5.8.6 using linux
    By cmarvel@nethere.com in forum PERL Modules
    Replies: 0
    Last Post: February 16th, 09:59 PM
  3. Problems finding WSE policy with Web Apps
    By Joshua Bond in forum ASP.NET Web Services
    Replies: 2
    Last Post: August 3rd, 06:02 PM
  4. still several problems with Red Hat Linux 9
    By Roland Wintgen in forum Informix
    Replies: 16
    Last Post: October 3rd, 12:52 PM
  5. programatic CPU util
    By Rick Jones in forum AIX
    Replies: 1
    Last Post: July 8th, 12:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139