Can't build libc 5.4.44, missing stddef.h

Can't build libc 5.4.44, missing stddef.h

Post by Larry Mulcah » Fri, 03 Apr 1998 04:00:00



I am trying to build libc-5.4.44.  `make depend' gets hundreds of errors
like

../../include/stdlib.h:34: stddef.h: No such file or directory

stddef.h is not in libc-5.4.44.tar.gz.  I looked in
libc-5.4.38.bin.tar.gz and libc-5.4.44.bin.tar.gz and didn't find it
there either.  

Where is stddef.h supposed to come from?  I do have the correct link
from /usr/include/linux to /usr/src/linux/include/linux:

% ls -ld /usr/include/linux
lrwxrwxrwx   1 root     root           28 Feb  1 09:25 /usr/include/linux -> /usr/src/linux/include/linux

And stddef.h thus appears at /usr/include/linux/stddef.h:

% ls -l /usr/include/linux/stddef.h
-rw-r--r--   1 bin      bin           243 Dec  1  1993 /usr/include/linux/stddef.h

Should there be a link from /usr/include/stddef.h to
/usr/include/linux/stddef.h?  Or a /usr/include/stddef.h that itself
includes /usr/include/linux/stddef.h?

% uname -sr
Linux 2.0.33
% gcc --version
2.7.2.3

I recently installed:

binutils-2.8.1.0.15.bin.tar.gz
gcc-2.7.2.3.bin.tar.gz
ld.so-1.9.5.tar.gz
libc-5.4.38.bin.tar.gz
libg++-2.7.2.8.bin.tar.gz

--

http://www.nyx.net/~lmulcahy/   http://www.geocities.com/Area51/Zone/9653/

 
 
 

Can't build libc 5.4.44, missing stddef.h

Post by Andreas Schwa » Sat, 04 Apr 1998 04:00:00


|> I am trying to build libc-5.4.44.  `make depend' gets hundreds of errors
|> like

|> ../../include/stdlib.h:34: stddef.h: No such file or directory

|> stddef.h is not in libc-5.4.44.tar.gz.  I looked in
|> libc-5.4.38.bin.tar.gz and libc-5.4.44.bin.tar.gz and didn't find it
|> there either.  

|> Where is stddef.h supposed to come from?

stddef.h is a compiler internal header, and is supposed to come from
/usr/lib/gcc-lib/*/2.7.2.3/include.

|> Should there be a link from /usr/include/stddef.h to
|> /usr/include/linux/stddef.h?  Or a /usr/include/stddef.h that itself
|> includes /usr/include/linux/stddef.h?

None of them.

|> I recently installed:

|> gcc-2.7.2.3.bin.tar.gz

You didn't install that correctly.

--
Andreas Schwab                                      "And now for something



 
 
 

Can't build libc 5.4.44, missing stddef.h

Post by Larry Mulcah » Sat, 04 Apr 1998 04:00:00


The compiler internal headers from gcc-2.7.2.3.bin.tar.gz (non-glibc
version) get installed in
/usr/lib/gcc-lib/i586-unknown-linux-gnulibc1/2.7.2.3/include.  I get it,
`gnulibc1', as opposed to gnulibc2.

The configure dialog of libc-5.4.44 starts with:

    More than one Linux targets found:
            i486-linux i486-linuxaout i586-unknown-linux-gnulibc1
    "i586-unknown-linux-gnulibc1" is chosen.

I was seeing this, thinking it was wrong (`no I don't want the gnulibc
(2) version'), and then manually telling it to compile for `i486-linux'
instead.  I guess what it is really saying here is `I found the compiler
internal headers in these three directories, which do you want to use?'
When I just let it use the defaults, it didn't have a problem finding
stddef.h.

The install instructions from
ftp://tsx-11.mit.edu/pub/linux/packages/GCC/release.gcc-2.7.2.3 are:

        gzip -dc gcc-2.7.2.3.bin.tar.gz | tar xvvf -

There's not a lot to go wrong with this.  Well you have to guess to cd
to `/' first but I got that right.

Thanks for the information.  Soon I will have a libm.a.  Next stop
Mozilla.



> |> I am trying to build libc-5.4.44.  `make depend' gets hundreds of errors
> |> like
> |> ../../include/stdlib.h:34: stddef.h: No such file or directory
> |> stddef.h is not in libc-5.4.44.tar.gz.  I looked in
> |> libc-5.4.38.bin.tar.gz and libc-5.4.44.bin.tar.gz and didn't find it
> |> there either.  
> |> Where is stddef.h supposed to come from?
> stddef.h is a compiler internal header, and is supposed to come from
> /usr/lib/gcc-lib/*/2.7.2.3/include.
> |> Should there be a link from /usr/include/stddef.h to
> |> /usr/include/linux/stddef.h?  Or a /usr/include/stddef.h that itself
> |> includes /usr/include/linux/stddef.h?
> None of them.
> |> I recently installed:
> |> gcc-2.7.2.3.bin.tar.gz
> You didn't install that correctly.

--

http://www.nyx.net/~lmulcahy/   http://www.geocities.com/Area51/Zone/9653/
 
 
 

1. libc 5.4.44: missing argz.h

I'm trying to build libc 5.4.44 from sources on a RedHat 4.2 system.
It fails to build out of the box.  It requires argz.h, which it
doesn't provide, and which doesn't appear to exist on pre-5.44 systems
(RedHat 4.2 ships with 5.3).  What's strange is that the argz routines
themselves ARE included.  When I lift argz.h from a system that has
one, it dies later on in the build:

/usr/bin/gcc -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2
        -O1 -funroll-loops -I. -DLOCALE_PATH='"/usr/share/locale"'
        -DCHARMAP_PATH='"/usr/share/i18n/charmap"'
        -DLOCSRCDIR='"/usr/share/i18n/locales"' -DHAVE_CONFIG_H
        -DLOCALE_ALIAS_PATH='"/usr/share/locale:/usr/share/i18n"' -Iprograms
        -I../libio -I../libio/stdio -DNLS -I../nls -DYP -DNO_SHADOW
        -D_GNU_SOURCE -DSTDC_HEADERS -DUSG -DDIRENT -DSYSV -DUSE_BSD_REGEX
        -D_LIBC -DINTERNAL_LINUX_C_LIB -D_REENTRANT -Wall -Wstrict-prototypes
        -Wmissing-prototypes -funsigned-char -I../internal -nostdinc
        -I/usr/include -I/usr/lib/gcc-lib/i386-linux/2.7.2.1/include
        -I/usr/include/linux -c loadlocale.c -o ../elfstatic/libc/loadlocale.o
In file included from loadlocale.c:47: categories.def:45:
`_NL_COLLATE_NRULES' undeclared here (not in a function)
categories.def:45: nonconstant array index in initializer for
`_nl_value_type_LC_COLLATE'

I've tried a variety of configuration options.  Anyone who's gotten
5.4.x to build under RedHat 4.2, please drop me a line; if this is not
possible, naturally I'd also like to know that...

Pax,
        :: A.
--

: Unix consulting of all shapes and sizes : No hack too small or too large :
:::: X : TCP/IP : C : OOP : Legacy code : Distributed Systems : Whatever :::
::: It's just a lot of nothing, so what can it mean? -- F. Zappa :::::::::::

2. Linux+Mathlab+Compaq 6400

3. HELP: Libc 5.4.44 undefined symbols

4. 2.3.9 kernel panic

5. libc 5.4.44 installation problems

6. routing with redhat 9

7. kernel 2.1.98 and libc 5.4.44

8. Problems linking a Tk application under LINUX 1.1.92

9. Trying to install libc.so.5.4.44 (long)

10. Odd scandir behaviour; libc.so.5.4.44

11. Problems with libc.so.5.4.44

12. Red hat 5.0, Libc 5.4.44 and Staroffice 4.0 SP3

13. compiling 2.2.x with egcs and libc.so.5.4.44