This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Another libstdc++ build failure on hppa1.1-hp-hpux10.20: strtoll and strtoull undeclared
- To: pedwards at disaster dot jaj dot com (Phil Edwards)
- Subject: Re: Another libstdc++ build failure on hppa1.1-hp-hpux10.20: strtoll and strtoull undeclared
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Tue, 6 Nov 2001 00:43:55 -0500 (EST)
- Cc: gcc-bugs at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
> The configure tests for these routines don't include anything other
> than stdlib.h. The next step, I think, would be to figure out why the
> strtoll/strtoull tests pass during configure; it seems like they should
> be failing right now. Could you check config.log?
As far as I can tell, these two functions were not tested for by configure:
checking for enabled long long I/O support... yes
Here is config.log:
configure:3626: checking for enabled long long I/O support
configure:3637: /xxx/gnu/gcc-3.1/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.1/objdir/gcc/
-B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -i
system /usr/local/hppa1.1-hp-hpux10.20/include -c -g -O2 conftest.c 1>&5
configure:3654: /xxx/gnu/gcc-3.1/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.1/objdir/gcc/
-B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -i
system /usr/local/hppa1.1-hp-hpux10.20/include -c -g -O2 conftest.c 1>&5
Hmmm. The configure doesn't link the program. With C, it isn't an error
to have an undeclared function. If you used g++, you would get an error:
40 (hiauly1)dave> g++ -g -c -O2 strtoll.c
strtoll.c: In function `int main()':
strtoll.c:3: `strtoll' undeclared (first use this function)
strtoll.c:3: (Each undeclared identifier is reported only once for each
function it appears in.)
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)