Issue 6312 - VC++: stdio.h(358) : error C3163: '_vsnprintf': attributes inconsistent with previous declaration
Summary: VC++: stdio.h(358) : error C3163: '_vsnprintf': attributes inconsistent with ...
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 15:39 UTC by neustradamus@hotmail.com
Modified: 2009-11-11 00:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description neustradamus@hotmail.com 2009-09-30 15:39:10 UTC
Full_Name: Neustradamus
Version: 2.2.16
OS: Windows Server 2008
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (2a01:e34:ee8a:1e0:5064:1d53:e87:c8ac)


Hello,

I have errors :
stdio.h(358) : error C3163: '_vsnprintf': attributes inconsistent with previous
declaration

Microsoft decided to define vsnprintf in VS 2008 release.
Many libraries, such as WinPcap, defined vsnprintf function by themselves
because vsnprintf does not exist in previous versions of stdio.h.

http://rjeng.blogspot.com/2008/06/vc-stdioh358-error-c3163-attributes.html

http://www.xfire.com/blog/godjonez/816493/

'vsnprintf'
'_vsnprintf'
http://msdn2.microsoft.com/en-us/library/1kt27hek.aspx

Can you update OpenLDAP ?

Thanks in advance,

Regards,

Neustradamus
Comment 1 neustradamus@hotmail.com 2009-09-30 16:50:37 UTC
You must change in configure and \include\PORTABLE.H :

#define vsnprintf _vsnprintf

with

#if _MSC_VER < 1500  // 1500 == VC++ 9.0
#define vsnprintf _vsnprintf
 #endif

or

 #if _MSC_VER < 1500
#define vsnprintf _vsnprintf
 #endif

 Sorry for issues ITS#6313 at ITS#6318 but I have an error :
"The system encountered a fatal error
can't get info in find_id
The last error code was: No such file or directory"

Thanks in advance,

Regards,

Neustradamus
 		 	   		  
_________________________________________________________________
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger !
http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx
Comment 2 Howard Chu 2009-10-01 19:05:42 UTC
published 6312
marked public
Comment 3 Howard Chu 2009-11-11 00:54:34 UTC
neustradamus@hotmail.com wrote:
> --_add76be3-02e1-47b1-b978-259bce59b479_
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> 
> You must change in configure and \include\PORTABLE.H :
> 
> #define vsnprintf _vsnprintf
> 
> with
> 
> #if _MSC_VER < 1500  // 1500 =3D=3D VC++ 9.0
> #define vsnprintf _vsnprintf
>  #endif
> 
> or
> 
>  #if _MSC_VER < 1500
> #define vsnprintf _vsnprintf
>  #endif

You reported this issue against 2.2.16, which is several years obsolete.
(Current version is 2.4.19.) The configure script has checked for vsnprintf
and _vsnprintf for many years; it will not setup this #define if it doesn't
need to.

Closing this ITS.
-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 4 Howard Chu 2009-11-11 00:54:43 UTC
changed state Open to Closed