pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/57360: apr-util 1.6.3 fails to build with apr-1.7.3nb1
The following reply was made to PR pkg/57360; it has been noted by GNATS.
From: Hiroshi Hakoyama <hiroshi-hakoyama%nagano.ac.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/57360: apr-util 1.6.3 fails to build with apr-1.7.3nb1
Date: Tue, 18 Apr 2023 16:21:37 +0900
> Ok, so can you please check if /usr/pkg/bin/apr-1-config is a working
> script?
>=20
> Does e.g.
>=20
> /usr/pkg/bin/apr-1-config --libs
# /usr/pkg/bin/apr-1-config --libs
/usr/pkg/bin/apr-1-config: bad substitution
If I change the first line from #!/bin/sh to #!/usr/pkg/bin/bash, it =
works.
# /usr/pkg/bin/apr-1-config2 --libs
-luuid -lsendfile -lrt -lsocket -lpthread
So, the shell seems not to work with the sh of Solaris 10.
> 2023/04/18 15:45=E3=80=81Thomas Klausner <wiz%NetBSD.org@localhost>=E3=81=AE=E3=83=
=A1=E3=83=BC=E3=83=AB:
>=20
> The following reply was made to PR pkg/57360; it has been noted by =
GNATS.
>=20
> From: Thomas Klausner <wiz%NetBSD.org@localhost>
> To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
> Cc:=20
> Subject: Re: pkg/57360: apr-util 1.6.3 fails to build with =
apr-1.7.3nb1
> Date: Tue, 18 Apr 2023 08:39:08 +0200
>=20
> On Tue, Apr 18, 2023 at 09:52:31AM +0900, Hiroshi Hakoyama wrote:
>>> Please check the config.log file for details what fails in your =
environment.
>>=20
>> Here is the config.log.
>>=20
>> /usr/pkgsrc/devel/apr-util/work/apr-util-1.6.3/config.log
> ...
>> $ ./configure --with-apr=3D/usr/pkg/bin/apr-1-config =
--with-expat=3D/usr/pkg --without-gdbm --without-odbc --without-sqlite2 =
--with-dbm=3Dsdbm --without-pgsql --without-sqlite3 --without-crypto =
--with-libiconv-prefix=3D/usr/pkg --prefix=3D/usr/pkg =
--build=3Dsparc-sun-solaris2.10 --host=3Dsparc-sun-solaris2.10 =
--mandir=3D/usr/pkg/man --enable-option-checking=3Dyes
> ...
>> configure:4612: error: the --with-apr parameter is incorrect. It must =
specify an install prefix, a build directory, or an apr-config file.
>=20
> Ok, so can you please check if /usr/pkg/bin/apr-1-config is a working
> script?
>=20
> Does e.g.
>=20
> /usr/pkg/bin/apr-1-config --libs
>=20
> return something useful? For me it returns:
>=20
> # apr-1-config --libs
> -lrt -lcrypt -lpthread
>=20
>=20
> If I read the code correctly (from configure), it uses --help to check
> if the script works.
>=20
> Excerpt from apr-util's configure script:
>=20
> # Check whether --with-apr was given.
> if test ${with_apr+y}
> then :
> withval=3D$with_apr;
> if test "$withval" =3D "no" || test "$withval" =3D "yes"; then
> as_fn_error $? "--with-apr requires a directory or file to be =
provided" "$LINENO" 5
> fi
>=20
> for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
> do
> for lookdir in "$withval/bin" "$withval"
> do
> if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
> apr_config=3D"$lookdir/$apr_temp_apr_config_file"
>=20
> apr_found=3D"yes"
> break 2
> fi
> done
> done
>=20
> if test "$apr_found" !=3D "yes" && $TEST_X "$withval" && $withval =
--help > /dev/null 2>&1 ; then
> apr_config=3D"$withval"
> apr_found=3D"yes"
> fi
>=20
> if test "$apr_found" !=3D "yes"; then
> as_fn_error $? "the --with-apr parameter is incorrect. It must =
specify an install prefix, a build directory, or an apr-config file." =
"$LINENO" 5
> fi
>=20
>=20
> Thomas
>=20
Home |
Main Index |
Thread Index |
Old Index