Pb make samba 2.2.5 with snprintf on HPUX11

patrick.girard at nto.atmel.com patrick.girard at nto.atmel.com
Fri Sep 6 12:23:00 GMT 2002


Hi Don,

Thanks for your answer.
I have installed gcc 2.95.3 and now it's working.

Bye
Patrick

-----Message d'origine-----
De : don.mccall [mailto:don_mccall at hp.com]
Envoyé : vendredi 6 septembre 2002 12:58
À : don.mccall; patrick.girard; samba-technical
Objet : RE: Pb make samba 2.2.5 with snprintf on HPUX11


Hi Patrick,
Problem is that the header file stdio.h on HP-UX 11  had a bad 
declaration
for snprintf()  (doesn't match the standard OR the man page).  HP is
planning on fixing this in a future release, but for now, if you are 
using
gcc, you'll need to edit the stdio.h that gcc is using so that the
snprintf() entry reads:

     extern int snprintf(char *, size_t, const char *,...);

instead of:

     extern int snprintf(char *, size_t, char *,...);

Hope this helps,
Don

> -----Original Message-----
> From: patrick.girard at nto.atmel.com 
> [mailto:patrick.girard at nto.atmel.com]
> Sent: Friday, August 30, 2002 4:21
> To: samba-technical at lists.samba.org
> Subject: Pb make samba 2.2.5 with snprintf on HPUX11
> 
> 
> Hello
> 
> I am compiling samba 2.2.5 on HPUX 11 with Gcc 2.95.2.
> 
> During the make i get an error :
> 
> Compiling lib/snprintf.c
> In file included from lib/snprintf.c:69:
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stri
> ng.h:29: 
> warning: 
> conflicting types for built-in function `memcmp'
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stri
> ng.h:85: 
> warning: 
> conflicting types for built-in function `memcpy'
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stri
> ng.h:87: 
> warning: 
> conflicting types for built-in function `memset'
> lib/snprintf.c:790: conflicting types for `snprintf'
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stdi
> o.h:447: 
> previous 
> declaration of `snprintf'
> *** Error exit code 1
> 
> Stop.
> 
> Thanks for your help
> 
> Patrick GIRARD
> ATMEL Nantes
> patrick.girard at nto.atmel.com
> 




More information about the samba-technical mailing list