This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
_CTIME namespace conflict on hpux 11
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 10:50:24 -0500 (EST)
- Subject: _CTIME namespace conflict on hpux 11
The following error occurs building libstdc++ with yesterdays trunk on
hppa64-hp-hpux11.11:
/xxx/gnu/gcc-3.2/objdir/gcc/xgcc -shared-libgcc -B/xxx/gnu/gcc-3.2/objdir/gcc/ -
nostdinc++ -L/xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src -L/xxx
/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/gnu64/hppa
64-hp-hpux11.11/bin/ -B/opt/gnu64/hppa64-hp-hpux11.11/lib/ -isystem /opt/gnu64/h
ppa64-hp-hpux11.11/include -nostdinc++ -I/xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux1
1.11/libstdc++-v3/include/hppa64-hp-hpux11.11 -I/xxx/gnu/gcc-3.2/objdir/hppa64-h
p-hpux11.11/libstdc++-v3/include -I../../../../gcc/libstdc++-v3/libsupc++ -I../.
./../../gcc/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-forma
t -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sectio
ns -fdata-sections -g -c ../../../../gcc/libstdc++-v3/src/globals.cc -fPIC -DPI
C -o .libs/globals.o
In file included from /xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/cwchar:51,
from /xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/bits/fpos.h:45,
from /xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/iosfwd:46,
from /xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ios:44,
from /xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/istream:44,
from /xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/fstream:45,
from ../../../../gcc/libstdc++-v3/src/globals.cc:30:
/xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ctime:75: `ctime' not declared
This occurs because the HP header <sys/time.h> uses the contruct
# ifndef _CTIME
# define _CTIME
extern char *ctime(const time_t *);
# endif
and
/xxx/gnu/gcc-3.2/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/ctime
uses
#ifndef _CTIME
#define _CTIME 1
Which should change?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)