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]

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


The following build error occured with the mainline as of Sat Nov  3
20:54:06 UTC 2001:

/bin/sh ../libtool --tag CXX --mode=compile /xxx/gnu/gcc-3.1/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.1/objdir/gcc/ -nostdinc++  -L/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/src -L/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/src/.libs -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -isystem /usr/local/hppa1.1-hp-hpux10.20/include -nostdinc++ -I/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/hppa1.1-hp-hpux10.20 -I/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include -I../../../../libstdc++-v3/libsupc++  -I../../../../libstdc++-v3/libmath    -g -O2 -fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline  -fdiagnostics-show-location=once  -g    -c ../../../../libstdc++-v3/src/locale-inst.cc
/xxx/gnu/gcc-3.1/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.1/objdir/gcc/ -nostdinc++ -L/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/src -L/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/src/.libs -B/usr/local/hppa1.1-hp-hpux10.20/bin/ -B/usr/local/hppa1.1-hp-hpux10.20/lib/ -isystem /usr/local/hppa1.1-hp-hpux10.20/include -nostdinc++ -I/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/hppa1.1-hp-hpux10.20 -I/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include -I../../../../libstdc++-v3/libsupc++ -I../../../../libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../libstdc++-v3/src/locale-inst.cc  -fPIC -DPIC -o .libs/locale-inst.o
/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/bits/locale_facets.tcc: In
   member function `_InIter std::num_get<_CharT, _InIter>::do_get(_InIter, 
   _InIter, std::ios_base&, std::_Ios_Iostate&, long long int&) const [with 
   _CharT = char, _InIter = std::istreambuf_iterator<char, 
   std::char_traits<char> >]':
../../../../libstdc++-v3/src/locale-inst.cc:74:   instantiated from here
/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/bits/locale_facets.tcc:301: `
   strtoll' undeclared (first use this function)
/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/bits/locale_facets.tcc:301: (Each
   undeclared identifier is reported only once for each function it appears 
   in.)
/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/bits/locale_facets.tcc: In
   member function `_InIter std::num_get<_CharT, _InIter>::do_get(_InIter, 
   _InIter, std::ios_base&, std::_Ios_Iostate&, long long unsigned int&) const 
   [with _CharT = char, _InIter = std::istreambuf_iterator<char, 
   std::char_traits<char> >]':
../../../../libstdc++-v3/src/locale-inst.cc:74:   instantiated from here
/xxx/gnu/gcc-3.1/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/include/bits/locale_facets.tcc:409: `
   strtoull' undeclared (first use this function)
make[4]: *** [locale-inst.lo] Error 1

Configured as follows:

../configure --host=hppa1.1-hp-hpux10.20 --with-gnu-as --enable-shared --enable-threads --enable-debug=no

This appears to be compiled in because we have

// Include I/O support for 'long long' and 'unsigned long long'.
#define _GLIBCPP_USE_LONG_LONG 1

in config.h.  Do we need implementations of these in libiberty?  The two
routines are not in stdlib.h or libc under hpux 10.20.  There appear to
be hidden implementations under the names __strtoll and __strtoull in libc.

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]