Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

php_require doesn't ensure that the specified version is installed #67

Open
alexmace opened this issue May 13, 2015 · 12 comments
Open

php_require doesn't ensure that the specified version is installed #67

alexmace opened this issue May 13, 2015 · 12 comments

Comments

@alexmace
Copy link

If I have a manifest file containing the following:

    $php_version = '5.6.7'

    # Install a php version and set as the global default php
    php::version { $php_version: }

    # Install PHP extensions
    php::extension::mcrypt { "mcrypt for {$php_version}":
        php => $php_version
    }
    php::extension::memcache { "memcache for {$php_version}":
        php => $php_version
    }
    php::extension::memcached { "memcached for {$php_version}":
        php => $php_version
    }
    php::extension::xdebug { "xdebug for {$php_version}":
        php => $php_version,
        version => '2.3.2'
    }

Then on the first run, all of the extensions fail to install because 5.6.7 is not installed and after this it installs 5.6.7 ok. On the second run, the extensions then install fine. Looking at the code in the extension manifests, it would appear that php_require is supposed to prevent this.

@alexmace
Copy link
Author

Relevant part of the log of the first run of boxen:

$ boxen
--> Preparing to auto-update...
--> Skipping auto-update, because your boxen checkout isn't on master

Working on something special, over here on a branch? That's cool! Once
you're done, you'll probably want to submit a pull request and get back
onto master so that you can get some sweet, sweet updates again, though.

For more info on how the simple git-based updates work, have a gander at
https://github.com/boxen/our-boxen/blob/master/docs/updates.md

