Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nokogiri error: Libiconv missing on mavericks #1111

Closed
Jaffery5 opened this issue May 22, 2014 · 60 comments
Closed

Nokogiri error: Libiconv missing on mavericks #1111

Jaffery5 opened this issue May 22, 2014 · 60 comments

Comments

@Jaffery5
Copy link

I am trying to install nokogiri on maverick and i am unable to do so, even when libiconv is installed through brew:

  • Here is the log
Installing nokogiri (1.6.2.1) Building nokogiri using packaged libraries.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb 
Building nokogiri using packaged libraries.
checking for iconv.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
checking for libiconv_open() in iconv.h... no
checking for libiconv_open() in -liconv... no
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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
    --without-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=/usr/local/rvm/rubies/ruby-2.0.0-p0/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


Gem files will remain installed in /Users/Jaffery/Desktop/helpspree/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Users/Jaffery/Desktop/helpspree/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out

An error occurred while installing nokogiri (1.6.2.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.2.1'` succeeds before bundling.
@flavorjones
Copy link
Member

@knu are you able to investigate this? Or should we hand off to a Mac user? ;)

@zenspider
Copy link
Contributor

Looking...

@zenspider
Copy link
Contributor

It installs fine for me using stock ruby on OSX 10.9.3:

10002 % ruby -v ; gem i -i xxx nokogiri -v '1.6.2.1'
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
Fetching: mini_portile-0.6.0.gem (100%)
Successfully installed mini_portile-0.6.0
Fetching: nokogiri-1.6.2.1.gem (100%)
Building native extensions.  This could take a while...
Building nokogiri using packaged libraries.
Building libxml2-2.8.0 for nokogiri with the following patches applied:
    - 0001-Fix-parser-local-buffers-size-problems.patch
    - 0002-Fix-entities-local-buffers-size-problems.patch
    - 0003-Fix-an-error-in-previous-commit.patch
    - 0004-Fix-potential-out-of-bound-access.patch
    - 0005-Detect-excessive-entities-expansion-upon-replacement.patch
    - 0006-Do-not-fetch-external-parsed-entities.patch
    - 0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch
    - 0008-Improve-handling-of-xmlStopParser.patch
    - 0009-Fix-a-couple-of-return-without-value.patch
    - 0010-Keep-non-significant-blanks-node-in-HTML-parser.patch
    - 0011-Do-not-fetch-external-parameter-entities.patch
************************************************************************
IMPORTANT!  Nokogiri builds and uses a packaged version of libxml2.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

However, note that nokogiri does not necessarily support all versions
of libxml2.

For example, libxml2-2.9.0 and higher are currently known to be broken
and thus unsupported by nokogiri, due to compatibility problems and
XPath optimization bugs.
************************************************************************
Building libxslt-1.1.28 for nokogiri with the following patches applied:
    - 0001-Adding-doc-update-related-to-1.1.28.patch
    - 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
    - 0003-Initialize-pseudo-random-number-generator-with-curre.patch
    - 0004-EXSLT-function-str-replace-is-broken-as-is.patch
    - 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
    - 0007-Separate-function-for-predicate-matching-in-patterns.patch
    - 0008-Fix-direct-pattern-matching.patch
    - 0009-Fix-certain-patterns-with-predicates.patch
    - 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
    - 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
    - 0014-Fix-for-bug-436589.patch
    - 0015-Fix-mkdir-for-mingw.patch
************************************************************************
IMPORTANT!  Nokogiri builds and uses a packaged version of libxslt.

If this is a concern for you and you want to use the system library
instead, abort this installation process and reinstall nokogiri as
follows:

    gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install
************************************************************************
Successfully installed nokogiri-1.6.2.1
Parsing documentation for mini_portile-0.6.0
Installing ri documentation for mini_portile-0.6.0
Parsing documentation for nokogiri-1.6.2.1
Installing ri documentation for nokogiri-1.6.2.1
Done installing documentation for mini_portile, nokogiri after 5 seconds
2 gems installed
10003 % 

What I need from you:

  1. What version of ruby (ruby -v), and where you got it (rvm, rbenv, stock, etc).
  2. What version of rubygems (gem -v) you're using,
  3. What version of the developer tools (clang -v).

@knu
Copy link
Member

knu commented May 23, 2014

Also, what's logged in mkmf.log is essential for further investigation. Please locate it and paste it (in Gist if it's huge).

@dmitrytrager
Copy link

Mac OS X 10.9.3 build 13D65
RVM ruby 2.0.0-p481

libiconv 1.14
libxml2 2.8.0
libxslt 1.1.28
installed via homebrew 0.9

Rubygems 2.2.2
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix


The same problem when install nokogiri v '1.6.2.1'.
By the way, with ruby 2.1.1 and nokogiri v '1.6.1' everuthing is fine.

@masterkain
Copy link

I can't install either (Yosemite - Xcode 6 Beta as command line tools) without some parameter (bundle install will fail).
Ruby 2.1.2

Also tried with brew link libxml2 libxslt libiconv --force same result.

This worked: gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/

$ brew reinstall libiconv libxml2 libxslt
==> Reinstalling libiconv
==> Downloading http://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz
######################################################################## 100.0%
==> Downloading https://trac.macports.org/export/89276/trunk/dports/textproc/libiconv/files/patch-Makefile.devel
######################################################################## 100.0%
==> Downloading https://trac.macports.org/export/89276/trunk/dports/textproc/libiconv/files/patch-utf8mac.diff
######################################################################## 100.0%
==> Patching
patching file Makefile.devel
Hunk #1 succeeded at 106 (offset 1 line).
patching file lib/converters.h
patching file lib/encodings.def
patching file lib/utf8mac.h
patching file lib/flags.h
==> ./configure --prefix=/usr/local/Cellar/libiconv/1.14 --enable-extra-encodings
==> make -f Makefile.devel CFLAGS= CC=clang
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libiconv/lib
    CPPFLAGS: -I/usr/local/opt/libiconv/include

==> Summary
  /usr/local/Cellar/libiconv/1.14: 26 files, 1.4M, built in 76 seconds
==> Reinstalling libxml2
==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.9.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/libxml2-2.9.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libxml2/2.9.1 --without-python
==> make
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libxml2/lib
    CPPFLAGS: -I/usr/local/opt/libxml2/include

==> Summary
  /usr/local/Cellar/libxml2/2.9.1: 274 files, 11M, built in 40 seconds
==> Reinstalling libxslt
==> Downloading ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz
Already downloaded: /Library/Caches/Homebrew/libxslt-1.1.28.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libxslt/1.1.28 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.9.1
==> make
==> make install
==> Caveats
To allow the nokogiri gem to link against this libxslt run:
  gem install nokogiri -- --with-xslt-dir=/usr/local/opt/libxslt

