Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 07:23:03 +1100
From:      John Marshall <john.marshall@riverwillow.com.au>
To:        freebsd-ports@freebsd.org
Subject:   lang/php5 extensions and autoconf - make configure aborts
Message-ID:  <20101024202303.GA3205@rwpc12.mby.riverwillow.net.au>

next in thread | raw e-mail | index | archive | help

--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I tripped over this when attempting to build 3 different php5 extensions
on Saturday...

  ----------------
  # cd /usr/ports/textproc/php5-xsl
  # make clean configure
  =3D=3D=3D>  Cleaning for php5-xsl-5.3.3_2
  ...
  =3D=3D=3D>   php5-xsl-5.3.3_2 depends on file: /usr/local/bin/autoconf-2.=
68 - found
  ...
  =3D=3D=3D>  PHPizing for php5-xsl-5.3.3_2
  Configuring for:
  PHP Api Version:         20090626
  Zend Module Api No:      20090626
  Zend Extension Api No:   220090626
  Cannot find autoconf. Please check your autoconf installation and the
  $PHP_AUTOCONF environment variable. Then, rerun this script.

  *** Error code 1

  Stop in /usr/ports/textproc/php5-xsl.
  ----------------

I was puzzled because the autoconf dependendency was fine.  If I set the
environment variable $PHP_AUTOCONF to point to /usr/local/bin/autoconf
then the make would fall over with a similar error regarding autoheader.
If I also set $PHP_AUTOHEADER to point to /usr/local/bin/autoheader then
the build (of whichever extension) worked.

I had  another look this morning and noticed that make configure on
lang/php5 was clean but make configure on extensions was failing.  I
wondered what would happen if I rebuilt lang/php5.  Rebuilding and
reinstalling lang/php5 cleared the problem and extensions now build
happily.

--=20
John Marshall

--X1bOJ3K7DJ5YkBrT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAkzElaYACgkQw/tAaKKahKJgUACfW709K6Ls1+lG0Oqucs9yirfK
ukQAoKQCOLTIZCdaXKz1QekUMg74f2EX
=wIzP
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101024202303.GA3205>