Fact file /opt/boxen/repo/facts.d/example.yaml was parsed but returned an empty data set
Warning: Scope(Php::Version[5.6.7]): You are installing PHP 5.6.7 which is known to be insecure. The current secure 5.6.X version is 5.6.8
Notice: Compiled catalog for medic-2.local in environment production in 5.25 seconds
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[create_phpuc]/returns: executed successfully
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[brew install gettext]/returns: executed successfully
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[brew link --force gettext]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Mod_fcgid/Exec[xcode-select -switch /]/returns: executed successfully
Notice: Medic-2 Wha?
Notice: /Stage[main]/People::Alexmace/Notify[Medic-2 Wha?]/message: defined 'message' as 'Medic-2 Wha?'
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[apachectl restart]/returns: executed successfully
x package.xml
x xdebug-2.3.2/contrib/tracefile-analyser.php
x xdebug-2.3.2/contrib/xt.vim
x xdebug-2.3.2/debugclient/build/buildcheck.sh
x xdebug-2.3.2/debugclient/build/buildconf1.mk
x xdebug-2.3.2/debugclient/build/buildconf2.mk
x xdebug-2.3.2/debugclient/build/clean.mk
x xdebug-2.3.2/debugclient/build/config-stubs
x xdebug-2.3.2/debugclient/acinclude.m4
x xdebug-2.3.2/debugclient/buildconf
x xdebug-2.3.2/debugclient/config.guess
x xdebug-2.3.2/debugclient/config.h.in
x xdebug-2.3.2/debugclient/config.sub
x xdebug-2.3.2/debugclient/configure
x xdebug-2.3.2/debugclient/configure.in
x xdebug-2.3.2/debugclient/cvsclean
x xdebug-2.3.2/debugclient/debugclient.dsp
x xdebug-2.3.2/debugclient/depcomp
x xdebug-2.3.2/debugclient/INSTALL
x xdebug-2.3.2/debugclient/install-sh
x xdebug-2.3.2/debugclient/LICENSE
x xdebug-2.3.2/debugclient/ltmain.sh
x xdebug-2.3.2/debugclient/main.c
x xdebug-2.3.2/debugclient/Makefile.in
x xdebug-2.3.2/debugclient/missing
x xdebug-2.3.2/debugclient/mkinstalldirs
x xdebug-2.3.2/debugclient/usefulstuff.c
x xdebug-2.3.2/debugclient/usefulstuff.h
x xdebug-2.3.2/config.m4
x xdebug-2.3.2/config.w32
x xdebug-2.3.2/CREDITS
x xdebug-2.3.2/LICENSE
x xdebug-2.3.2/Makefile.frag
x xdebug-2.3.2/Makefile.in
x xdebug-2.3.2/NEWS
x xdebug-2.3.2/php_xdebug.h
x xdebug-2.3.2/README
x xdebug-2.3.2/usefulstuff.c
x xdebug-2.3.2/usefulstuff.h
x xdebug-2.3.2/xdebug.c
x xdebug-2.3.2/xdebug_branch_info.c
x xdebug-2.3.2/xdebug_branch_info.h
x xdebug-2.3.2/xdebug_code_coverage.c
x xdebug-2.3.2/xdebug_code_coverage.h
x xdebug-2.3.2/xdebug_com.c
x xdebug-2.3.2/xdebug_com.h
x xdebug-2.3.2/xdebug_compat.c
x xdebug-2.3.2/xdebug_compat.h
x xdebug-2.3.2/xdebug_handlers.c
x xdebug-2.3.2/xdebug_handlers.h
x xdebug-2.3.2/xdebug_handler_dbgp.c
x xdebug-2.3.2/xdebug_handler_dbgp.h
x xdebug-2.3.2/xdebug_hash.c
x xdebug-2.3.2/xdebug_hash.h
x xdebug-2.3.2/xdebug_llist.c
x xdebug-2.3.2/xdebug_llist.h
x xdebug-2.3.2/xdebug_mm.h
x xdebug-2.3.2/xdebug_private.c
x xdebug-2.3.2/xdebug_private.h
x xdebug-2.3.2/xdebug_profiler.c
x xdebug-2.3.2/xdebug_profiler.h
x xdebug-2.3.2/xdebug_set.c
x xdebug-2.3.2/xdebug_set.h
x xdebug-2.3.2/xdebug_stack.c
x xdebug-2.3.2/xdebug_stack.h
x xdebug-2.3.2/xdebug_str.c
x xdebug-2.3.2/xdebug_str.h
x xdebug-2.3.2/xdebug_superglobals.c
x xdebug-2.3.2/xdebug_superglobals.h
x xdebug-2.3.2/xdebug_tracing.c
x xdebug-2.3.2/xdebug_tracing.h
x xdebug-2.3.2/xdebug_trace_textual.c
x xdebug-2.3.2/xdebug_trace_textual.h
x xdebug-2.3.2/xdebug_trace_computerized.c
x xdebug-2.3.2/xdebug_trace_computerized.h
x xdebug-2.3.2/xdebug_trace_html.c
x xdebug-2.3.2/xdebug_trace_html.h
x xdebug-2.3.2/xdebug_var.c
x xdebug-2.3.2/xdebug_var.h
x xdebug-2.3.2/xdebug_xml.c
x xdebug-2.3.2/xdebug_xml.h
sh: /opt/boxen/phpenv/versions/5.6.7/bin/phpize: No such file or directory
sh: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
Error: Could not set 'present' on ensure: Failed to build module xdebug for {5.6.7} at 35:/opt/boxen/repo/shared/php/manifests/extension/xdebug.pp
Error: Could not set 'present' on ensure: Failed to build module xdebug for {5.6.7} at 35:/opt/boxen/repo/shared/php/manifests/extension/xdebug.pp
Wrapped exception:
Failed to build module xdebug for {5.6.7}
Error: /Stage[main]/People::Alexmace/Php::Extension::Xdebug[xdebug for {5.6.7}]/Php_extension[xdebug for {5.6.7}]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed to build module xdebug for {5.6.7} at 35:/opt/boxen/repo/shared/php/manifests/extension/xdebug.pp
Switched to branch 'master'
Switched to a new branch 'build'
sh: /opt/boxen/phpenv/versions/5.6.7/bin/phpize: No such file or directory
sh: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
Error: Could not set 'present' on ensure: Failed to build module mcrypt for {5.6.7} at 36:/opt/boxen/repo/shared/php/manifests/extension/mcrypt.pp
Error: Could not set 'present' on ensure: Failed to build module mcrypt for {5.6.7} at 36:/opt/boxen/repo/shared/php/manifests/extension/mcrypt.pp
Wrapped exception:
Failed to build module mcrypt for {5.6.7}
Error: /Stage[main]/People::Alexmace/Php::Extension::Mcrypt[mcrypt for {5.6.7}]/Php_extension[mcrypt for {5.6.7}]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed to build module mcrypt for {5.6.7} at 36:/opt/boxen/repo/shared/php/manifests/extension/mcrypt.pp
x package.xml
x memcache-2.2.7/config.m4
x memcache-2.2.7/config9.m4
x memcache-2.2.7/config.w32
x memcache-2.2.7/CREDITS
x memcache-2.2.7/example.php
x memcache-2.2.7/memcache.c
x memcache-2.2.7/memcache_queue.c
x memcache-2.2.7/memcache_session.c
x memcache-2.2.7/memcache_standard_hash.c
x memcache-2.2.7/memcache_consistent_hash.c
x memcache-2.2.7/memcache.dsp
x memcache-2.2.7/php_memcache.h
x memcache-2.2.7/memcache_queue.h
x memcache-2.2.7/README
x memcache-2.2.7/memcache.php
sh: /opt/boxen/phpenv/versions/5.6.7/bin/phpize: No such file or directory
sh: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
Error: Could not set 'present' on ensure: Failed to build module memcache for {5.6.7} at 38:/opt/boxen/repo/shared/php/manifests/extension/memcache.pp
Error: Could not set 'present' on ensure: Failed to build module memcache for {5.6.7} at 38:/opt/boxen/repo/shared/php/manifests/extension/memcache.pp
Wrapped exception:
Failed to build module memcache for {5.6.7}
Error: /Stage[main]/People::Alexmace/Php::Extension::Memcache[memcache for {5.6.7}]/Php_extension[memcache for {5.6.7}]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed to build module memcache for {5.6.7} at 38:/opt/boxen/repo/shared/php/manifests/extension/memcache.pp
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[ensure pip install]/returns: executed successfully
x package.xml
x memcached-2.1.0/README.markdown
x memcached-2.1.0/CREDITS
x memcached-2.1.0/LICENSE
x memcached-2.1.0/ChangeLog
x memcached-2.1.0/memcached-api.php
x memcached-2.1.0/memcached.ini
x memcached-2.1.0/fastlz/LICENSE
x memcached-2.1.0/config.m4
x memcached-2.1.0/config.w32
x memcached-2.1.0/php_memcached.c
x memcached-2.1.0/php_memcached.h
x memcached-2.1.0/php_memcached_session.c
x memcached-2.1.0/php_memcached_session.h
x memcached-2.1.0/php_libmemcached_compat.h
x memcached-2.1.0/g_fmt.c
x memcached-2.1.0/g_fmt.h
x memcached-2.1.0/fastlz/fastlz.c
x memcached-2.1.0/fastlz/fastlz.h
sh: /opt/boxen/phpenv/versions/5.6.7/bin/phpize: No such file or directory
sh: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
Error: Could not set 'present' on ensure: Failed to build module memcached for {5.6.7} at 43:/opt/boxen/repo/shared/php/manifests/extension/memcached.pp
Error: Could not set 'present' on ensure: Failed to build module memcached for {5.6.7} at 43:/opt/boxen/repo/shared/php/manifests/extension/memcached.pp
Wrapped exception:
Failed to build module memcached for {5.6.7}
Error: /Stage[main]/People::Alexmace/Php::Extension::Memcached[memcached for {5.6.7}]/Php_extension[memcached for {5.6.7}]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed to build module memcached for {5.6.7} at 43:/opt/boxen/repo/shared/php/manifests/extension/memcached.pp
Notice: /Stage[main]/People::Alexmace/Php::Version[5.6.7]/File[/opt/boxen/config/php/5.6.7]/ensure: created
Notice: /Stage[main]/People::Alexmace/Php::Version[5.6.7]/File[/opt/boxen/config/php/5.6.7/conf.d]/ensure: created
Notice: /Stage[main]/People::Alexmace/Php::Extension::Memcached[memcached for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/memcached.ini]: Dependency Php_extension[memcached for {5.6.7}] has failures: true
Warning: /Stage[main]/People::Alexmace/Php::Extension::Memcached[memcached for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/memcached.ini]: Skipping because of failed dependencies
Notice: /Stage[main]/People::Alexmace/Php::Extension::Mcrypt[mcrypt for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/mcrypt.ini]: Dependency Php_extension[mcrypt for {5.6.7}] has failures: true
Warning: /Stage[main]/People::Alexmace/Php::Extension::Mcrypt[mcrypt for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/mcrypt.ini]: Skipping because of failed dependencies
Notice: /Stage[main]/People::Alexmace/Php::Extension::Memcache[memcache for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/memcache.ini]: Dependency Php_extension[memcache for {5.6.7}] has failures: true
Warning: /Stage[main]/People::Alexmace/Php::Extension::Memcache[memcache for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/memcache.ini]: Skipping because of failed dependencies
Notice: /Stage[main]/People::Alexmace/Php::Version[5.6.7]/File[/opt/boxen/data/php/5.6.7]/ensure: created
Notice: /Stage[main]/People::Alexmace/Php::Version[5.6.7]/File[/opt/boxen/data/php/5.6.7/cache]/ensure: created
Notice: /Stage[main]/People::Alexmace/Php::Extension::Xdebug[xdebug for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/xdebug.ini]: Dependency Php_extension[xdebug for {5.6.7}] has failures: true
Warning: /Stage[main]/People::Alexmace/Php::Extension::Xdebug[xdebug for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/xdebug.ini]: Skipping because of failed dependencies
Notice: /Stage[main]/People::Alexmace/Php::Version[5.6.7]/File[/opt/boxen/config/php/5.6.7/php.ini]/ensure: defined content as '{md5}dad9c975d2a0d20883f0408c15c3fb76'
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[pip install elementtree]/returns: executed successfully
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[pip install fabric]/returns: executed successfully
Backing up all known pear.conf and .pearrc files
DESTROYING PHP 5.6.7
Switched to branch 'master'
Switched to a new branch 'build'
Installing PHP 5.6.7, this may take a while...
export PHP_AUTOCONF=/opt/boxen/homebrew/bin/autoconf && export PHP_AUTOHEADER=/opt/boxen/homebrew/bin/autoheader && cd /opt/boxen/phpenv/php-src/ && ./buildconf --force
Forcing buildconf
Removing configure caches
buildconf: checking installation...
buildconf: autoconf version 2.69 (ok)
rebuilding aclocal.m4
rebuilding configure
rebuilding main/php_config.h.in
Configuring PHP 5.6.7: cd /opt/boxen/phpenv/php-src/ && export ac_cv_exeext='' && export PATH=/opt/boxen/homebrew/opt/bisonphp26/bin:$PATH && ./configure --prefix=/opt/boxen/phpenv/versions/5.6.7 --localstatedir=/var --sysconfdir=/opt/boxen/config/php/5.6.7 --with-config-file-path=/opt/boxen/config/php/5.6.7 --with-config-file-scan-dir=/opt/boxen/config/php/5.6.7/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-wddx --enable-ftp --enable-sockets --enable-zip --enable-pcntl --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-mbstring --enable-mbregex --enable-bcmath --enable-calendar --with-ldap --with-ldap-sasl=/usr --with-xmlrpc --with-kerberos=/usr --with-xsl=/usr --with-gd --enable-gd-native-ttf --with-freetype-dir=/opt/boxen/homebrew/opt/freetypephp --with-jpeg-dir=/opt/boxen/homebrew/opt/jpeg --with-png-dir=/opt/boxen/homebrew/opt/libpng --with-gettext=/opt/boxen/homebrew/opt/gettext --with-gmp=/opt/boxen/homebrew/opt/gmp --with-zlib=/opt/boxen/homebrew/opt/zlibphp --with-snmp=/usr --with-libedit --with-mhash --with-curl --with-openssl=/usr --with-bz2=/usr --with-mysql-sock=/tmp/mysql.sock --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --enable-fpm 

@alexmace
Copy link
Author

Log of the second run:

Medic-2:our-boxen amace$ boxen
--> Preparing to auto-update...
--> Skipping auto-update, because your boxen checkout isn't on master

Working on something special, over here on a branch? That's cool! Once
you're done, you'll probably want to submit a pull request and get back
onto master so that you can get some sweet, sweet updates again, though.

For more info on how the simple git-based updates work, have a gander at
https://github.com/boxen/our-boxen/blob/master/docs/updates.md

Fact file /opt/boxen/repo/facts.d/example.yaml was parsed but returned an empty data set
Warning: Scope(Php::Version[5.6.7]): You are installing PHP 5.6.7 which is known to be insecure. The current secure 5.6.X version is 5.6.8
Notice: Compiled catalog for medic-2.local in environment production in 5.63 seconds
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[create_phpuc]/returns: executed successfully
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[brew install gettext]/returns: executed successfully
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[brew link --force gettext]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Mod_fcgid/Exec[xcode-select -switch /]/returns: executed successfully
Notice: Medic-2 Wha?
Notice: /Stage[main]/People::Alexmace/Notify[Medic-2 Wha?]/message: defined 'message' as 'Medic-2 Wha?'
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[apachectl restart]/returns: executed successfully
x package.xml
x xdebug-2.3.2/contrib/tracefile-analyser.php
x xdebug-2.3.2/contrib/xt.vim
x xdebug-2.3.2/debugclient/build/buildcheck.sh
x xdebug-2.3.2/debugclient/build/buildconf1.mk
x xdebug-2.3.2/debugclient/build/buildconf2.mk
x xdebug-2.3.2/debugclient/build/clean.mk
x xdebug-2.3.2/debugclient/build/config-stubs
x xdebug-2.3.2/debugclient/acinclude.m4
x xdebug-2.3.2/debugclient/buildconf
x xdebug-2.3.2/debugclient/config.guess
x xdebug-2.3.2/debugclient/config.h.in
x xdebug-2.3.2/debugclient/config.sub
x xdebug-2.3.2/debugclient/configure
x xdebug-2.3.2/debugclient/configure.in
x xdebug-2.3.2/debugclient/cvsclean
x xdebug-2.3.2/debugclient/debugclient.dsp
x xdebug-2.3.2/debugclient/depcomp
x xdebug-2.3.2/debugclient/INSTALL
x xdebug-2.3.2/debugclient/install-sh
x xdebug-2.3.2/debugclient/LICENSE
x xdebug-2.3.2/debugclient/ltmain.sh
x xdebug-2.3.2/debugclient/main.c
x xdebug-2.3.2/debugclient/Makefile.in
x xdebug-2.3.2/debugclient/missing
x xdebug-2.3.2/debugclient/mkinstalldirs
x xdebug-2.3.2/debugclient/usefulstuff.c
x xdebug-2.3.2/debugclient/usefulstuff.h
x xdebug-2.3.2/config.m4
x xdebug-2.3.2/config.w32
x xdebug-2.3.2/CREDITS
x xdebug-2.3.2/LICENSE
x xdebug-2.3.2/Makefile.frag
x xdebug-2.3.2/Makefile.in
x xdebug-2.3.2/NEWS
x xdebug-2.3.2/php_xdebug.h
x xdebug-2.3.2/README
x xdebug-2.3.2/usefulstuff.c
x xdebug-2.3.2/usefulstuff.h
x xdebug-2.3.2/xdebug.c
x xdebug-2.3.2/xdebug_branch_info.c
x xdebug-2.3.2/xdebug_branch_info.h
x xdebug-2.3.2/xdebug_code_coverage.c
x xdebug-2.3.2/xdebug_code_coverage.h
x xdebug-2.3.2/xdebug_com.c
x xdebug-2.3.2/xdebug_com.h
x xdebug-2.3.2/xdebug_compat.c
x xdebug-2.3.2/xdebug_compat.h
x xdebug-2.3.2/xdebug_handlers.c
x xdebug-2.3.2/xdebug_handlers.h
x xdebug-2.3.2/xdebug_handler_dbgp.c
x xdebug-2.3.2/xdebug_handler_dbgp.h
x xdebug-2.3.2/xdebug_hash.c
x xdebug-2.3.2/xdebug_hash.h
x xdebug-2.3.2/xdebug_llist.c
x xdebug-2.3.2/xdebug_llist.h
x xdebug-2.3.2/xdebug_mm.h
x xdebug-2.3.2/xdebug_private.c
x xdebug-2.3.2/xdebug_private.h
x xdebug-2.3.2/xdebug_profiler.c
x xdebug-2.3.2/xdebug_profiler.h
x xdebug-2.3.2/xdebug_set.c
x xdebug-2.3.2/xdebug_set.h
x xdebug-2.3.2/xdebug_stack.c
x xdebug-2.3.2/xdebug_stack.h
x xdebug-2.3.2/xdebug_str.c
x xdebug-2.3.2/xdebug_str.h
x xdebug-2.3.2/xdebug_superglobals.c
x xdebug-2.3.2/xdebug_superglobals.h
x xdebug-2.3.2/xdebug_tracing.c
x xdebug-2.3.2/xdebug_tracing.h
x xdebug-2.3.2/xdebug_trace_textual.c
x xdebug-2.3.2/xdebug_trace_textual.h
x xdebug-2.3.2/xdebug_trace_computerized.c
x xdebug-2.3.2/xdebug_trace_computerized.h
x xdebug-2.3.2/xdebug_trace_html.c
x xdebug-2.3.2/xdebug_trace_html.h
x xdebug-2.3.2/xdebug_var.c
x xdebug-2.3.2/xdebug_var.h
x xdebug-2.3.2/xdebug_xml.c
x xdebug-2.3.2/xdebug_xml.h
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
/cache/extensions/xdebug-2.3.2/xdebug-2.3.2/xdebug_code_coverage.c:184:44: warning: '&&' within '||'
      [-Wlogical-op-parentheses]
        if (cur_opcode->opcode >= ZEND_ASSIGN_ADD && cur_opcode->opcode <= ZEND_ASSIGN_BW_XOR
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/xdebug-2.3.2/xdebug-2.3.2/xdebug_code_coverage.c:184:44: note: place parentheses around the '&&'
      expression to silence this warning
        if (cur_opcode->opcode >= ZEND_ASSIGN_ADD && cur_opcode->opcode <= ZEND_ASSIGN_BW_XOR
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
/cache/extensions/xdebug-2.3.2/xdebug-2.3.2/xdebug_handler_dbgp.c:900:21: warning: incompatible pointer types
      initializing 'jmp_buf *' (aka 'int (*)[37]') with an expression of type 'sigjmp_buf *' (aka 'int (*)[38]')
      [-Wincompatible-pointer-types]
        jmp_buf           *original_bailout = EG(bailout);
                           ^                  ~~~~~~~~~~~
/cache/extensions/xdebug-2.3.2/xdebug-2.3.2/xdebug_handler_dbgp.c:928:14: warning: incompatible pointer types
      assigning to 'sigjmp_buf *' (aka 'int (*)[38]') from 'jmp_buf *' (aka 'int (*)[37]')
      [-Wincompatible-pointer-types]
        EG(bailout) = original_bailout;
                    ^ ~~~~~~~~~~~~~~~~
2 warnings generated.
/cache/extensions/xdebug-2.3.2/xdebug-2.3.2/xdebug_profiler.c:142:66: warning: cast to 'void *' from smaller integer
      type 'int' [-Wint-to-void-pointer-cast]
                xdebug_hash_add(XG(profile_filename_refs), name, strlen(name), (void*) XG(profile_last_filename_ref));
                                                                               ^
./xdebug_hash.h:75:91: note: expanded from macro 'xdebug_hash_add'
#define xdebug_hash_add(h, key, key_len, p) xdebug_hash_add_or_update(h, key, key_len, 0, p)
                                                                                          ^
/cache/extensions/xdebug-2.3.2/xdebug-2.3.2/xdebug_profiler.c:155:70: warning: cast to 'void *' from smaller integer
      type 'int' [-Wint-to-void-pointer-cast]
                xdebug_hash_add(XG(profile_functionname_refs), name, strlen(name), (void*) XG(profile_last_fun...
                                                                                   ^
./xdebug_hash.h:75:91: note: expanded from macro 'xdebug_hash_add'
#define xdebug_hash_add(h, key, key_len, p) xdebug_hash_add_or_update(h, key, key_len, 0, p)
                                                                                          ^
2 warnings generated.
Notice: /Stage[main]/People::Alexmace/Php::Extension::Xdebug[xdebug for {5.6.7}]/Php_extension[xdebug for {5.6.7}]/ensure: created
Switched to branch 'master'
Switched to a new branch 'build'
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
/opt/boxen/phpenv/php-src/ext/mcrypt/mcrypt_filter.c:210:37: warning: passing 'const char *' to parameter of type
      'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        mcrypt_module = mcrypt_module_open(cipher, algo_dir, mode, mode_dir);
                                           ^~~~~~
/opt/boxen/homebrew/opt/mcrypt/include/mutils/mcrypt.h:38:34: note: passing argument to parameter 'algorithm' here
        MCRYPT mcrypt_module_open(char *algorithm,
                                        ^
1 warning generated.
Notice: /Stage[main]/People::Alexmace/Php::Extension::Mcrypt[mcrypt for {5.6.7}]/Php_extension[mcrypt for {5.6.7}]/ensure: created
x package.xml
x memcache-2.2.7/config.m4
x memcache-2.2.7/config9.m4
x memcache-2.2.7/config.w32
x memcache-2.2.7/CREDITS
x memcache-2.2.7/example.php
x memcache-2.2.7/memcache.c
x memcache-2.2.7/memcache_queue.c
x memcache-2.2.7/memcache_session.c
x memcache-2.2.7/memcache_standard_hash.c
x memcache-2.2.7/memcache_consistent_hash.c
x memcache-2.2.7/memcache.dsp
x memcache-2.2.7/php_memcache.h
x memcache-2.2.7/memcache_queue.h
x memcache-2.2.7/README
x memcache-2.2.7/memcache.php
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1160:8: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        found = php_memnstr(haystack, needle, needle_len, haystack + haystack_len);
              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1574:13: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if ((space = php_memnstr(start, " ", 1, end)) == NULL) {
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1579:13: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if ((colon = php_memnstr(start, ":", 1, space - 1)) != NULL) {
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1617:13: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if ((space = php_memnstr(start, " ", 1, end)) == NULL) {
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1625:13: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        for (value = php_memnstr(space, "[", 1, end); value != NULL && value <= end; value = php_memnstr(valu...
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1625:85: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  ...php_memnstr(space, "[", 1, end); value != NULL && value <= end; value = php_memnstr(value + 1, ";", 1, end)) {
                                                                           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1630:34: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                if (value <= end && (value_end = php_memnstr(value, " ", 1, end)) != NULL && value_end <= end) {
                                               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcache-2.2.7/memcache-2.2.7/memcache.c:1654:14: warning: assigning to 'char *' from 'const char *'
      discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                if ((space = php_memnstr(start, " ", 1, end)) != NULL) {
                           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 warnings generated.
Notice: /Stage[main]/People::Alexmace/Php::Extension::Memcache[memcache for {5.6.7}]/Php_extension[memcache for {5.6.7}]/ensure: created
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[ensure pip install]/returns: executed successfully
x package.xml
x memcached-2.1.0/README.markdown
x memcached-2.1.0/CREDITS
x memcached-2.1.0/LICENSE
x memcached-2.1.0/ChangeLog
x memcached-2.1.0/memcached-api.php
x memcached-2.1.0/memcached.ini
x memcached-2.1.0/fastlz/LICENSE
x memcached-2.1.0/config.m4
x memcached-2.1.0/config.w32
x memcached-2.1.0/php_memcached.c
x memcached-2.1.0/php_memcached.h
x memcached-2.1.0/php_memcached_session.c
x memcached-2.1.0/php_memcached_session.h
x memcached-2.1.0/php_libmemcached_compat.h
x memcached-2.1.0/g_fmt.c
x memcached-2.1.0/g_fmt.h
x memcached-2.1.0/fastlz/fastlz.c
x memcached-2.1.0/fastlz/fastlz.h
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:599:15: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                payload     = memcached_result_value(&result);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:797:15: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                payload     = memcached_result_value(&result);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:800:15: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                res_key     = memcached_result_key_value(&result);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:1014:14: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        payload     = memcached_result_value(&result);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:1017:14: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        res_key     = memcached_result_key_value(&result);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:1068:15: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                payload     = memcached_result_value(&result);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:1071:15: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                res_key     = memcached_result_key_value(&result);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:1948:15: warning: incompatible pointer types
      assigning to 'memcached_server_function' (aka 'memcached_return_t (*)(const memcached_st *, const
      memcached_instance_st *, void *)') from 'memcached_return (const memcached_st *, memcached_server_instance_st,
      void *)' [-Wincompatible-pointer-types]
        callbacks[0] = php_memc_do_serverlist_callback;
                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:1977:9: warning: incompatible pointer types
      assigning to 'memcached_server_st *' (aka 'struct memcached_server_st *') from 'const memcached_instance_st *'
      (aka 'const struct memcached_instance_st *') [-Wincompatible-pointer-types]
        server = memcached_server_by_key(m_obj->memc, server_key, server_key_len, &error);
               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:2056:15: warning: incompatible pointer types
      assigning to 'memcached_server_function' (aka 'memcached_return_t (*)(const memcached_st *, const
      memcached_instance_st *, void *)') from 'memcached_return (const memcached_st *, memcached_server_instance_st,
      void *)' [-Wincompatible-pointer-types]
        callbacks[0] = php_memc_do_stats_callback;
                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:2089:15: warning: incompatible pointer types
      assigning to 'memcached_server_function' (aka 'memcached_return_t (*)(const memcached_st *, const
      memcached_instance_st *, void *)') from 'memcached_return (const memcached_st *, memcached_server_instance_st,
      void *)' [-Wincompatible-pointer-types]
        callbacks[0] = php_memc_do_version_callback;
                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:2319:13: warning: comparison of unsigned enum
      expression < 0 is always false [-Wtautological-compare]
                        if (flag < 0 ||
                            ~~~~ ^ ~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:2583:34: warning: passing 'const char *' to
      parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        add_assoc_string(array, "host", memcached_server_name(instance), 1);
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/boxen/phpenv/versions/5.6.7/include/php/Zend/zend_API.h:393:111: note: expanded from macro 'add_assoc_string'
#define add_assoc_string(__arg, __key, __str, __duplicate) add_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, _...
                                                                                                              ^
/opt/boxen/phpenv/versions/5.6.7/include/php/Zend/zend_API.h:384:82: note: passing argument to parameter 'str' here
ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate);
                                                                                 ^
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:3191:14: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        payload     = memcached_result_value(result);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/php_memcached.c:3194:14: warning: assigning to 'char *' from
      'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        res_key     = memcached_result_key_value(result);
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 warnings generated.
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:51:14: warning: using the result of an assignment as a
      condition without parentheses [-Wparentheses]
                while(*b++ = *s++);
                      ~~~~~^~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:51:14: note: place parentheses around the assignment to
      silence this warning
                while(*b++ = *s++);
                           ^
                      (          )
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:51:14: note: use '==' to turn this assignment into an
      equality comparison
                while(*b++ = *s++);
                           ^
                           ==
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:58:13: warning: using the result of an assignment as a
      condition without parentheses [-Wparentheses]
                        while(*b = *s++)
                              ~~~^~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:58:13: note: place parentheses around the assignment to
      silence this warning
                        while(*b = *s++)
                                 ^
                              (        )
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:58:13: note: use '==' to turn this assignment into an
      equality comparison
                        while(*b = *s++)
                                 ^
                                 ==
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:83:14: warning: using the result of an assignment as a
      condition without parentheses [-Wparentheses]
                while(*b++ = *s++);
                      ~~~~~^~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:83:14: note: place parentheses around the assignment to
      silence this warning
                while(*b++ = *s++);
                           ^
                      (          )
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:83:14: note: use '==' to turn this assignment into an
      equality comparison
                while(*b++ = *s++);
                           ^
                           ==
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:85:12: warning: using the result of an assignment as a
      condition without parentheses [-Wparentheses]
                while(*b = *s++) {
                      ~~~^~~~~~
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:85:12: note: place parentheses around the assignment to
      silence this warning
                while(*b = *s++) {
                         ^
                      (        )
/cache/extensions/memcached-2.1.0/memcached-2.1.0/g_fmt.c:85:12: note: use '==' to turn this assignment into an
      equality comparison
                while(*b = *s++) {
                         ^
                         ==
4 warnings generated.
Notice: /Stage[main]/People::Alexmace/Php::Extension::Memcached[memcached for {5.6.7}]/Php_extension[memcached for {5.6.7}]/ensure: created
Notice: /Stage[main]/People::Alexmace/Php::Extension::Memcached[memcached for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/memcached.ini]/ensure: defined content as '{md5}f6d320fb5472f74077bc083f474a3bed'
Notice: /Stage[main]/People::Alexmace/Php::Extension::Mcrypt[mcrypt for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/mcrypt.ini]/ensure: defined content as '{md5}aa4ff5e50229565253e9e278fd684c24'
Notice: /Stage[main]/People::Alexmace/Php::Extension::Memcache[memcache for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/memcache.ini]/ensure: defined content as '{md5}959eb6488b5a4daa63b66278b6629bba'
Notice: /Stage[main]/People::Alexmace/Php::Extension::Xdebug[xdebug for {5.6.7}]/File[/opt/boxen/config/php/5.6.7/conf.d/xdebug.ini]/ensure: defined content as '{md5}70177632f96c0f2dfbaddaa7535cd9fa'
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[pip install elementtree]/returns: executed successfully
Notice: /Stage[main]/Namesco::Apps::Mac/Exec[pip install fabric]/returns: executed successfully
Medic-2:our-boxen amace$ 

@jenslind
Copy link

jenslind commented Jun 2, 2015

Having the exact same issue.

@alexmace
Copy link
Author

alexmace commented Jun 2, 2015

I do have a workaround, I'll post it later

@alexmace
Copy link
Author

alexmace commented Jun 2, 2015

Ok the workaround I'm using for this is to add a require => Php::Version[$php_version] to the extension inclusion, like so:

php::extension::mcrypt { "mcrypt for {$php_version}":
    php => $php_version,
    require => Php::Version[$php_version]
}

@jenslind
Copy link

jenslind commented Jun 2, 2015

Thanks for sharing!

@sambauers
Copy link

@alexmace, can you test this pull request - #69

@atreat
Copy link

atreat commented Jun 11, 2015

When I use the 2.0.1 tag I get the following error:

Error: Duplicate declaration: Php::Version[5.3.27] is already declared in file /.../manifests/php.pp:9; cannot redeclare at /opt/boxen/repo/shared/php/manifests/global.pp:17

This error does not occur when using the 2.0.0 tag.

@sambauers
Copy link

Can you post the relevant manifest files somewhere?

@jenslind
Copy link

Got the exact same problem as @atreat
Here is my manifest http://pastebin.com/zrSYzstY

@jenslind
Copy link

Got it working now by setting ensure => present on php::version

php::version { $php_version:
  ensure => present
}

Still needs to set require on the extensions though.

@sambauers
Copy link

#82 may impact this. Not sure though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants