Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#15026 closed defect (fixed)

curl fails with new openldap

Reported by: thomas Owned by: blfs-book
Priority: elevated Milestone: 10.2
Component: BOOK Version: git
Severity: major Keywords:
Cc:

Description


Attachments (1)

curl-7.76.1-function_naming-1.patch (7.6 KB ) - added by thomas 3 months ago.
upstream patch

Download all attachments as: .zip

Change History (4)

by thomas, 3 months ago

upstream patch

comment:1 by thomas, 3 months ago

curl (7.76.1) cannot be compiled when openldap-2.5.4 is installed:

...
  CC       libcurl_la-multi.lo
  CC       libcurl_la-netrc.lo
  CC       libcurl_la-non-ascii.lo
  CC       libcurl_la-nonblock.lo
  CC       libcurl_la-openldap.lo
  CC       libcurl_la-parsedate.lo
  CC       libcurl_la-pingpong.lo
openldap.c:83:17: Fehler: In Konflikt stehende Typen für »ldap_connect«
   83 | static CURLcode ldap_connect(struct Curl_easy *data, bool *done);
      |                 ^~~~~~~~~~~~
In Datei, eingebunden von openldap.c:39:
/usr/include/ldap.h:1554:1: Anmerkung: Vorherige Deklaration von »ldap_connect« war hier
 1554 | ldap_connect( LDAP *ld );
      | ^~~~~~~~~~~~
make[2]: *** [Makefile:2515: libcurl_la-openldap.lo] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[2]: Verzeichnis „/tmp/curl/build/curl-7.76.1/lib“ wird verlassen
make[1]: *** [Makefile:1346: all] Fehler 2
make[1]: Verzeichnis „/tmp/curl/build/curl-7.76.1/lib“ wird verlassen
make: *** [Makefile:1255: all-recursive] Fehler 1
...

There is a naming collision of functions in openldap and functions in curl. Both have same name.

There is a fix to curl already (it is attached).

comment:2 by thomas, 3 months ago

Resolution: fixed
Status: newclosed

Fixed in [f9cf8463]

comment:3 by Tim Tassonis, 3 months ago

sorry, forgot about that, as I explicitely build curl without ldap support (I mean, who wants to access ldap entries via curl?). Exactly the same problem as in cups-filters.

Note: See TracTickets for help on using tickets.