From kde-core-devel Thu Aug 26 18:31:30 1999 From: Harri Porten Date: Thu, 26 Aug 1999 18:31:30 +0000 To: kde-core-devel Subject: [Fwd: Bug#1823: Compilation error with 1.1.2pre3 for X-MARC-Message: https://marc.info/?l=kde-core-devel&m=93569183529445 For those who don't follow kde-bugs-dist: Stefan Becker wrote: > > package: kdecore > version: 1.1.2pre3 > > kdecore/kdebug.cpp uses vsnprintf() and there is also a configure check > for it, but unfortunately the HP-UX 10.20 C library contains the > function, but it is not documented. Thus the autoconf check succeeds, > but the compilation fails. > > I have used the following patch to work around the problem: > > ------------------------- Cut Here --------------------------------- > --- kdelibs-1.1.2pre3/kdecore/kdebug.cpp~ Mon Apr 19 18:00:11 1999 > +++ kdelibs-1.1.2pre3/kdecore/kdebug.cpp Thu Aug 26 16:53:28 1999 > @@ -36,6 +36,11 @@ > #include > #endif > > +#if defined(HAVE_VSNPRINTF) && defined(_HPUX_SOURCE) > +/* HP-UX 10's C library has vsnprintf(), but it's not documented :-( */ > +int vsnprintf(char *s, size_t n, const char *format, va_list ap); > +#endif > + > class KDebugEntry > { > public: > ------------------------- Cut Here --------------------------------- > > BTW: This still compiled fine in 1.1.2pre...