Skip to contentSkip to conversation

Error compiling c++ support with glibc 2.2

Linux-ia64 Michael Madore 3 participants 3 messages Oct 5, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

I'm getting the following error when trying to compile the 0925 gnupro on glibc 2.2(From 10/02 CVS):

/usr/src/turbo/BUILD/gnupro-2.96/build/gcc/g++ -B/usr/src/turbo/BUILD/gnupro-2.96/build/gcc/ -B/usr/ia64-cygnus-linux/bin/ -L/usr/src/turbo/BUILD/gnupro-2.96/build/ia64-cygnus-linux/libstdc++ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../src/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../src/libio/isgetline.cc ../../../src/libio/iostream.cc: In method `istream &istream::get (char
&)':
./../../src/libio/iostream.cc:75: `_IO_USER_LOCK' undeclared (first
use this function)
../../../src/libio/iostream.cc:75: (Each undeclared identifier is
reported only once for each function it appears in.)
../../../src/libio/isgetline.cc: In method `istream &istream::getline
(char *, int, char)':
../../../src/libio/isgetline.cc:41: `_IO_USER_LOCK' undeclared (first
use this function)
../../../src/libio/isgetline.cc:41: (Each undeclared identifier is
reported only once for each function it appears in.)
make[1]: *** [isgetline.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [iostream.o] Error 1
make[1]: Leaving directory `/usr/src/turbo/BUILD/gnupro-2.96/build/ia64-cygnus-linux/libio'
make: *** [all-target-libio] Error 2
Bad exit status from /var/tmp/rpm-tmp.11588 (%build)

According to Jim Wilson, iostream.cc is including /usr/include/bits/stdio-lock.h which references _IO_USER_LOCK. However, _IO_USER_LOCK is defined in /usr/include/libio.h which is not being included. Has anyone else run accross this problem? Any solutions?

Thanks

Signature · 3 lines
Mike Madore
Software Engineer
TurboLinux, Inc.
#1 lore raw

I have since noticed that the same bug got reported to gcc-bugs, and a patch was applied Sept 23 which should fix this problem. I have not yet tried to extract the patch and test it.

2000-09-23 Franz Sirl <[email protected]>

* stdstreams.cc: Include <libio.h>, not "libio.h".
* iolibio.h: Likewise.
(_IO_pos_BAD): Use _IO_off_t instead of _IO_fpos_t.
* libio.h (_IO_USER_LOCK): Define.

http://gcc.gnu.org/ml/gcc-bugs/2000-09/msg00563.html

Jim

#2 lore raw
In reply to Michael Madore
Quoted 3 lines · Jim Wilson

I have since noticed that the same bug got reported to gcc-bugs, and a patch was applied Sept 23 which should fix this problem. I have not yet tried to extract the patch and test it.

This patch is correct, you can apply it.

Signature · 3 lines
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------