This formula is keg-only, so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libxslt/lib
    CPPFLAGS: -I/usr/local/opt/libxslt/include

==> Summary
  /usr/local/Cellar/libxslt/1.1.28: 134 files, 3.1M, built in 25 seconds
$ gem install nokogiri
Building native extensions.  This could take a while...
Building nokogiri using packaged libraries.
ERROR:  Error installing nokogiri:
  ERROR: Failed to build gem native extension.

    /Users/kain/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
Building nokogiri using packaged libraries.
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=/Users/kain/.rvm/rubies/ruby-2.1.2/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

extconf failed, exit code 1

Gem files will remain installed in /Users/kain/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Users/kain/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-14/2.1.0/nokogiri-1.6.2.1/gem_make.out

@hiremaga
Copy link

I was able to work around this by following the suggestion here http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on-mavericks-and-xcode-5-1-unknown-argument-mul

I've noticed this error on multiple Macs that were upgraded to 10.9.3 and haven't seen it on Macs that begin their lives on 10.9.3 (with only the XCode CLI tools installed). I'm running XCode 5.1.1 (5B1008) on the Mac that experienced the issue.

The specific command that ultimately worked to install Nokogiri under system ruby was:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri -- --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib

@allaire
Copy link

allaire commented Jun 22, 2014

@hiremaga Is spot on I think on the new OS X that begin their lives on Mavericks.

I got a new Macbook Air, and I installed Nokogiri without any issues. But when I restored my old Macbook Pro, I wasn't able to install Nokogiri without specifying some hackish paths to libiconv.

What can we do to help pin down this?

@zenspider
Copy link
Contributor

@allaire don't think so. My macbook air started as 10.8 and has since been upgraded to 10.9 and I don't have problems installing.

I did find a problem installing on a virginal OSX 10.9 that I'm tracking down, but it is unrelated to this and looks like it might be a problem with rubygems or some-such.

I need a repro to get further with this. Preferably a repro without rvm. If it requires rvm to repro, then it is a problem with rvm.

@masterkain -- you need to follow the instructions that brew is giving you. It is very specifically spelling out:

To allow the nokogiri gem to link against this libxslt run:
  gem install nokogiri -- --with-xslt-dir=/usr/local/opt/libxslt

This formula is keg-only, so it was not symlinked into /usr/local.

@allaire
Copy link

allaire commented Jun 24, 2014

@zenspider If that helps, the laptop that install failed was running with rbenv, not rvm.

Thanks for taking the time to figure this!

@zenspider
Copy link
Contributor

OK. I'll install ruby-build and take a whack at that tomorrow.

@hiremaga
Copy link

Fwiw, the machines I've seen this on started off as 10.9 (2.0.0p247 system
ruby) and were upgraded to 10.9.3 (2.0.0p451 system ruby).

I'll write back of I get the opportunity to replicate this reliably in a VM.

On Monday, June 23, 2014, Ryan Davis notifications@github.com wrote:

@allaire https://github.com/allaire don't think so. My macbook air
started as 10.8 and has since been upgraded to 10.9 and I don't have
problems installing.

I did find a problem installing on a virginal OSX 10.9 that I'm tracking
down, but it is unrelated to this and looks like it might be a problem with
rubygems or some-such.

I need a repro to get further with this. Preferably a repro without
rvm. If it requires rvm to repro, then it is a problem with rvm.

@masterkain https://github.com/masterkain -- you need to follow the
instructions that brew is giving you. It is very specifically spelling out:

To allow the nokogiri gem to link against this libxslt run:
gem install nokogiri -- --with-xslt-dir=/usr/local/opt/libxslt

This formula is keg-only, so it was not symlinked into /usr/local.


Reply to this email directly or view it on GitHub
#1111 (comment)
.

@danfinnie
Copy link

@masterkain When you used the libiconv formula, was that something that you wrote yourself? It seems like the libiconv formula that used to be distributed with Homebrew was removed in commit ad7020

@danfinnie
Copy link

@masterkain Or maybe you were using the homebrew/dupes?

@muescha
Copy link

muescha commented Jun 28, 2014

the same issue, can not install it.

the troubleshooting page http://nokogiri.org/tutorials/installing_nokogiri.html shows already to use hombebrew - it should be updated.

Installing nokogiri (1.6.2.1) Building nokogiri using packaged libraries.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/muescha/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb 
Building nokogiri using packaged libraries.
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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
    --without-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=/Users/muescha/.rbenv/versions/1.9.3-p327/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


Gem files will remain installed in /Users/muescha/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Users/muescha/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out

