pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lang/php81 build failure



Hi,

I couldn't build this package on a newly installed -current system; it
built OK on an old one. The error is:

...
-lutil -lrt -lssl -lcrypto /usr/pkg/lib/libpcre2-8.so -lpthreads
-largon2 /usr/pkg/lib/libxml2.so -llzma -lm -lz -lssl -lcrypto
-Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkg/lib
ld: cannot find -lpthreads
+ exit_status=1
...

The old system happened to have /usr/lib/libpthreads.so*, this was
from 26th of September 2019. New systems don't have this library (only
libpthread.so* of course).

The problem with php81 turned out to be devel/pcre2, which included
-lpthreads as a private library, so I needed:
....
 pcre2 cvs diff -u
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/pcre2/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile    1 Nov 2021 10:06:14 -0000       1.22
+++ Makefile    4 Jan 2022 21:04:26 -0000
@@ -23,6 +23,7 @@
 CONFIGURE_ARGS+=       --enable-pcre2-32
 CONFIGURE_ARGS+=       --enable-pcre2grep-libz
 CONFIGURE_ARGS+=       --enable-pcre2grep-libbz2
+CONFIGURE_ARGS+=       --disable-pthreads
 # To avoid having to
 # sysctl -w security.pax.mprotect.enabled=0
 # because of its JIT on NetBSD.
....

(pthread is still enabled, of course).

Chavdar


-- 
----


Home | Main Index | Thread Index | Old Index