pkgsrc-Users archive

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

problems with ap-php on pkgsrc-2024Q3



I am trying to get ap-php built with php5.6 and apache2.4 and it keeps
failing with a tedious configure error. It looks like configure.in must
generate a duff configure file. Sadly I know little about the workings
of configure but a bit of poking around it seems the error is somewhere
near PTHREAD CHECK in configure.in  I have no idea how the duff code is
generated. This is on NetBSD 10_STABLE/amd64

Any help would be appreciated as I have very successfully built ap-hp
with php 8.3/apache 2.4 on the previous quarters release.

I know php 5.6 is insecure and from dinosaur land, but I need to
urgently get some ancient Joomla code working so I can upgrade it...

Trimmed messages below:

# make install
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for PHP-5.6.31-OpenSSL-1.1.0-compatibility-
20170801.patch
=> Checksum SHA512 OK for PHP-5.6.31-OpenSSL-1.1.0-compatibility-
20170801.patch
=> Checksum BLAKE2s OK for php-5.6.40.tar.xz
=> Checksum SHA512 OK for php-5.6.40.tar.xz
===> Installing dependencies for ap24-php56-5.6.40nb11
=======================================================================
===
The supported build options for ap24-php56 are:

	disable-filter-url inet6 maintainer-zts php-embed
	readline ssl

The currently selected options are:

	inet6 ssl

You can select which build options to use by setting
PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.php56 (not defined)

=======================================================================
===
=======================================================================
===
The following variables will affect the build process of this package,
ap24-php56-5.6.40nb11.  Their current value is shown below:

        * PKG_APACHE_DEFAULT = apache24
        * SSLBASE = /usr
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private
        * VARBASE = /var

