Skip to content

Instantly share code, notes, and snippets.

@jvanz
Last active August 29, 2015 14:16
Show Gist options
  • Save jvanz/6fc00b6525b11699c802 to your computer and use it in GitHub Desktop.
Save jvanz/6fc00b6525b11699c802 to your computer and use it in GitHub Desktop.
chef-provisioning
Starting Chef Client, version 12.0.3
resolving cookbooks for run list: ["chef-client", "chef-client::delete_validation", "provisioning"]
Synchronizing Cookbooks:
- cron
- logrotate
- windows
- chef_handler
- provisioning
- chef-client
Compiling Cookbooks...
Recipe: provisioning::default
* chef_gem[chef-provisioning] action install
================================================================================
Error executing action `install` on resource 'chef_gem[chef-provisioning]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" ----
STDOUT: Building native extensions. This could take a while...
STDERR: ERROR: Error installing chef-provisioning:
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby -r ./siteconf20150225-30027-hbn8k9.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv using --with-opt-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2... OK
Running patch with /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/chef/embedded/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:279:in `block in execute': Failed to complete compile task (RuntimeError)
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `chdir'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `execute'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:70:in `compile'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:110:in `cook'
from extconf.rb:278:in `block in process_recipe'
from extconf.rb:177:in `tap'
from extconf.rb:177:in `process_recipe'
from extconf.rb:475:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.6.2/gem_make.out
---- End output of /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" ----
Ran /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" returned 1
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/provisioning/recipes/default.rb:20:in `from_file'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/provisioning/recipes/default.rb
20: chef_gem 'chef-provisioning' do
21: action :install
22: end
23:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/provisioning/recipes/default.rb:20:in `from_file'
chef_gem("chef-provisioning") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
package_name "chef-provisioning"
version "0.18"
timeout 900
gem_binary "/opt/chef/embedded/bin/gem"
declared_type :chef_gem
cookbook_name "provisioning"
recipe_name "default"
end
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/provisioning/recipes/default.rb
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
chef_gem[chef-provisioning] (provisioning::default line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" ----
STDOUT: Building native extensions. This could take a while...
STDERR: ERROR: Error installing chef-provisioning:
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby -r ./siteconf20150225-30027-hbn8k9.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv using --with-opt-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2... OK
Running patch with /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/chef/embedded/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:279:in `block in execute': Failed to complete compile task (RuntimeError)
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `chdir'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `execute'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:70:in `compile'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:110:in `cook'
from extconf.rb:278:in `block in process_recipe'
from extconf.rb:177:in `tap'
from extconf.rb:177:in `process_recipe'
from extconf.rb:475:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.6.2/gem_make.out
---- End output of /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" ----
Ran /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" returned 1
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/provisioning/recipes/default.rb:20:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/provisioning/recipes/default.rb:
13: # Unless required by applicable law or agreed to in writing, software
14: # distributed under the License is distributed on an "AS IS" BASIS,
15: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: # See the License for the specific language governing permissions and
17: # limitations under the License.
18: #
19:
20>> chef_gem 'chef-provisioning' do
21: action :install
22: end
23:
24: require 'chef/provisioning'
25:
Running handlers:
[2015-02-25T19:47:06+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-02-25T19:47:06+00:00] ERROR: Exception handlers complete
[2015-02-25T19:47:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 24.621952497 seconds
[2015-02-25T19:47:07+00:00] ERROR: chef_gem[chef-provisioning] (provisioning::default line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" ----
STDOUT: Building native extensions. This could take a while...
STDERR: ERROR: Error installing chef-provisioning:
ERROR: Failed to build gem native extension.
/opt/chef/embedded/bin/ruby -r ./siteconf20150225-30027-hbn8k9.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv using --with-opt-* flags... yes
************************************************************************
IMPORTANT NOTICE:
Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:
gem install nokogiri -- --use-system-libraries
[--with-xml2-config=/path/to/xml2-config]
[--with-xslt-config=/path/to/xslt-config]
If you are using Bundler, tell it to use the option:
bundle config build.nokogiri --use-system-libraries
bundle install
Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2... OK
Running patch with /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/chef/embedded/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:279:in `block in execute': Failed to complete compile task (RuntimeError)
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `chdir'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `execute'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:70:in `compile'
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:110:in `cook'
from extconf.rb:278:in `block in process_recipe'
from extconf.rb:177:in `tap'
from extconf.rb:177:in `process_recipe'
from extconf.rb:475:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /opt/chef/embedded/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.6.2/gem_make.out
---- End output of /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" ----
Ran /opt/chef/embedded/bin/gem install chef-provisioning -q --no-rdoc --no-ri -v "0.18" returned 1
[2015-02-25T19:47:07+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
make all-recursive
make[1]: Entering directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2'
Making all in include
make[2]: Entering directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2/include'
Making all in libxml
make[3]: Entering directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2/include/libxml'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2/include/libxml'
make[3]: Entering directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2/include'
make[2]: Leaving directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2/include'
Making all in .
make[2]: Entering directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2'
CC SAX.lo
CC entities.lo
CC encoding.lo
CC error.lo
CC parserInternals.lo
CC parser.lo
CC tree.lo
CC hash.lo
CC list.lo
CC xmlIO.lo
CC xmlmemory.lo
CC uri.lo
CC valid.lo
CC xlink.lo
CC HTMLparser.lo
CC HTMLtree.lo
CC debugXML.lo
CC xpath.lo
xpath.c: In function ‘xmlXPathRegisterFuncNS’:
xpath.c:4875:5: warning: ISO C forbids passing argument 4 of ‘xmlHashAddEntry2’ between function pointer and ‘void *’ [-Wpedantic]
return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
^
In file included from ./include/libxml/parser.h:18:0,
from ./include/libxml/globals.h:18,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from xpath.c:38:
./include/libxml/hash.h:128:4: note: expected ‘void *’ but argument is of type ‘xmlXPathFunction’
xmlHashAddEntry2(xmlHashTablePtr table,
^
xpath.c: In function ‘xmlXPathFunctionLookupNS’:
xpath.c:4956:24: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
^
xpath.c: In function ‘xmlXPathCompOpEval’:
xpath.c:13552:41: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
XML_CAST_FPTR(func) = op->cache;
^
xpath.c:13579:31: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic]
op->cache = XML_CAST_FPTR(func);
^
In file included from xpath.c:476:0:
xpath.c: At top level:
trionan.c:218:1: warning: ‘trio_is_negative’ defined but not used [-Wunused-function]
trio_is_negative
^
CC xpointer.lo
CC xinclude.lo
CC nanohttp.lo
CC nanoftp.lo
CC catalog.lo
CC globals.lo
CC threads.lo
threads.c:53:12: warning: redundant redeclaration of ‘pthread_once’ [-Wredundant-decls]
extern int pthread_once (pthread_once_t *__once_control,
^
In file included from threads.c:28:0:
/usr/include/pthread.h:485:12: note: previous declaration of ‘pthread_once’ was here
extern int pthread_once (pthread_once_t *__once_control,
^
threads.c:56:14: warning: redundant redeclaration of ‘pthread_getspecific’ [-Wredundant-decls]
extern void *pthread_getspecific (pthread_key_t __key)
^
In file included from threads.c:28:0:
/usr/include/pthread.h:1110:14: note: previous declaration of ‘pthread_getspecific’ was here
extern void *pthread_getspecific (pthread_key_t __key) __THROW;
^
threads.c:58:12: warning: redundant redeclaration of ‘pthread_setspecific’ [-Wredundant-decls]
extern int pthread_setspecific (pthread_key_t __key,
^
In file included from threads.c:28:0:
/usr/include/pthread.h:1113:12: note: previous declaration of ‘pthread_setspecific’ was here
extern int pthread_setspecific (pthread_key_t __key,
^
threads.c:61:12: warning: redundant redeclaration of ‘pthread_key_create’ [-Wredundant-decls]
extern int pthread_key_create (pthread_key_t *__key,
^
In file included from threads.c:28:0:
/usr/include/pthread.h:1102:12: note: previous declaration of ‘pthread_key_create’ was here
extern int pthread_key_create (pthread_key_t *__key,
^
threads.c:64:12: warning: redundant redeclaration of ‘pthread_key_delete’ [-Wredundant-decls]
extern int pthread_key_delete (pthread_key_t __key)
^
In file included from threads.c:28:0:
/usr/include/pthread.h:1107:12: note: previous declaration of ‘pthread_key_delete’ was here
extern int pthread_key_delete (pthread_key_t __key) __THROW;
^
threads.c:67:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:66:12: warning: redundant redeclaration of ‘pthread_mutex_init’ [-Wredundant-decls]
extern int pthread_mutex_init ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:740:12: note: previous declaration of ‘pthread_mutex_init’ was here
extern int pthread_mutex_init (pthread_mutex_t *__mutex,
^
threads.c:69:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:68:12: warning: redundant redeclaration of ‘pthread_mutex_destroy’ [-Wredundant-decls]
extern int pthread_mutex_destroy ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:745:12: note: previous declaration of ‘pthread_mutex_destroy’ was here
extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
^
threads.c:71:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:70:12: warning: redundant redeclaration of ‘pthread_mutex_lock’ [-Wredundant-decls]
extern int pthread_mutex_lock ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:753:12: note: previous declaration of ‘pthread_mutex_lock’ was here
extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
^
threads.c:73:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:72:12: warning: redundant redeclaration of ‘pthread_mutex_unlock’ [-Wredundant-decls]
extern int pthread_mutex_unlock ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:764:12: note: previous declaration of ‘pthread_mutex_unlock’ was here
extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
^
threads.c:75:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:74:12: warning: redundant redeclaration of ‘pthread_cond_init’ [-Wredundant-decls]
extern int pthread_cond_init ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:959:12: note: previous declaration of ‘pthread_cond_init’ was here
extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
^
threads.c:77:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:76:12: warning: redundant redeclaration of ‘pthread_cond_destroy’ [-Wredundant-decls]
extern int pthread_cond_destroy ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:964:12: note: previous declaration of ‘pthread_cond_destroy’ was here
extern int pthread_cond_destroy (pthread_cond_t *__cond)
^
threads.c:79:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:78:12: warning: redundant redeclaration of ‘pthread_cond_wait’ [-Wredundant-decls]
extern int pthread_cond_wait ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:980:12: note: previous declaration of ‘pthread_cond_wait’ was here
extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
^
threads.c:81:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:80:12: warning: redundant redeclaration of ‘pthread_equal’ [-Wredundant-decls]
extern int pthread_equal ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:277:12: note: previous declaration of ‘pthread_equal’ was here
extern int pthread_equal (pthread_t __thread1, pthread_t __thread2)
^
threads.c:83:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:82:18: warning: redundant redeclaration of ‘pthread_self’ [-Wredundant-decls]
extern pthread_t pthread_self ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:274:18: note: previous declaration of ‘pthread_self’ was here
extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));
^
threads.c:85:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:84:12: warning: redundant redeclaration of ‘pthread_key_create’ [-Wredundant-decls]
extern int pthread_key_create ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:1102:12: note: previous declaration of ‘pthread_key_create’ was here
extern int pthread_key_create (pthread_key_t *__key,
^
threads.c:87:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:86:12: warning: redundant redeclaration of ‘pthread_key_delete’ [-Wredundant-decls]
extern int pthread_key_delete ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:1107:12: note: previous declaration of ‘pthread_key_delete’ was here
extern int pthread_key_delete (pthread_key_t __key) __THROW;
^
threads.c:89:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
__attribute((weak));
^
threads.c:88:12: warning: redundant redeclaration of ‘pthread_cond_signal’ [-Wredundant-decls]
extern int pthread_cond_signal ()
^
In file included from threads.c:28:0:
/usr/include/pthread.h:968:12: note: previous declaration of ‘pthread_cond_signal’ was here
extern int pthread_cond_signal (pthread_cond_t *__cond)
^
CC c14n.lo
CC xmlstring.lo
CC buf.lo
CC xmlregexp.lo
CC xmlschemas.lo
CC xmlschemastypes.lo
CC xmlunicode.lo
CC xmlreader.lo
CC relaxng.lo
CC dict.lo
CC SAX2.lo
CC xmlwriter.lo
CC legacy.lo
CC chvalid.lo
CC pattern.lo
CC xmlsave.lo
CC xmlmodule.lo
CC schematron.lo
CC xzlib.lo
CCLD libxml2.la
CC testdso.lo
CCLD testdso.la
CC xmllint.o
CCLD xmllint
./.libs/libxml2.a(xmlIO.o): In function `xmlGzfileOpen_real':
xmlIO.c:(.text+0xfa9): undefined reference to `gzdopen'
xmlIO.c:(.text+0x1061): undefined reference to `gzopen64'
./.libs/libxml2.a(xmlIO.o): In function `xmlGzfileOpenW':
xmlIO.c:(.text+0x1155): undefined reference to `gzdopen'
xmlIO.c:(.text+0x11f6): undefined reference to `gzopen64'
./.libs/libxml2.a(xmlIO.o): In function `xmlGzfileRead':
xmlIO.c:(.text+0x1229): undefined reference to `gzread'
./.libs/libxml2.a(xmlIO.o): In function `xmlGzfileWrite':
xmlIO.c:(.text+0x1271): undefined reference to `gzwrite'
./.libs/libxml2.a(xmlIO.o): In function `xmlGzfileClose':
xmlIO.c:(.text+0x12a8): undefined reference to `gzclose'
./.libs/libxml2.a(xmlIO.o): In function `xmlFreeZMemBuff':
xmlIO.c:(.text+0x1365): undefined reference to `deflateEnd'
./.libs/libxml2.a(xmlIO.o): In function `xmlCreateZMemBuff':
xmlIO.c:(.text+0x148e): undefined reference to `deflateInit2_'
xmlIO.c:(.text+0x150a): undefined reference to `crc32'
./.libs/libxml2.a(xmlIO.o): In function `xmlZMemBuffAppend':
xmlIO.c:(.text+0x17d8): undefined reference to `deflate'
xmlIO.c:(.text+0x186e): undefined reference to `crc32'
./.libs/libxml2.a(xmlIO.o): In function `xmlZMemBuffGetContent':
xmlIO.c:(.text+0x18d7): undefined reference to `deflate'
./.libs/libxml2.a(xmlIO.o): In function `__xmlParserInputBufferCreateFilename':
xmlIO.c:(.text+0x2aab): undefined reference to `gzdirect'
./.libs/libxml2.a(nanohttp.o): In function `xmlNanoHTTPFreeCtxt':
nanohttp.c:(.text+0x785): undefined reference to `inflateEnd'
./.libs/libxml2.a(nanohttp.o): In function `xmlNanoHTTPScanAnswer':
nanohttp.c:(.text+0x16b2): undefined reference to `inflateInit2_'
./.libs/libxml2.a(nanohttp.o): In function `xmlNanoHTTPRead':
nanohttp.c:(.text+0x2037): undefined reference to `inflate'
collect2: error: ld returned 1 exit status
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.9.2/libxml2-2.9.2'
make: *** [all] Error 2
chef_gem 'chef-provisioning' do
action :install
end
require 'chef/provisioning'
@nicholasmckinney
Copy link

Did you ever figure out how to fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment