[Samba] conflict in lib/snprintf using gcc-2.95.3 on HPUX 11.
don_mccall at hp.com
Thu Feb 7 12:07:10 GMT 2002
This should be fixed at 2.2.3a - try doing a make clean, and make sure you
config.cache, and then run configure and make again.
From: René Nieuwenhuizen [mailto:R.Nieuwenhuizen at cpb.nl]
Sent: Thursday, February 07, 2002 2:49 PM
To: Samba Technical
Subject: [Samba] conflict in lib/snprintf using gcc-2.95.3 on HPUX 11.00
Compiling samba-2.2.2/2.2.3(a) using CC or gcc-2.95.3 on HP/UX 11.00 fails
with the following message:
In file included from lib/snprintf.c:63:
g.h:29: warning: conflicting types for built-in function `memcmp'
g.h:85: warning: conflicting types for built-in function `memcpy'
g.h:87: warning: conflicting types for built-in function `memset'
lib/snprintf.c:775: conflicting types for `snprintf'
.h:447: previous declaration of `snprintf'
*** Error exit code 1
I looked at the code which states:
/* yes this really must be a ||. Don't muck wiith this (tridge)
* The logic for these two is that we need our own definition if the
* OS *either* has no definition of *sprintf, or if it does have one
* that doesn't work properly according to the autoconf test. Perhaps
* these should really be smb_snprintf to avoid conflicts with buggy
* linkers? -- mbp
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_SNPRINTF)
So I have SNPRINTF but it seems not to be C99_SNPRINTF???
What should I do? And is this code right?
CPB Netherlands Bureau for Economic Policy Analysis
More information about the samba-technical