This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Another libstdc++ build failure on hppa1.1-hp-hpux10.20: strtoll and strtoull undeclared


> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]