Based on these variables, the following variables have been set:

        * APACHE_PKG_PREFIX = ap24
        * PKG_APACHE = apache24

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/bin/make clean' after the changes.
=======================================================================
===
=> Tool dependency re2c-[0-9]*: found re2c-3.1
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency autoconf>=2.50: found autoconf-2.72
=> Tool dependency bison>=1.0: found bison-3.8.2nb1
=> Tool dependency perl>=5.0: found perl-5.38.2
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Full dependency libxml2>=2.10.4nb3: found libxml2-2.12.9
=> Full dependency php>=5.6.40nb11<5.7: found php-5.6.40nb12
=> Full dependency apache>=2.4.58nb1<2.5: found apache-2.4.62
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-
vulnerabilities'.
===> Overriding tools for ap24-php56-5.6.40nb11
===> Extracting for ap24-php56-5.6.40nb11
===> Patching for ap24-php56-5.6.40nb11
=> Applying distribution patches for ap24-php56-5.6.40nb11
=> Applying pkgsrc patches for ap24-php56-5.6.40nb11
===> Creating toolchain wrappers for ap24-php56-5.6.40nb11
/bin/mkdir -p /usr/pkgsrc/www/ap-php/work/.buildlink/bin && /bin/ln -fs
../sbin/apxs /usr/pkgsrc/www/ap-php/work/.buildlink/bin/apxs
/bin/mkdir -p /usr/pkgsrc/www/ap-php/work/.buildlink/bin && /bin/ln -fs
apr-1-config /usr/pkgsrc/www/ap-php/work/.buildlink/bin/apr-config
/bin/mkdir -p /usr/pkgsrc/www/ap-php/work/.buildlink/bin && /bin/ln -fs
apu-1-config /usr/pkgsrc/www/ap-php/work/.buildlink/bin/apu-config
===> Configuring for ap24-php56-5.6.40nb11
cd /usr/pkgsrc/www/ap-php/work/php-5.6.40 && /usr/bin/env
PHP_LIBXML_SHARED="1" EXTENSION_DIR="/usr/pkg/lib/php/20140828"
DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= EXTRA_LDFLAGS=-
Wl,-E APR_LIBTOOL=/usr/pkgsrc/www/ap-php/work/.cwrapper/bin/libtool
LIBTOOL="/usr/pkgsrc/www/ap-php/work/.cwrapper/bin/libtool "
INSTALL_INFO= MAKEINFO=/usr/pkgsrc/www/ap-php/work/.tools/bin/makeinfo
FLEX= BISON=/usr/pkgsrc/www/ap-php/work/.tools/bin/bison
ITSTOOL=/usr/pkgsrc/www/ap-php/work/.tools/bin/itstool
GDBUS_CODEGEN=/usr/pkgsrc/www/ap-php/work/.tools/bin/gdbus-codegen
AWK=/usr/bin/awk YACC=/usr/pkg/bin/bison\ -y CAT=/bin/cat
ac_cv_path_CAT=/bin/cat CHMOD=/bin/chmod CMP=/usr/bin/cmp CP=/bin/cp
DIFF=/usr/bin/diff ECHO=echo ac_cv_path_ECHO=echo EGREP=/usr/bin/egrep
ac_cv_path_EGREP=/usr/bin/egrep SETENV=/usr/bin/env
ENV_PROG=/usr/bin/env ac_cv_path_ENV=/usr/bin/env FALSE=false
ac_cv_path_FALSE=false FIND=/usr/bin/find GREP=/usr/bin/grep
ac_cv_path_GREP=/usr/bin/grep HOSTNAME=/bin/hostname LEX=/usr/bin/lex
LN=/bin/ln LS=/bin/ls MKDIR=/bin/mkdir\ -p MV=/bin/mv
PERL=/usr/pkg/bin/perl PERL_PATH=/usr/pkg/bin/perl RM=/bin/rm
RMDIR=/bin/rmdir SED=/usr/bin/sed SORT=/usr/bin/sort TEST=test
ac_cv_path_TEST=test TOUCH=/usr/bin/touch TR=/usr/bin/tr TRUE=true
ac_cv_path_TRUE=true PKG_CONFIG=/usr/pkgsrc/www/ap-
php/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/usr/pkgsrc/www/ap-
php/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/www/ap-
php/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/www/ap-
php/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make PTHREAD_CFLAGS=\
-pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr
CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/www/ap-php/work/.cwrapper/config
CXXCPP=cpp CC=gcc CFLAGS=-O2\ -pthread\ -I/usr/pkg/include\
-I/usr/include\ -I/usr/pkg/include/apr-1 CPPFLAGS=-I/usr/pkg/include\
-I/usr/include\ -I/usr/pkg/include/apr-1 CXX=c++ CXXFLAGS=-O2\
-pthread\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/apr-1
COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C
LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C
LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-
R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ -pthread LINKER_RPATH_FLAG=-
R PATH=/usr/pkgsrc/www/ap-php/work/.cwrapper/bin:/usr/pkgsrc/www/ap-
php/work/.buildlink/bin:/usr/pkgsrc/www/ap-
php/work/.tools/bin:/usr/pkgsrc/www/ap-
php/work/.gcc/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/s
bin:/usr/pkg/bin:/usr/games:/usr/X11R7/bin:/usr/local/sbin:/usr/local/b
in:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE=
ftp_proxy=downloads-forbidden-except-during-fetch http_proxy=downloads-
forbidden-except-during-fetch https_proxy=downloads-forbidden-except-
during-fetch no_proxy= PKG_SYSCONFDIR=/usr/pkg/etc
HOME=/usr/pkgsrc/www/ap-php/work/.home
CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/www/ap-php/work/.cwrapper/config
CONFIG_SHELL=/bin/sh LIBS= ac_given_INSTALL=/usr/bin/install\ -c\ -o\
root\ -g\ wheel lt_cv_sys_max_cmd_len=262144 autoconf -f
configure.in:19: warning: The macro 'AC_CONFIG_HEADER' is obsolete.
configure.in:19: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.in:19: the top level
configure.in:213: warning: The macro 'AC_AIX' is obsolete.
configure.in:213: You should run autoupdate.
./lib/autoconf/specific.m4:722: AC_AIX is expanded from...
configure.in:213: the top level
configure.in:225: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.in:225: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
...
... tedious m4 crap deleted
...
configure.in:1417: the top level
configure.in:1539: warning: AC_OUTPUT should be used without arguments.
configure.in:1539: You should run autoupdate.
=> Generating pkg-config files for builtin xz package.
=> Generating pkg-config file for builtin expat package.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking for grep that handles long lines and -e... (cached)
/usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for a sed that does not truncate output... /usr/pkgsrc/www/ap-
php/work/.tools/bin/sed
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking for x86_64--netbsd-cc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep -e... (cached) /usr/bin/egrep
checking for icc... no
checking for suncc... no
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for utime.h... yes
checking for sys/time.h... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking whether ln -s works... yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... yes
checking for gawk... /usr/bin/awk
checking if /usr/bin/awk is broken... no
checking for bison... /usr/pkg/bin/bison -y
checking for bison version... 3.8 (ok)
checking for re2c... re2c
checking for re2c version... 3.1 (ok)
checking whether to enable computed goto gcc extension with re2c... no
test: 20231008): unexpected operator
checking whether to force non-PIC code in shared modules... no
checking whether /dev/urandom exists... yes
./configure: 6853: Syntax error: "fi" unexpected (expecting ";;")
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/www/ap-php
*** Error code 1

Stop.

Cheers,
Dave

-- 
=========================
Phone: 07805784357
GnuPG Fingerprint: 9D69D60DA2CB9869
=========================


Home | Main Index | Thread Index | Old Index