You are not logged in.
I have been trying to install php81 on my brand new installation. However, when buiding the c-client dependency, I get this rather cryptic error:
env_unix.c: In function ‘lock_work’:
osdep.h:60:15: error: implicit declaration of function ‘safe_flock’ [-Wimplicit-function-declaration]
60 | #define flock safe_flock
| ^~~~~~~~~~
I'm thinking I'm missing some sort of dependency, but I can't quite understand. What is this
safe_lock
thing is about? Later, the installation is halted with:
==> ERROR: A failure occurred in build().
Aborting...
-> error making: c-client-exit status 4
I have seen the same thing with the php83-iconv package as well.
Offline
For c-client add -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types to CFLAGS:
diff --git a/PKGBUILD b/PKGBUILD
index 635a4ad..8cdddeb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -26,7 +26,7 @@ prepare() {
build() {
cd "$srcdir/$_pkgbase-src"
- CFLAGS+=" -ffat-lto-objects"
+ CFLAGS+=" -ffat-lto-objects -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
# NOTE: if you wish to enforce SSL, use SSLTYPE=unix.nopwd
yes "y" | make -j1 lnp EXTRAAUTHENTICATORS=gss PASSWDTYPE=pam SPECIALAUTHENTICATORS=ssl SSLTYPE=unix EXTRACFLAGS="${CFLAGS} -fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam" EXTRALDFLAGS="${LDFLAGS}"
gentoo has patches for some of the errors but I could not find one for the pointer conversions in src/osdep/unix/unix.c.
For php81 why not build without c-client as the php package does see https://gitlab.archlinux.org/archlinux/ … d4b62e5a30
Offline
Thank you loqs. I added the flags and built it that way.
For posterity, I asked the same question as a comment on the package and learned this a problem with GCC 13.
Offline