* Stuart Henderson <s...@spacehopper.org> le [25-04-2017 12:31:15 +0100]:
> On 2017/04/25 08:27, Thuban wrote:
> > Hello,
> > I tried to upgrade the current pecl-redis port from php-5.6 to php-7.0
> > unsing the latest version (3.1.2).
> > I ran into this problem : 
> > 
> >     # phpize-7.0
> >     Configuring for:
> >     PHP Api Version:         20151012
> >     Zend Module Api No:      20151012
> >     Zend Extension Api No:   320151012
> >     cp: ax_check_compile_flag.m4: No such file or directory
> >     m4: aclocal.m4 at line 3105: include(build/ax_check_compile_flag.m4): 
> > No such file or
> >     directory
> >     autom4te-2.69: /usr/bin/m4 failed with exit status: 1
> > 
> > 
> > Does anyone has any advice here ?
> > 
> > Regards.
> > 
> > -- 
> > <thuban
> > 
> 
> I just committed fixes to lang/php. To avoid building the whole thing, you can
> copy /usr/local/share/aclocal/ax_check_compile_flag.m4 from autoconf-archive
> to /usr/local/share/php-7.0/build/ax_check_compile_flag.m4.

Thanks, now compiling work for php7.0.
As I'm quite new with ports, I don't understand how to modify the
pecl-redis Makefile to use php-7.0 while compiling.

Here are the procedure I follow yet : 

- Download and extract the lates archive : 
http://pecl.php.net/get/redis-3.1.2.tgz
- Copy /usr/local/share/aclocal/ax_check_compile_flag.m4 to
  /usr/local/share/php-7.0/build/ax_check_compile_flag.m4 as sugested by
  Stuart H., but the last change in php-7.0 port don't require this.
- run phpize-7.0
- run ./configure --enable-redis
  --with-php-config=/usr/local/bin/php-config-7.0


Any advices?

Regards
-- 
<thuban

Reply via email to