This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: snprintf() on HP-UX 11.00 problem
- To: "ERICSON,MATHEW (A-Australia,ex1)" <mathew_ericson at agilent dot com>
- Subject: Re: snprintf() on HP-UX 11.00 problem
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 29 Jul 2001 00:26:33 -0300
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <050F1F49D79BD3118F3B0090278CB91802C905DF@apmail7.aus.agilent.com>
On Jul 27, 2001, "ERICSON,MATHEW (A-Australia,ex1)" <mathew_ericson@agilent.com> wrote:
> lib/snprintf.c:760: conflicting types for `snprintf'
> /opt/gcc-3.0/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0/include/stdio.h:493:
> previous declaration of `snprintf'
> A grep on /opt/gcc-3.0/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0/include/stdio.h
> shows:
> extern int snprintf(char *, __size_t, char *,...);
This declaration looks reasonable. What does the
declaration/definition in Samba's lib/snprintf.c:760 look like?
Perhaps it shouldn't be defined at all, given that the OS already
offers this function? Anyway, this is more likely to be an issue for
samba-technical, rather than gcc-help.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me