ldconfig problem: I wish I knew

Dan Osterrath do3 at mail.inf.tu-dresden.de
Fri Oct 18 13:34:01 PDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Well I'm trying to restart in a new chroot an a loop back device. Whenn the
> ldconfig program in the new glibc-build is working I'll copy the new files
> over the old one. So I dont't have to restart from scratch, as I already
> have compiled some more programs. (You can not rebuild glibc in your normal
> environment and then make install, as after about the half of installing
> there is a conflict of some still old libraries and some already new
> libraries from glibc needed by install programs as /bin/install)
>
> BTW: This time I set CFLAGS, CXXFLAGS and LDFLAGS to the values used for
> all the other programs. CFLAGS=CXXFLAGS="-O2 -s -fomit-frame-pointer
> -march=i686" LDFLAGS="-z combreloc"

Ok, I copied the resulting ldconfig to the real /sbin/ldconfig as this one is working now.
Probably I could also copy the rest of the build to it's origin address but a make check just after make failed with the following error:

[cut]
make  -C stdlib tests
make[2]: Entering directory `/usr/src/glibc-2.2.5/stdlib'
cd /usr/src/glibc-build/stdlib && gcc -O  -include ../config.h /usr/src/glibc-2.2.5/stdlib/isomac.c -o isomac
/usr/src/glibc-2.2.5/stdlib/isomac.c:74:19: stdio.h: No such file or directory
/usr/src/glibc-2.2.5/stdlib/isomac.c:75:20: stdlib.h: No such file or directory
/usr/src/glibc-2.2.5/stdlib/isomac.c:76:20: string.h: No such file or directory
/usr/src/glibc-2.2.5/stdlib/isomac.c:189: parse error before "size_t"
/usr/src/glibc-2.2.5/stdlib/isomac.c: In function `main':
/usr/src/glibc-2.2.5/stdlib/isomac.c:203: `NULL' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:203: (Each undeclared identifier is reported only once
/usr/src/glibc-2.2.5/stdlib/isomac.c:203: for each function it appears in.)
/usr/src/glibc-2.2.5/stdlib/isomac.c:206: `EXIT_FAILURE' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:212: `stdout' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c: At top level:
/usr/src/glibc-2.2.5/stdlib/isomac.c:228: parse error before "size_t"
/usr/src/glibc-2.2.5/stdlib/isomac.c: In function `xstrndup':
/usr/src/glibc-2.2.5/stdlib/isomac.c:230: `size_t' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:230: parse error before "len"
/usr/src/glibc-2.2.5/stdlib/isomac.c:231: `len' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:231: warning: initialization makes pointer from integer without a cast
/usr/src/glibc-2.2.5/stdlib/isomac.c:233: `NULL' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:237: `s' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c: In function `get_null_defines':
/usr/src/glibc-2.2.5/stdlib/isomac.c:244: `BUFSIZ' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:245: `NULL' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:246: `size_t' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:246: parse error before "result_len"
/usr/src/glibc-2.2.5/stdlib/isomac.c:248: `FILE' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:248: `input' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:251: warning: assignment makes pointer from integer without a cast
/usr/src/glibc-2.2.5/stdlib/isomac.c:254: warning: assignment makes pointer from integer without a cast
/usr/src/glibc-2.2.5/stdlib/isomac.c:282: parse error before "endmac"
/usr/src/glibc-2.2.5/stdlib/isomac.c:293: `result_len' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:293: `result_max' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:296: warning: assignment makes pointer from integer without a cast
/usr/src/glibc-2.2.5/stdlib/isomac.c:310: `stdout' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:318: warning: assignment makes pointer from integer without a cast
/usr/src/glibc-2.2.5/stdlib/isomac.c: In function `check_header':
/usr/src/glibc-2.2.5/stdlib/isomac.c:336: `BUFSIZ' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:337: `FILE' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:337: `input' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:341: warning: assignment makes pointer from integer without a cast
/usr/src/glibc-2.2.5/stdlib/isomac.c:343: `NULL' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:370: `size_t' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:370: parse error before "endmac"
/usr/src/glibc-2.2.5/stdlib/isomac.c:400: `endmac' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:410: parse error before "len"
/usr/src/glibc-2.2.5/stdlib/isomac.c:411: `len' undeclared (first use in this function)
/usr/src/glibc-2.2.5/stdlib/isomac.c:422: parse error before "len"
/usr/src/glibc-2.2.5/stdlib/isomac.c:431: `stdout' undeclared (first use in this function)
make[2]: *** [/usr/src/glibc-build/stdlib/isomac] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.2.5/stdlib'
make[1]: *** [stdlib/tests] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.2.5'
make: *** [check] Error 2

As there are no header files yet in /usr/include this command cant find the needed headerfiles.
gcc -O  -include ../config.h /usr/src/glibc-2.2.5/stdlib/isomac.c -o isomac
But why isn't there an option -I <where the hell are the header files>. At least glibc itself should know where it's header files are located.

- -- 
- ----------------------------------------------------------------------
%> ln -s /dev/null /dev/brain
%> ln -s /dev/urandom /dev/world
%> dd if=/dev/world of=/dev/brain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9sHA59NbB8EM160MRArBFAKCzZbogV3m4Maii/VkyjjSErik2qQCfXWmI
69Zj0ezxfLXI3g2ViFZ23gc=
=8lL9
-----END PGP SIGNATURE-----

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list