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
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
published 6312 marked public
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/
changed state Open to Closed