[Samba] Error compiling 3.0.0beta2 on HP-UX

Alexander Skwar listen at alexander.skwar.name
Mon Jul 7 10:49:58 GMT 2003


I'm trying to compile 3.0.0beta2 on a HP-UX 11.00 machine with gcc v3.2.
 After running configure --prefix=/some/where, I ran make which exited
with this error message:

Compiling lib/snprintf.c
lib/snprintf.c:832: conflicting types for `snprintf'
previous declaration of `snprintf'
*** Error exit code 1

Line 832 of lib/snprintf.c contains:

#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
 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);
        return ret;

Hmm, what to do?

Thanks a lot for any help,

Alexander Skwar
Signatur vorübergehend deaktiviert.

More information about the samba mailing list