Package Details: libldap24 2.4.59-3

Git Clone URL: http://aur.archlinux.org/libldap24.git (read-only, click to copy)
Package Base: libldap24
Description: Lightweight Directory Access Protocol (LDAP) client libraries
Upstream URL: http://www.openldap.org/
Licenses: custom
Submitter: anatolik
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 14
Popularity: 0.99
First Submitted: 2021-11-19 17:39 (UTC)
Last Updated: 2025-04-29 18:01 (UTC)

Latest Comments

1 2 3 Next › Last »

primalmotion commented on 2025-05-07 16:59 (UTC)

I confirm the patch below fixes it. thanks!

mkurz commented on 2025-05-07 07:40 (UTC)

It does not build anymore because GCC was bumped to version 15, which switches the default language version to gnu23. You can find more information here: http://gcc.gnu.org/gcc-15/porting_to.html

GCC 15 changes the default language version for C compilation from -std=gnu17 to -std=gnu23. If your code relies on older versions of the C standard, you will need to either add -std= to your build flags, or port your code to C23.

To fix the build we can just switch back to gnu17. In line 34 of the PKGBUILD you need to add -std=gnu17 to CFLAGS:

-  CFLAGS="${CFLAGS} -DLDAP_CONNECTIONLESS -Wno-implicit-function-declaration -Wno-incompatible-pointer-types" ./configure --prefix=/usr --libexecdir=/usr/lib \
+  CFLAGS="${CFLAGS} -DLDAP_CONNECTIONLESS -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -std=gnu17" ./configure --prefix=/usr --libexecdir=/usr/lib \

primalmotion commented on 2025-05-06 15:01 (UTC)

This does not build anymore

  Entering subdirectory libraries
make[1]: Entering directory '/home/antoine/.cache/yay/libldap24/src/openldap-2.4.59/libraries'
Making all in /home/antoine/.cache/yay/libldap24/src/openldap-2.4.59/libraries
  Entering subdirectory liblutil
make[2]: Entering directory '/home/antoine/.cache/yay/libldap24/src/openldap-2.4.59/libraries/liblutil'
rm -f version.c
../../build/mkversion -v "2.4.59" liblutil.a > version.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/antoine/.cache/yay/libldap24/src=/usr/src/debug/libldap24 -flto=auto -DLDAP_CONNECTIONLESS -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -I../../include        -I../../include       -c -o base64.o base64.c
In file included from base64.c:43:
../../include/ac/string.h:61:30: error: conflicting types for ‘strdup’; have ‘char *(void)’
   61 |         LDAP_LIBC_F(char *) (strdup)();
      |                              ^~~~~~
In file included from ../../include/ac/string.h:21:
/usr/include/string.h:187:14: note: previous declaration of ‘strdup’ with type ‘char *(const char *)’
  187 | extern char *strdup (const char *__s)
      |              ^~~~~~
../../include/ac/string.h:71:6: error: conflicting types for ‘strcasecmp’; have ‘int(void)’
   71 | int (strcasecmp)();
      |      ^~~~~~~~~~
In file included from /usr/include/string.h:462:
/usr/include/strings.h:116:12: note: previous declaration of ‘strcasecmp’ with type ‘int(const char *, const char *)’
  116 | extern int strcasecmp (const char *__s1, const char *__s2)
      |            ^~~~~~~~~~
../../include/ac/string.h:72:6: error: conflicting types for ‘strncasecmp’; have ‘int(void)’
   72 | int (strncasecmp)();
      |      ^~~~~~~~~~~
/usr/include/strings.h:120:12: note: previous declaration of ‘strncasecmp’ with type ‘int(const char *, const char *, long unsigned int)’
  120 | extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
      |            ^~~~~~~~~~~
make[2]: *** [<builtin>: base64.o] Error 1
make[2]: Leaving directory '/home/antoine/.cache/yay/libldap24/src/openldap-2.4.59/libraries/liblutil'
make[1]: *** [Makefile:299: all-common] Error 1
make[1]: Leaving directory '/home/antoine/.cache/yay/libldap24/src/openldap-2.4.59/libraries'
make: *** [Makefile:315: all-common] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: libldap24-exit status 4

mkurz commented on 2025-04-26 06:54 (UTC)

You did not update pkgrel in .SRCINFO so now yay complains -> libldap24: local (2.4.59-3) is newer than AUR (2.4.59-2)

fft commented on 2024-12-17 17:13 (UTC)

Meet same problem with building. Seems root cause - is caching of your AUR helper. I use paru, so need to remove ~/.cache/paru/clone/libldap24/ manually. Don't know idiomatic way of fixing this, may be maintaineer can reset src dir during prepare().

Azad commented on 2024-05-15 18:32 (UTC)

same error broken POSIX regex

gus_joaquin commented on 2024-05-13 23:41 (UTC) (edited on 2024-05-13 23:42 (UTC) by gus_joaquin)

Hi, i can't install this package, i have an error building this package:

checking non-posix strerror_r... no checking for regex.h... yes checking for library containing regfree... none required checking for compatible POSIX regex... no configure: error: broken POSIX regex! ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'libldap24-2.4.59-2': error: packages failed to build: libldap24-2.4.59-2

joshm commented on 2024-02-15 16:50 (UTC) (edited on 2024-02-15 16:50 (UTC) by joshm)

I can't update things, and can't uninstall this package for some reason -- any thoughts?

josh@compy-manjaro ~ > pacaur -Syu           
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
...
:: no results found for python2-pytest-rerunfailures (dependency tree: libldap24)
:: no results found for python2-pytest-xdist (dependency tree: libldap24)
:: no results found for python2-scripttest (dependency tree: libldap24)
:: no results found for python2-virtualenv (dependency tree: libldap24)
:: no results found for python2-werkzeug (dependency tree: libldap24)
✘ josh@compy-manjaro ~ > pacaur -R libldap24
error: target not found: libldap24

chmodx commented on 2024-01-23 07:22 (UTC)

I'm having trouble installing this. I thought the issue was not having openssl, but installing it didn't help. Here's the error:

creating libldap.la
(cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la)
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -DLDAP_CONNECTIONLESS -I../../include        -I../../include       -c -o apitest.o apitest.c
/bin/sh ../../libtool --mode=link cc  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -DLDAP_CONNECTIONLESS  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now   -o apitest apitest.o libldap.la ../../libraries/liblber/liblber.la ../../libraries/liblutil/liblutil.a -lsasl2  -lssl -lcrypto  -lcrypt
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -DLDAP_CONNECTIONLESS -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/apitest apitest.o  ./.libs/libldap.so /home/erik/.cache/yay/libldap24/src/openldap-2.4.59/libraries/liblber/.libs/liblber.so ../../libraries/liblber/.libs/liblber.so ../../libraries/liblutil/liblutil.a -lsasl2 -lssl -lcrypto -lcrypt
/usr/bin/ld: ./.libs/libldap.so: undefined reference to `SSL_get_peer_certificate'
collect2: error: ld returned 1 exit status

I need this to install this package: http://aur.archlinux.org/packages/mssql-server.

TexZeTech commented on 2023-12-30 23:39 (UTC)

I use this for the Steam game Loop Hero.