[Bug 51129] Function name conflict (ldap_connect) with OpenLDAP 2.5
WineHQ Bugzilla
wine-bugs at winehq.org
Thu May 13 02:37:30 CDT 2021
https://bugs.winehq.org/show_bug.cgi?id=51129
Hans Leidekker <hans at meelstraat.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Hans Leidekker <hans at meelstraat.net> ---
(In reply to Sergio Durigan Junior from comment #3)
> I gave it a try and it seems that the "winldap.h" file is supposed to
> contain the Windows-specific definitions of OpenLDAP's "ldap.h", am I right?
> I gave it a try here, and I try to include both "winldap.h" and "ldap.h" I
> get a bunch of errors due to conflicting definitions:
>
> $ gcc -l:wldap32.dll.so test.c -I/usr/include/wine/wine/windows/
> -L/usr/lib/x86_64-linux-gnu/wine/ -lldap
> In file included from /usr/include/ldap.h:30,
>
> from test.c:3:
>
> /usr/include/lber.h:212:16: error: redefinition of ‘struct berval’
>
> 212 | typedef struct berval {
>
> | ^~~~~~
>
> In file included from test.c:2:
>
> /usr/include/wine/wine/windows/winldap.h:276:16: note: originally defined
> here
> 276 | typedef struct berval
> | ^~~~~~
> In file included from /usr/include/ldap.h:30,
> from test.c:3:
> /usr/include/lber.h:215:3: error: conflicting types for ‘BerValue’
> 215 | } BerValue;
> | ^~~~~~~~
> .... and on it goes
>
> In this case, and IIUC, "winldap.h" is not supposed to be used along with
> "ldap.h". I don't know if Wine offers its own version of libldap for
> Windows, but it seems to be the case given the "winldap32.dll.so" shlib. Is
> this a correct assumption? If it is, then this bug should probably be
> closed as invalid (and I apologize for the noise).
Wine implements the wldap32 dll on top of openldap. As you found it's not
possible to include both headers in the same file due to conflicts.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list