Re: hp-ux; snprintf problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tomasz Tyczynski wrote:
I try to compile Sablotron on HP-UX B.11.11 U 9000/800.

It fails during "configure":

------------------------------------------------------------------------------------
configure:11940: error: declaration of C function `char snprintf()'
conflicts
   with
/usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.2/include/stdio.h:607:
error: previous
   declaration `int snprintf(char*, long unsigned int, const char*, ...)'
here
------------------------------------------------------------------------------------

Some another software /like gcc-3.3.2; Apache-last; PHP-last, Samba-last/
I installed after I
patched my OS - for example "s700_800 11.11 ld(1) and linker tools
cumulative patch";
from http://www5.itrc.hp.com/service/patch/search.do. After that, it work
fine.
this is something with the way autoconf & configure work. It declares
snprintf as 'char snprintf ()', which conflicts with the sytem provided
declaration.  For some reason the system provided definition is visible at
that point. you will have to analyze the particular autoconf test to
figure out what it's #including.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux