[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: iopopen.c compile error
From: |
John van der Ploeg |
Subject: |
Re: iopopen.c compile error |
Date: |
Mon, 24 Sep 2001 20:06:23 +0200 |
Hi Andreas,
uuh, yes I think I did the configure and so on correct,
but I've included loads of detail in this mail so maybe it
helps you to pinpoint the cause of the problems.
I did (su'd to root):
- unpack the glibc-2.2.4.tar.gz
- in /usr/src/glibcs-2.2.4 also unpack the glibc-linuxthreads-2.2.tar.gz
- make a /usr/src/glibc-build directory
- in /usr/src/glibc-build
- run: ../glibc-2.2.4/configure --enable-add-ons=linuxthreads
it seems to run fine:
jvdploe:/usr/src/glibc-build # ../glibc-2.2.4/configure
--enable-add-ons=linuxth
reads
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking sysdep dirs... sysdeps/i386/elf
linuxthreads/sysdeps/unix/sysv/linux/i3
86 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread
sysdeps/pth
read linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix
linuxthreads/sysde
ps/i386/i686 linuxthreads/sysdeps/i386 sysdeps/unix/sysv/linux/i386/i686
sysdeps
/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu
sysdeps/unix/common sy
sdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386
sysdeps/unix/sysv sysde
ps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu
sysdeps/i386/i686
sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32
sysdeps/ieee
754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32
sysdeps/ieee754 sysdep
s/generic/elf sysdeps/generic
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking version of gcc... 2.95, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.79.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.10.39, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 1.68, bad
checking for gsed... no
checking for sed... sed
checking version of sed... 3.02, ok
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... (cached)
no
checking whether we are using GNU C... yes
checking build system type... i686-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking whether /usr/local/i686-pc-linux-gnu/bin/as is GNU as... yes
checking whether /usr/local/i686-pc-linux-gnu/bin/ld is GNU ld... yes
checking for mig... mig
configure: warning:
*** These auxiliary programs are missing or too old: makeinfo
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking for bash... /bin/sh
checking for mawk... no
checking for gawk... gawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for old Debian install-info... no
checking for bison... /usr/bin/bison
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -Bgroup option... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... static
checking for __builtin_expect... no
checking for local label subtraction... no
checking for libgd... no
checking size of long double... 12
running configure fragment for
../glibc-2.2.4/linuxthreads/sysdeps/unix/sysv/lin
ux
running configure fragment for ../glibc-2.2.4/sysdeps/unix/sysv/linux
checking installed Linux kernel header files... 2.0.10 or later
checking for symlinks in /usr/local/include... ok
running configure fragment for ../glibc-2.2.4/sysdeps/unix/common
running configure fragment for ../glibc-2.2.4/sysdeps/unix
running configure fragment for ../glibc-2.2.4/sysdeps/generic
checking stdio selection... libio
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
updating cache ./config.cache
creating ./config.status
creating config.make
creating glibcbug
creating Makefile
creating config.h
configuring in linuxthreads
running /bin/sh ../../glibc-2.2.4/linuxthreads/configure
--enable-add-ons=linux
threads --cache-file=.././config.cache
--srcdir=../../glibc-2.2.4/linuxthreads
jvdploe:/usr/src/glibc-build #
checking version of some tools;
jvdploe:/usr/src/glibc-build # make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <address@hidden>.
jvdploe:/usr/src/glibc-build # gcc --version
2.95
my binutils is: binutils-2.11.2
awk version GNU Awk 3.0.3
With this I started make.
It runs for a minute or ten, generating the usual amount of output.
Then;
jvdploe:make
gcc iopadn.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings
-g -
I../include -I. -I/usr/src/glibc-build/libio -I.. -I../libio
-I/usr/src/glibc-b
uild -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../l
inuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysde
ps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I
../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386
-I../sysdeps/un
ix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv
/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sys
deps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv
-I../sysdeps/u
nix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sy
sdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -
I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../
sysdeps/generic -D_LIBC_REENTRANT -include
../include/libc-symbols.h -D_IO
_MTSAFE_IO -o /usr/src/glibc-build/libio/iopadn.o
gcc iopopen.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings
-g
-I../include -I. -I/usr/src/glibc-build/libio -I.. -I../libio
-I/usr/src/glibc-
build -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../
linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysd
eps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -
I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386
-I../sysdeps/u
nix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sys
v/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sy
sdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv
-I../sysdeps/
unix/i386 -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/i386/i686/fpu -I../s
ysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-6
4 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I..
/sysdeps/generic -D_LIBC_REENTRANT -include
../include/libc-symbols.h -D_I
O_MTSAFE_IO -o /usr/src/glibc-build/libio/iopopen.o
iopopen.c: In function `_IO_new_proc_open':
iopopen.c:186: warning: implicit declaration of function
`_IO_cleanup_region_sta
rt_noarg'
iopopen.c:193: `_avail' undeclared (first use in this function)
iopopen.c:193: (Each undeclared identifier is reported only once
iopopen.c:193: for each function it appears in.)
iopopen.c:193: `_buffer' undeclared (first use in this function)
iopopen.c:193: warning: control reaches end of non-void function
iopopen.c: At top level:
iopopen.c:196: parse error before `->'
iopopen.c: In function `_IO_new_proc_close':
iopopen.c:265: `_avail' undeclared (first use in this function)
iopopen.c:265: `_buffer' undeclared (first use in this function)
iopopen.c:246: warning: unused variable `wait_pid'
iopopen.c:244: warning: unused variable `wstatus'
iopopen.c:265: warning: control reaches end of non-void function
iopopen.c: At top level:
iopopen.c:268: parse error before `if'
make[2]: *** [/usr/src/glibc-build/libio/iopopen.o] Error 1
make[2]: Leaving directory `/home/usr/src/glibc-2.2.4/libio'
make[1]: *** [libio/subdir_lib] Error 2
make[1]: Leaving directory `/home/usr/src/glibc-2.2.4'
make: *** [all] Error 2
jvdploe:
Thanks for the help and support,
Greetings,
- John
Andreas Jaeger wrote:
> John van der Ploeg <address@hidden> writes:
>
> > Hi glibc-maintainers,
> >
> > I'm compiling glibc-2.2.4 and get following build error.
> >
> > I have gcc 2.95
> > GNU Make version 3.79.1
> > Kernel 2.4.9
> >
> > Any idea what's wrong and how to fix??
>
> How did you configure glibc? Do you have the linuxthreads add-on?
>
> Andreas
> --
> Andreas Jaeger
> SuSE Labs address@hidden
> private address@hidden
> http://www.suse.de/~aj
--
John van der Ploeg
http://home.planet.nl/~jvdploe
address@hidden