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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 4:21
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> 

Reply via email to