An error occurred while installing nokogiri (1.6.2.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.2.1'` succeeds before bundling.


muescha$ bundle --version
Bundler version 1.3.5
muescha$ iconv --version
iconv (GNU libiconv 1.11)
Copyright (C) 2000-2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Bruno Haible.
muescha$ which iconv
/usr/bin/iconv

@muescha
Copy link

muescha commented Jun 28, 2014

FYI:

i got it installed with this:

http://stackoverflow.com/questions/5528839/why-does-installing-nokogiri-on-mac-os-fail-with-libiconv-is-missing#comment30773476_6163052

If you're running Mavericks, you may need to install 
Xcode's command line tools: xcode-select --install. 
This fixed the problem for me.

it looks like that the error message is wrong for the libiconv - it better should check before if the xcode command line tools are installed

@firedev
Copy link

firedev commented Jul 3, 2014

Nothing I did helped. I have installed all the libraries and supplied every command line argument I have found on StackOverflow and Github:

$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install nokogiri -- --with-iconv-dir=/usr/local/opt/libiconv --with-xslt-dir=/usr/local/opt/libxslt
Building native extensions with: '--with-iconv-dir=/usr/local/opt/libiconv --with-xslt-dir=/usr/local/opt/libxslt'
This could take a while...
Building nokogiri using packaged libraries.
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    /Users/pain/.rbenv/versions/2.1.1/bin/ruby extconf.rb --with-iconv-dir=/usr/local/opt/libiconv --with-xslt-dir=/usr/local/opt/libxslt
Building nokogiri using packaged libraries.
checking for iconv.h... *** 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
    --without-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=/Users/pain/.rbenv/versions/2.1.1/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
/Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:587:in `try_cpp'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:1067:in `block in have_header'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:321:in `open'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:321:in `open'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:347:in `postpone'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for'
    from /Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:1066:in `have_header'
    from extconf.rb:103:in `have_iconv?'
    from extconf.rb:148:in `block (2 levels) in iconv_prefix'
    from extconf.rb:90:in `preserving_globals'
    from extconf.rb:143:in `block in iconv_prefix'
    from extconf.rb:116:in `block in each_iconv_idir'
    from extconf.rb:113:in `each'
    from extconf.rb:113:in `each_iconv_idir'
    from extconf.rb:137:in `iconv_prefix'
    from extconf.rb:424:in `block in <main>'
    from extconf.rb:161:in `block in process_recipe'
    from extconf.rb:154:in `tap'
    from extconf.rb:154:in `process_recipe'
    from extconf.rb:419:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/pain/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Users/pain/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.2.1/gem_make.out

@zenspider
Copy link
Contributor

@firedev did you see:

/Users/pain/.rbenv/versions/2.1.1/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.

Have you ensured that you have the cmdlline tools installed? As @muescha points out, you might have to run:

xcode-select --install

@firedev
Copy link

firedev commented Jul 3, 2014

Sure thing:

$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Everything works except gem install nokogiri and gem install rmagick.

@flavorjones
Copy link
Member

I don't see an mkmf.log in this issue thread. Can anyone provide that?
On Jul 3, 2014 5:38 AM, "Nick Ostrovsky" notifications@github.com wrote:

Sure thing:

$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Everything works except gem install nokogiri and gem install rmagick.


Reply to this email directly or view it on GitHub
#1111 (comment)
.

@firedev
Copy link

firedev commented Jul 3, 2014

"gcc-4.2 -o conftest -I/Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/ruby/backward -I/Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0 -I. -I/usr/include -I/Users/pain/.rbenv/versions/2.1.1/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -Wno-error=shorten-64-to-32  -pipe  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c  -L. -L/Users/pain/.rbenv/versions/2.1.1/lib -L/usr/lib -L. -L/Users/pain/.rbenv/versions/2.1.1/lib  -fstack-protector     -lruby-static -framework CoreFoundation  -lpthread -ldl -lobjc  "
couldn't understand kern.osversion `14.0.0'
In file included from /usr/include/stdio.h:65,
                 from /Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/ruby/defines.h:26,
                 from /Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/ruby/ruby.h:29,
                 from /Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/ruby.h:33,
                 from conftest.c:1:
/usr/include/Availability.h:174:44: error: missing binary operator before token "("
/usr/include/Availability.h:184:44: error: missing binary operator before token "("
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

@zenspider
Copy link
Contributor

On Jul 3, 2014, at 4:52, Nick Ostrovsky notifications@github.com wrote:

"gcc-4.2 -o conftest -I/Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/x86_64-darwin13.0 -

gcc-4.2 is a homebrew recipe. It hasn't been shipped by apple in ages. Can you verify that it is in /usr/local/bin (or wherever your homebrew is) and then unlink it and try again?

@firedev
Copy link

firedev commented Jul 4, 2014

I have uninstalled gcc-4.2 but nokogiri tries to use it still:

$ brew uninstall apple-gcc42
Uninstalling /usr/local/Cellar/apple-gcc42/4.2.1-5666.3...

$ which gcc-4.2
gcc-4.2 not found

$ gem install nokogiri                                                                                                                                  1 ↵
Building native extensions.  This could take a while...
Building nokogiri using packaged libraries.
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.
...

$ cat ~/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.2.1/mkmf.log                                    1 ↵
"gcc-4.2 -o conftest -I/Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/x86_64-darwin13.0 -
...

@zenspider
Copy link
Contributor

Because the ruby you're installing with was compiled with it. Try with your stock ruby or rebuild your rbenv version.

On Jul 3, 2014, at 21:16, Nick Ostrovsky notifications@github.com wrote:

I have uninstalled gcc-4.2 but nokogiri tries to use it still:

$ brew uninstall apple-gcc42
Uninstalling /usr/local/Cellar/apple-gcc42/4.2.1-5666.3...

$ which gcc-4.2
gcc-4.2 not found

$ gem install nokogiri 1 ↵
Building native extensions. This could take a while...
Building nokogiri using packaged libraries.
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
...

$ cat ~/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.2.1/mkmf.log 1 ↵
"gcc-4.2 -o conftest -I/Users/pain/.rbenv/versions/2.1.1/include/ruby-2.1.0/x86_64-darwin13.0 -
...

Reply to this email directly or view it on GitHub.

@firedev
Copy link

firedev commented Jul 4, 2014

@zenspider Thank you! I was pulling my hair out already.

@zenspider
Copy link
Contributor

On Jul 4, 2014, at 1:11, Nick Ostrovsky notifications@github.com wrote:

@zenspider Thank you! I was pulling my hair out already.

Does that mean it worked for you?

If so, can you write up a summary of what you needed to do/change to get going? That will help me get it into the guide.

@firedev
Copy link

firedev commented Jul 4, 2014

Basically something like this:

$ brew uninstall apple-gcc42
$ rbenv uninstall 2.1.1
$ rbenv install 2.1.1

That also fixed an issue with gem rmagick

@nlfiedler
Copy link

My setup is like @dmitrytrager and like @firedev I have tried every single solution known to Man. The only work-around I have for now is to install 1.6.1 rather than the latest (1.6.2). The mkmf.log output suggests that the number of arguments to the iconv_open() function is incorrect. See this related issue in another project, rails-sqlserver/tiny_tds#104 , and this rather old but still relevant discussion, https://www.ruby-forum.com/topic/1354865 . Thanks for looking at this.

@allaire
Copy link

allaire commented Jul 15, 2014

This worked for me:

You need to uninstall nokogiri (if installed with brew paths or anything like that), install build tools from apple: xcode-select --install and then re-install nokogiri.

@JezC
Copy link

JezC commented Jul 22, 2014

I have two Macs. One has the problem of the OP, with nokogiri 1.6.2 and 1.6.3. The other... does not. The difference? The one that works, has had this command applied:

bundle config build.nokogiri --with-iconv-include=/opt/local/include

Because I've built a version of libiconv from source and put it in /opt/local.

If I replace the /opt/local/include with /usr/include, I get the failures of the OP again.

Note that the Mac does have /usr/lib/libiconv.2.dylib and that a "nm" of this library suggest that iconv_open is a recognised symbol. Without digging into the compilation system a little deeper, I don't really know what's going wrong. But I have a workround that works enough for development. I wouldn't be deploying on a Mac, so if it works in dev, with no testing errors trackable to it... it works well enough.

I'm still curious as to why the Apple supplied include file and library aren't usable. That's just my monkey curiousity (en_gb), though. :)

@JezC
Copy link

JezC commented Jul 22, 2014

Bah. Answers involving 'bundler' are, of course, only sanely useful for ruby based problems.

Slight further digging suggests that some software doesn't like Apple's libiconv, because it offers iconv_open, not libiconv_open. That seems a pretty odd problem It'd be fairly easy, surely, to write a wrapper function that just calls the Apple functions? Personally I'd rather install a lightweight shroud around a system resource, than have to maintain yet another 3rd party resource.

@shepmaster
Copy link

A coworker was also having a problem where the error text suggested it couldn't find iconv, and running xcode-select --install cleared up his issue. Thanks!

@JezC
Copy link

JezC commented Jul 24, 2014

Here's a gist of the mkmf.log and some notes on various attempts to use xcode-select: https://gist.github.com/JezC/aee8e41bddac27d78ce7#file-gistfile1-txt

@kchasel
Copy link

kchasel commented Jul 24, 2014

I'll throw in here that I was having this issue as well on a fairly clean install of Mavericks (10.9.4) and Xcode 5.1.1. I got no errors about missing command line tools, but xcode-select --install did run and resolved this for me as well.

@muescha
Copy link

muescha commented Jul 24, 2014

Mhh

  1. i still wondering how difficult it would be if i install the current nokogiri on a virtual server?

  2. Exists there some rewrite/fork of nokogiri which not need this (hatd to install) libs and run on every system?

@flavorjones
Copy link
Member

@muescha - the XCode workaround is only necessary on OSX Mavericks. Do you have virtual servers running Mavericks? If not, can you please explain what you are trying to accomplish, and what the problem you're encountering is?

@muescha
Copy link

muescha commented Jul 28, 2014

I have one virtual server (@dreamhost) with an old version of nokogiri and now i fear to upgrade it when it makes this lot of trouble on my local dev osx.

@JezC
Copy link

JezC commented Jul 29, 2014

@muescha - the issue appears restricted to OS X. I have several Linux VMs
on different distros and it is just fine on those. That's partially bacuse
a GNU iconv is included in most distros.

@nike_delassio - I think the issue may be something to do with having
brew/macports projects previously installed. I'm planning to re-install a
Mac Mini over the next few weeks and see if I can compile on a fresh clean
machine. And then add some macports/brew projects to see if that then
triggers failure. I'm pretty sure the key issue is that the configuration
process decides that it can't use the Apple iconv, because it doesn't
supply libiconv_open. And that decision will have been because an include
file is supplying a macro that renames the test for iconv_open to be a test
for libiconv_open, I think. So my guess is that we include everything we
can, check for the system library, find it fails, and go on to look for a
brew/macports installation, but not necessarily in the directories that the
lib is in (because I have to over-ride the build process). That's what my
mkmf.log is suggesting to me, anyway :)

