Pb make samba 2.2.5 with snprintf on HPUX11
don_mccall at hp.com
Fri Sep 6 10:59:00 GMT 2002
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 *,...);
extern int snprintf(char *, size_t, char *,...);
Hope this helps,
> -----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
> 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:
> conflicting types for built-in function `memcmp'
> conflicting types for built-in function `memcpy'
> conflicting types for built-in function `memset'
> lib/snprintf.c:790: conflicting types for `snprintf'
> declaration of `snprintf'
> *** Error exit code 1
> Thanks for your help
> Patrick GIRARD
> ATMEL Nantes
> patrick.girard at nto.atmel.com
More information about the samba-technical