Sampa-2.2.2 Compile error on HP-UX 11
Maher Atwah
atwahmm at hiram.edu
Wed Dec 26 20:25:03 GMT 2001
I am trying to compile samba-2.2.2 on HP-UX 11 server. I have installed
GCC 3.0.1 and 2.11.2 binutils. Also, I have downloaded the most recent
updates for samba-2.2.2 using cvs.
./configure --with-pam -with-winbind works fine,
but I get the following error when I try make:
.
.
.
Compiling lib/snprintf.c
lib/snprintf.c:770: conflicting types for `snprintf'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:493:
previous d
eclaration of `snprintf'
Stop.
*** Error exit code 1
I searched previous messages and there was one suggesting replacing the
line in lib/snprintf.c with the line from stdio.h, but that did not
work.
Line 770 from lib/sprintf.c starts with:
int snprintf(char *str,size_t count,const char *fmt,...)
{
size_t ret;
va_list ap;
va_start(ap, fmt);
ret = vsnprintf(str, count, fmt, ap);
va_end(ap);
return ret;
}
Line 493 from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h is:
extern int snprintf(char *, __size_t, char *,...);
Any help is greatly appreciated.
TIA
More information about the samba
mailing list