On Mon, Jul 28, 2014 at 9:10 PM, muescha notifications@github.com wrote:

I have one virtual server (@dreamhost https://github.com/dreamhost)
with an old version of nokogiri and now i fear to upgrade it when it makes
this lot of trouble on my local dev osx.


Reply to this email directly or view it on GitHub
#1111 (comment)
.

Jeremy Chatfield -
Skype: jezchatfield, Mobile: +44(0)7780 607613

@muescha
Copy link

muescha commented Jul 29, 2014

@JezC thx - i think this should better described in the install section. Maybe also some small one line script where i can check the requirements

@ghost
Copy link

ghost commented Aug 2, 2014

xcode-select --install worked for a 2013 rMBP updated to Mavericks, using Homebrew 0.9 and rbenv local ruby 2.1.2 installation

@JezC
Copy link

JezC commented Aug 4, 2014

I did a fresh install of OS X 10.9.4 (technically, Mountain Lion, then immediately upgraded to Mavericks - just because I had a Mountain Lion USB stick to hand). Installed Xcode 5.1.1, and ran it, accepting license and updating downloads in the Preferences. It has command line tools built in. Tried to build, and it fails saying that "package configuration for libiconv is not found".

Ran 'xcode-select --install' and accepted the pop up window. Retried the installation, and it completes.

Looks to me like part of the problem is installing brew, probably trying to handle the libx* issues, or as in my case, becaue I had other projects that used brew components. That residue of other projects probably then creates include files on the path that override the iconv_open name to libiconv_open - which the system libs can't satisfy. You then end up having to install libiconv as well, just to get the renamed function to be found...

Put more simply, if your system is plain, then 'xcode-select --install' probably works. If you have touched brew (or macports, too, probably), then you may be at risk of inadvertently renaming the needed function call, to something that the install process can't understand and use. You end up installing GNU libiconv to satisfy the need for libiconv_open, instead of using the system iconv.

I'm now planning to taint the Mac Mini I'm using for this, so that I can probe what causes the build to fail when xcode is installed and potentially able to work, such that one needs to install GNU iconv to make nokogiri work. Because that's where I spent a lot of time - struggling with a compiler that worked, and an iconv that should have compiled and wouldn't. My suspicion is that once you use brew or macports, even for another project, you're then committed to eventually installing GNU iconv.

@amejiarosario
Copy link

👍 for xcode-select --install

@JeremyEnglert
Copy link

I had a similar experience as @kchasel. No Xcode errors, but running 'xcode-select --install' seemed to fix the issue.

@SteveBenner
Copy link

  • As a self-contained solution, I've put together this ruby script as a gist that should work with any recent Mac OS X / Homebrew installation.
  • You're basically just on on relying Homebrew's libraries instead of the outdated Apple ones. Simple.
  • You can configure and install with Bundler (instead of gem) by passing bundle as an argument.

Check it out, and please feel free to contribute--maybe we can boil this down to one script to fix them all!

@devjj
Copy link

devjj commented Aug 19, 2014

I had the exact same problem and my issue turned out to be an incorrect Xcode path. I had two versions of Xcode installed, and xcode-select was still configured to use an older version. Fixing this allowed me to install without issue.

@dryaf
Copy link

dryaf commented Aug 28, 2014

xcode-select --install did the trick

@zenspider
Copy link
Contributor

@flavorjones I'm updating the tutorial's install guide. I think this issue can be closed.

@newton108
Copy link

xcode-select --install doesn't fix the problem for me.

Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib'
This could take a while...
Building nokogiri using packaged libraries.
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
Building nokogiri using packaged libraries.
checking for iconv.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
checking for libiconv_open() in iconv.h... no
checking for libiconv_open() in -liconv... no
checking for iconv.h... yes
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
checking for libiconv_open() in iconv.h... no
checking for libiconv_open() in -liconv... no
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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
    --without-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=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/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


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.3.1/ext/nokogiri/gem_make.out

@darend
Copy link

darend commented Sep 15, 2014

On a fresh install of Mavericks with XCode 6, xcode-select --install did fix the issue for me.

knu added a commit that referenced this issue Sep 16, 2014
@WhyNotHugo
Copy link

I'm getting an almost identical issue on OpenBSD-current:

/usr/local/bin/ruby21 extconf.rb 
Building nokogiri using packaged libraries.
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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
    --without-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=/usr/local/bin/ruby21
    --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

extconf failed, exit code 1

Details:

# pkg_info -Q libiconv
libiconv-1.14p1 (installed)
# ruby --version
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-openbsd]
# uname -a
OpenBSD elysion.barrera.io 5.6 GENERIC.MP#424 amd64
# env | grep NOKO
BUNDLE_BUILD__NOKOGIRI=--with-iconv-dir=/usr/local/include
# ls /usr/local/include/*iconv*
/usr/local/include/iconv.h

Is this the same issue?

@zenspider
Copy link
Contributor

@hobarrera I don't think so. Please file a new issue.

@WhyNotHugo
Copy link

@zenspider: Ok, will do. It just seemed that it might have been a related issue.

@flavorjones
Copy link
Member

I believe the installation tutorial is correctly capturing an installation procedure for OSX:

http://www.nokogiri.org/tutorials/installing_nokogiri.html

If I'm mistaken, please let me know and I'll reopen.

@pushpendra-mobicules
Copy link

Please help me how can I fix the error I have pasted below:

Building native extensions. This could take a while...
/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr/bin in PATH, mode 040777
ERROR: Error installing longbow:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150728-14863-5h5cor.rb extconf.rb

checking for Ruby version >= 1.8.5... yes
checking for xcrun... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for snprintf() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for AcquireImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for AffinityImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for AffinityImages() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for AutoGammaImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for AutoLevelImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for BlueShiftImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for ColorMatrixImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for ConstituteComponentTerminus() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for DeskewImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for DestroyConstitute() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for EncipherImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for EqualizeImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for EvaluateImages() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for FloodfillPaintImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for FunctionImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for GetAuthenticIndexQueue() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for GetAuthenticPixels() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for GetImageAlphaChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for GetMagickFeatures() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for GetVirtualPixels() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for LevelImageColors() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for LevelColorsImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for LevelizeImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for LiquidRescaleImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for MagickLibAddendum() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for OpaquePaintImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for QueueAuthenticPixels() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for RemapImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for RemapImages() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for RemoveImageArtifact() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for RotationalBlurImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for RotationalBlurImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for SelectiveBlurImageChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for SetImageAlphaChannel() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for SetImageArtifact() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for SetMagickMemoryMethods() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for SparseColorImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for StatisticImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for SyncAuthenticPixels() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for TransformImageColorspace() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for TransparentPaintImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for TransparentPaintImageChroma() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no
checking for QueryMagickColorname() new signature... yes
checking for Image.type in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for DrawInfo.kerning in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for DrawInfo.interline_spacing in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for DrawInfo.interword_spacing in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for DitherMethod in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for MagickFunction in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for ImageLayerMethod in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for long double in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes
checking for AlphaChannelType.CopyAlphaChannel... yes
checking for AlphaChannelType.BackgroundAlphaChannel... yes
checking for CompositeOperator.BlurCompositeOp... yes
checking for CompositeOperator.DistortCompositeOp... yes
checking for CompositeOperator.LinearBurnCompositeOp... yes
checking for CompositeOperator.LinearDodgeCompositeOp... yes
checking for CompositeOperator.MathematicsCompositeOp... yes
checking for CompositeOperator.PegtopLightCompositeOp... yes
checking for CompositeOperator.PinLightCompositeOp... yes
checking for CompositeOperator.VividLightCompositeOp... yes
checking for CompressionType.DXT1Compression... yes
checking for CompressionType.DXT3Compression... yes
checking for CompressionType.DXT5Compression... yes
checking for CompressionType.ZipSCompression... yes
checking for CompressionType.PizCompression... yes
checking for CompressionType.Pxr24Compression... yes
checking for CompressionType.B44Compression... yes
checking for CompressionType.B44ACompression... yes
checking for DistortImageMethod.BarrelDistortion... yes
checking for DistortImageMethod.BarrelInverseDistortion... yes
checking for DistortImageMethod.BilinearForwardDistortion... yes
checking for DistortImageMethod.BilinearReverseDistortion... yes
checking for DistortImageMethod.DePolarDistortion... yes
checking for DistortImageMethod.PolarDistortion... yes
checking for DistortImageMethod.PolynomialDistortion... yes
checking for DistortImageMethod.ShepardsDistortion... yes
checking for DitherMethod.NoDitherMethod... yes
checking for FilterTypes.KaiserFilter... yes
checking for FilterTypes.WelshFilter... yes
checking for FilterTypes.ParzenFilter... yes
checking for FilterTypes.LagrangeFilter... yes
checking for FilterTypes.BohmanFilter... yes
checking for FilterTypes.BartlettFilter... yes
checking for FilterTypes.SentinelFilter... yes
checking for MagickEvaluateOperator.PowEvaluateOperator... yes
checking for MagickEvaluateOperator.LogEvaluateOperator... yes
checking for MagickEvaluateOperator.ThresholdEvaluateOperator... yes
checking for MagickEvaluateOperator.ThresholdBlackEvaluateOperator... yes
checking for MagickEvaluateOperator.ThresholdWhiteEvaluateOperator... yes
checking for MagickEvaluateOperator.GaussianNoiseEvaluateOperator... yes
checking for MagickEvaluateOperator.ImpulseNoiseEvaluateOperator... yes
checking for MagickEvaluateOperator.LaplacianNoiseEvaluateOperator... yes
checking for MagickEvaluateOperator.MultiplicativeNoiseEvaluateOperator... yes
checking for MagickEvaluateOperator.PoissonNoiseEvaluateOperator... yes
checking for MagickEvaluateOperator.UniformNoiseEvaluateOperator... yes
checking for MagickEvaluateOperator.CosineEvaluateOperator... yes
checking for MagickEvaluateOperator.SineEvaluateOperator... yes
checking for MagickEvaluateOperator.AddModulusEvaluateOperator... yes
checking for MagickFunction.ArcsinFunction... yes
checking for MagickFunction.ArctanFunction... yes
checking for MagickFunction.PolynomialFunction... yes
checking for MagickFunction.SinusoidFunction... yes
checking for ImageLayerMethod.FlattenLayer... yes
checking for ImageLayerMethod.MergeLayer... yes
checking for ImageLayerMethod.MosaicLayer... yes
checking for ImageLayerMethod.TrimBoundsLayer... yes
checking for VirtualPixelMethod.HorizontalTileVirtualPixelMethod... yes
checking for VirtualPixelMethod.VerticalTileVirtualPixelMethod... yes
checking for VirtualPixelMethod.HorizontalTileEdgeVirtualPixelMethod... yes
checking for VirtualPixelMethod.VerticalTileEdgeVirtualPixelMethod... yes
checking for VirtualPixelMethod.CheckerTileVirtualPixelMethod... yes
checking for ruby/io.h... yes
checking for rb_frame_this_func() in ruby.h,ruby/io.h... yes
creating extconf.h
creating Makefile

Tue 28Jul15 19:28:40
This installation of RMagick 2.13.4 is configured for

Ruby 2.0.0 (universal.x86_64-darwin14) and ImageMagick

make "DESTDIR=" clean

make "DESTDIR="
compiling rmagick.c
compiling rmdraw.c
rmdraw.c:315:15: warning: comparison of constant 100 with expression of type 'WeightType' is always true [-Wtautological-constant-out-of-range-compare]
if (w < 100 || w > 900)
~ ^ ~~~
rmdraw.c:315:26: warning: comparison of constant 900 with expression of type 'WeightType' is always false [-Wtautological-constant-out-of-range-compare]
if (w < 100 || w > 900)
~ ^ ~~~
rmdraw.c:1878:17: warning: 'AllocateImage' is deprecated [-Wdeprecated-declarations]
image = AcquireImage(info);
^
./rmagick.h:176:28: note: expanded from macro 'AcquireImage'
#define AcquireImage(info) AllocateImage(info)
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:127:4: note: 'AllocateImage' has been explicitly marked deprecated here
AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
^
3 warnings generated.
rmdraw.c:315:15: warning: comparison of constant 100 with expression of type 'WeightType' is always true [-Wtautological-constant-out-of-range-compare]
if (w < 100 || w > 900)
~ ^ ~~~
rmdraw.c:315:26: warning: comparison of constant 900 with expression of type 'WeightType' is always false [-Wtautological-constant-out-of-range-compare]
if (w < 100 || w > 900)
~ ^ ~~~
rmdraw.c:1878:17: warning: 'AllocateImage' is deprecated [-Wdeprecated-declarations]
image = AcquireImage(info);
^
./rmagick.h:176:28: note: expanded from macro 'AcquireImage'
#define AcquireImage(info) AllocateImage(info)
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:127:4: note: 'AllocateImage' has been explicitly marked deprecated here
*AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
^
3 warnings generated.
compiling rmenum.c
rmenum.c:450:13: warning: 5 enumeration values not handled in switch: 'DivideSrcCompositeOp', 'MinusSrcCompositeOp', 'DarkenIntensityCompositeOp'... [-Wswitch]
switch (op)
^
rmenum.c:565:13: warning: enumeration values 'LZMACompression', 'JBIG1Compression', and 'JBIG2Compression' not handled in switch [-Wswitch]
switch (ct)
^
rmenum.c:674:12: warning: 9 enumeration values not handled in switch: 'SincFastFilter', 'LanczosSharpFilter', 'Lanczos2Filter'... [-Wswitch]
switch(type)
^
rmenum.c:922:12: warning: 5 enumeration values not handled in switch: 'Average9InterpolatePixel', 'Average16InterpolatePixel', 'BlendInterpolatePixel'... [-Wswitch]
switch(interpolate)
^
4 warnings generated.
rmenum.c:450:13: warning: 5 enumeration values not handled in switch: 'DivideSrcCompositeOp', 'MinusSrcCompositeOp', 'DarkenIntensityCompositeOp'... [-Wswitch]
switch (op)
^
rmenum.c:565:13: warning: enumeration values 'LZMACompression', 'JBIG1Compression', and 'JBIG2Compression' not handled in switch [-Wswitch]
switch (ct)
^
rmenum.c:674:12: warning: 9 enumeration values not handled in switch: 'SincFastFilter', 'LanczosSharpFilter', 'Lanczos2Filter'... [-Wswitch]
switch(type)
^
rmenum.c:922:12: warning: 5 enumeration values not handled in switch: 'Average9InterpolatePixel', 'Average16InterpolatePixel', 'BlendInterpolatePixel'... [-Wswitch]
switch(interpolate)
^
4 warnings generated.
compiling rmfill.c
rmfill.c:143:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:159:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:233:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:243:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:315:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
col_pixels = SetImagePixels(image, (long int)x, 0, 1, image->rows);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:324:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:414:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:430:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:521:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:537:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
10 warnings generated.
rmfill.c:143:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:159:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:233:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:243:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:315:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
col_pixels = SetImagePixels(image, (long int)x, 0, 1, image->rows);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:324:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:414:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:430:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmfill.c:521:22: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
row_pixels = SetImagePixels(image, 0, (long int)y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmfill.c:537:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
10 warnings generated.
compiling rmilist.c
rmilist.c:459:12: warning: 'MapImages' is deprecated -Wdeprecated-declarations MapImages(new_images, map, dither);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:214:3: note: 'MapImages' has been explicitly marked deprecated here
MapImages(Image *,const Image *,const MagickBooleanType)
^
rmilist.c:678:20: warning: 'MapImages' is deprecated -Wdeprecated-declarations MapImages(new_images, NULL, 0);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:214:3: note: 'MapImages' has been explicitly marked deprecated here
MapImages(Image *,const Image *,const MagickBooleanType)
^
2 warnings generated.
rmilist.c:459:12: warning: 'MapImages' is deprecated -Wdeprecated-declarations MapImages(new_images, map, dither);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:214:3: note: 'MapImages' has been explicitly marked deprecated here
MapImages(Image *,const Image *,const MagickBooleanType)
^
rmilist.c:678:20: warning: 'MapImages' is deprecated -Wdeprecated-declarations MapImages(new_images, NULL, 0);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:214:3: note: 'MapImages' has been explicitly marked deprecated here
MapImages(Image *,const Image *,const MagickBooleanType)
^
2 warnings generated.
compiling rmimage.c
rmimage.c:2784:12: warning: 'ColorFloodfillImage' is deprecated -Wdeprecated-declarations ColorFloodfillImage(new_image, draw_info, target, x, y, (PaintMethod)fill_method);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:185:3: note: 'ColorFloodfillImage' has been explicitly marked deprecated here
ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const ssize_t,
^
rmimage.c:3680:12: warning: 'SetImageAttribute' is deprecated -Wdeprecated-declarations SetImageAttribute(comp_image, "[modify-outside-overlay]", "false");
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:231:3: note: 'SetImageAttribute' has been explicitly marked deprecated here
SetImageAttribute(Image *,const char *,const char *)
^
rmimage.c:3919:13: warning: 'AllocateImage' is deprecated [-Wdeprecated-declarations]
image = AcquireImage(NULL);
^
./rmagick.h:176:28: note: expanded from macro 'AcquireImage'
#define AcquireImage(info) AllocateImage(info)
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:127:4: note: 'AllocateImage' has been explicitly marked deprecated here
*AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
^
rmimage.c:6993:14: warning: 'AcquireImagePixels' is deprecated [-Wdeprecated-declarations]
pixels = AcquireImagePixels(image, x, y, columns, rows, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:120:4: note: 'AcquireImagePixels' has been explicitly marked deprecated here
*AcquireImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:8167:12: warning: 'MapImage' is deprecated -Wdeprecated-declarations MapImage(new_image, map, dither);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:212:3: note: 'MapImage' has been explicitly marked deprecated here
MapImage(Image *,const Image *,const MagickBooleanType)
^
rmimage.c:8395:17: warning: 'GetImagePixels' is deprecated [-Wdeprecated-declarations]
q = GetImagePixels(clip_mask, 0, y, clip_mask->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:266:4: note: 'GetImagePixels' has been explicitly marked deprecated here
*GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:8418:13: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(clip_mask);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmimage.c:8618:12: warning: 'MatteFloodfillImage' is deprecated -Wdeprecated-declarations MatteFloodfillImage(new_image, target, op, x, y, method);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:216:3: note: 'MatteFloodfillImage' has been explicitly marked deprecated here
MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const ssize_t,
^
rmimage.c:9127:13: warning: 'AllocateImage' is deprecated [-Wdeprecated-declarations]
image = AcquireImage(info);
^
./rmagick.h:176:28: note: expanded from macro 'AcquireImage'
#define AcquireImage(info) AllocateImage(info)
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:127:4: note: 'AllocateImage' has been explicitly marked deprecated here
*AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
^
rmimage.c:9382:13: warning: 'PaintOpaqueImageChannel' is deprecated [-Wdeprecated-declarations]
okay = PaintOpaqueImageChannel(new_image, DefaultChannels, &target_pp, &fill_pp);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:225:3: note: 'PaintOpaqueImageChannel' has been explicitly marked deprecated here
PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
^
rmimage.c:9820:22: warning: 'AcquireImagePixels' is deprecated [-Wdeprecated-declarations]
old_color = *AcquireImagePixels(image, x, y, 1, 1, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:120:4: note: 'AcquireImagePixels' has been explicitly marked deprecated here
*AcquireImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:9832:36: warning: 'GetIndexes' is deprecated [-Wdeprecated-declarations]
IndexPacket *indexes = GetIndexes(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:159:4: note: 'GetIndexes' has been explicitly marked deprecated here
*GetIndexes(const Image *) magick_attribute((deprecated)),
^
rmimage.c:9871:13: warning: 'GetImagePixels' is deprecated [-Wdeprecated-declarations]
pixel = GetImagePixels(image, x, y, 1, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:266:4: note: 'GetImagePixels' has been explicitly marked deprecated here
*GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:9889:5: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmimage.c:10412:17: warning: 'RadialBlurImage' is deprecated [-Wdeprecated-declarations]
new_image = RadialBlurImage(image, NUM2DBL(angle), exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:144:4: note: 'RadialBlurImage' has been explicitly marked deprecated here
*RadialBlurImage(const Image *,const double,ExceptionInfo *)
^
rmimage.c:10466:17: warning: 'RadialBlurImageChannel' is deprecated [-Wdeprecated-declarations]
new_image = RadialBlurImageChannel(image, channels, NUM2DBL(argv[0]), exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:146:4: note: 'RadialBlurImageChannel' has been explicitly marked deprecated here
*RadialBlurImageChannel(const Image *,const ChannelType,const double,
^
rmimage.c:10739:17: warning: 'RecolorImage' is deprecated [-Wdeprecated-declarations]
new_image = RecolorImage(image, order, matrix, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:148:4: note: 'RecolorImage' has been explicitly marked deprecated here
*RecolorImage(const Image *,const size_t,const double *,ExceptionInfo *)
^
rmimage.c:12911:18: warning: 'GetImagePixels' is deprecated [-Wdeprecated-declarations]
pixels = GetImagePixels(image, x, y, cols, rows);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:266:4: note: 'GetImagePixels' has been explicitly marked deprecated here
*GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:12927:13: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmimage.c:13101:12: warning: 'ColorFloodfillImage' is deprecated -Wdeprecated-declarations ColorFloodfillImage(new_image, draw_info, color, x, y, method);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:185:3: note: 'ColorFloodfillImage' has been explicitly marked deprecated here
ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const ssize_t,
^
rmimage.c:13659:12: warning: 'PaintTransparentImage' is deprecated [-Wdeprecated-declarations]
okay = PaintTransparentImage(new_image, &color, opacity);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:227:3: note: 'PaintTransparentImage' has been explicitly marked deprecated here
PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum)
^
rmimage.c:14688:13: warning: 'AcquireImagePixels' is deprecated [-Wdeprecated-declarations]
p = AcquireImagePixels(reflection, 0, y, image->columns, 1, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:120:4: note: 'AcquireImagePixels' has been explicitly marked deprecated here
*AcquireImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:14700:13: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
q = SetImagePixels(reflection, 0, y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:14721:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(reflection);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
24 warnings generated.
rmimage.c:2784:12: warning: 'ColorFloodfillImage' is deprecated -Wdeprecated-declarations ColorFloodfillImage(new_image, draw_info, target, x, y, (PaintMethod)fill_method);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:185:3: note: 'ColorFloodfillImage' has been explicitly marked deprecated here
ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const ssize_t,
^
rmimage.c:3680:12: warning: 'SetImageAttribute' is deprecated -Wdeprecated-declarations SetImageAttribute(comp_image, "[modify-outside-overlay]", "false");
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:231:3: note: 'SetImageAttribute' has been explicitly marked deprecated here
SetImageAttribute(Image *,const char *,const char *)
^
rmimage.c:3919:13: warning: 'AllocateImage' is deprecated [-Wdeprecated-declarations]
image = AcquireImage(NULL);
^
./rmagick.h:176:28: note: expanded from macro 'AcquireImage'
#define AcquireImage(info) AllocateImage(info)
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:127:4: note: 'AllocateImage' has been explicitly marked deprecated here
*AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
^
rmimage.c:6993:14: warning: 'AcquireImagePixels' is deprecated [-Wdeprecated-declarations]
pixels = AcquireImagePixels(image, x, y, columns, rows, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:120:4: note: 'AcquireImagePixels' has been explicitly marked deprecated here
*AcquireImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:8167:12: warning: 'MapImage' is deprecated -Wdeprecated-declarations MapImage(new_image, map, dither);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:212:3: note: 'MapImage' has been explicitly marked deprecated here
MapImage(Image *,const Image *,const MagickBooleanType)
^
rmimage.c:8395:17: warning: 'GetImagePixels' is deprecated [-Wdeprecated-declarations]
q = GetImagePixels(clip_mask, 0, y, clip_mask->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:266:4: note: 'GetImagePixels' has been explicitly marked deprecated here
*GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:8418:13: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(clip_mask);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmimage.c:8618:12: warning: 'MatteFloodfillImage' is deprecated -Wdeprecated-declarations MatteFloodfillImage(new_image, target, op, x, y, method);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:216:3: note: 'MatteFloodfillImage' has been explicitly marked deprecated here
MatteFloodfillImage(Image *,const PixelPacket,const Quantum,const ssize_t,
^
rmimage.c:9127:13: warning: 'AllocateImage' is deprecated [-Wdeprecated-declarations]
image = AcquireImage(info);
^
./rmagick.h:176:28: note: expanded from macro 'AcquireImage'
#define AcquireImage(info) AllocateImage(info)
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:127:4: note: 'AllocateImage' has been explicitly marked deprecated here
*AllocateImage(const ImageInfo *) magick_attribute((deprecated)),
^
rmimage.c:9382:13: warning: 'PaintOpaqueImageChannel' is deprecated [-Wdeprecated-declarations]
okay = PaintOpaqueImageChannel(new_image, DefaultChannels, &target_pp, &fill_pp);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:225:3: note: 'PaintOpaqueImageChannel' has been explicitly marked deprecated here
PaintOpaqueImageChannel(Image *,const ChannelType,const MagickPixelPacket *,
^
rmimage.c:9820:22: warning: 'AcquireImagePixels' is deprecated [-Wdeprecated-declarations]
old_color = *AcquireImagePixels(image, x, y, 1, 1, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:120:4: note: 'AcquireImagePixels' has been explicitly marked deprecated here
*AcquireImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:9832:36: warning: 'GetIndexes' is deprecated [-Wdeprecated-declarations]
IndexPacket *indexes = GetIndexes(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:159:4: note: 'GetIndexes' has been explicitly marked deprecated here
*GetIndexes(const Image *) magick_attribute((deprecated)),
^
rmimage.c:9871:13: warning: 'GetImagePixels' is deprecated [-Wdeprecated-declarations]
pixel = GetImagePixels(image, x, y, 1, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:266:4: note: 'GetImagePixels' has been explicitly marked deprecated here
*GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:9889:5: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmimage.c:10412:17: warning: 'RadialBlurImage' is deprecated [-Wdeprecated-declarations]
new_image = RadialBlurImage(image, NUM2DBL(angle), exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:144:4: note: 'RadialBlurImage' has been explicitly marked deprecated here
*RadialBlurImage(const Image *,const double,ExceptionInfo *)
^
rmimage.c:10466:17: warning: 'RadialBlurImageChannel' is deprecated [-Wdeprecated-declarations]
new_image = RadialBlurImageChannel(image, channels, NUM2DBL(argv[0]), exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:146:4: note: 'RadialBlurImageChannel' has been explicitly marked deprecated here
*RadialBlurImageChannel(const Image *,const ChannelType,const double,
^
rmimage.c:10739:17: warning: 'RecolorImage' is deprecated [-Wdeprecated-declarations]
new_image = RecolorImage(image, order, matrix, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:148:4: note: 'RecolorImage' has been explicitly marked deprecated here
*RecolorImage(const Image *,const size_t,const double *,ExceptionInfo *)
^
rmimage.c:12911:18: warning: 'GetImagePixels' is deprecated [-Wdeprecated-declarations]
pixels = GetImagePixels(image, x, y, cols, rows);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:266:4: note: 'GetImagePixels' has been explicitly marked deprecated here
*GetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:12927:13: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(image);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
rmimage.c:13101:12: warning: 'ColorFloodfillImage' is deprecated -Wdeprecated-declarations ColorFloodfillImage(new_image, draw_info, color, x, y, method);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:185:3: note: 'ColorFloodfillImage' has been explicitly marked deprecated here
ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const ssize_t,
^
rmimage.c:13659:12: warning: 'PaintTransparentImage' is deprecated [-Wdeprecated-declarations]
okay = PaintTransparentImage(new_image, &color, opacity);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:227:3: note: 'PaintTransparentImage' has been explicitly marked deprecated here
PaintTransparentImage(Image *,const MagickPixelPacket *,const Quantum)
^
rmimage.c:14688:13: warning: 'AcquireImagePixels' is deprecated [-Wdeprecated-declarations]
p = AcquireImagePixels(reflection, 0, y, image->columns, 1, exception);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:120:4: note: 'AcquireImagePixels' has been explicitly marked deprecated here
*AcquireImagePixels(const Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:14700:13: warning: 'SetImagePixels' is deprecated [-Wdeprecated-declarations]
q = SetImagePixels(reflection, 0, y, image->columns, 1);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:273:4: note: 'SetImagePixels' has been explicitly marked deprecated here
*SetImagePixels(Image *,const ssize_t,const ssize_t,const size_t,
^
rmimage.c:14721:9: warning: 'SyncImagePixels' is deprecated [-Wdeprecated-declarations]
SyncImagePixels(reflection);
^
/usr/local/Cellar/imagemagick/6.9.1-10/include/ImageMagick-6/magick/deprecate.h:234:3: note: 'SyncImagePixels' has been explicitly marked deprecated here
SyncImagePixels(Image *) magick_attribute((deprecated)),
^
24 warnings generated.
compiling rminfo.c
compiling rmmain.c
rmmain.c:1724:28: error: use of undeclared identifier 'MagickSupport'
features = rb_str_new2(MagickSupport);
^
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/intern.h:760:27: note: expanded from macro 'rb_str_new_cstr'
(__builtin_constant_p(str)) ?
^
rmmain.c:1724:28: error: use of undeclared identifier 'MagickSupport'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/intern.h:761:14: note: expanded from macro 'rb_str_new_cstr'
rb_str_new((str), (long)strlen(str)) :
^
rmmain.c:1724:28: error: use of undeclared identifier 'MagickSupport'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/intern.h:762:18: note: expanded from macro 'rb_str_new_cstr'
rb_str_new_cstr(str);
^
rmmain.c:1724:14: error: assigning to 'volatile VALUE' (aka 'volatile unsigned long') from incompatible type 'void'
features = rb_str_new2(MagickSupport);
^
4 errors generated.
make: *
* [rmmain.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/rmagick-2.13.4 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/rmagick-2.13.4/gem_make.out

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

No branches or pull requests