tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

OS X / ruby22-readline trouble with libiconv


With OS X (yosemite) and pkgsrc-2015Q2, I have a problem where the build fails immediately and it seems to have to do with libiconv.

Readline is installed and seems to work fine with the postgres client - so I believe that is a non-issue.

I have nothing in mk.conf that would indicate any builtin preference or PREFER.iconv or anything like that.

devel/ruby-readline fails with the messages below. The mkmf.log is also shown after. Any help would be great. Thanks,


# bmake package
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/.dbdir/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/.dbdir fetch-pkg-vulnerabilities'.
===> Configuring for ruby22-readline-2.2.3nb1
===>  Running extconf.rb to configure
/usr/pkg/bin/ruby22 extconf.rb --disable-libedit --with-opt-dir=/usr/pkg --vendor --enable-pthread
checking for tgetnum() in -lncurses... *** 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:
/usr/pkg/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:541:in `try_link0'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:556:in `try_link'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:735:in `try_func'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:966:in `block in have_library'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:321:in `open'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:321:in `open'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:347:in `postpone'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for'
	from /usr/pkg/lib/ruby/2.2.0/mkmf.rb:961:in `have_library'
	from extconf.rb:33:in `<main>'
*** Error code 1

bmake[1]: stopped in /usr/pkgsrc/devel/ruby-readline
*** Error code 1

bmake: stopped in /usr/pkgsrc/devel/ruby-readline

# more mkmf.log
"gcc -o conftest -I/usr/pkg/include/ruby-2.2.0/x86_64-darwin14 -I/usr/pkg/include/ruby-2.2.0/ruby/backward -I/usr/pkg/include/ruby-2.2.0 -I. -I/usr/include -I/usr/pkg/include -D_REENTRANT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -pipe -O2 -I/usr/include -I/usr/pkg/include -D_REENTRANT -fno-common conftest.c -L/usr/pkg/lib -L. -L/usr/pkg/lib -L. -L/usr/lib -L/usr/pkg/lib -fstack-protector -lruby22.2.2.0 -lpthread -ldl -lobjc -lpthread "
dyld: Symbol not found: _iconv
  Referenced from: /bin/ksh
  Expected in: /usr/pkg/lib/libiconv.2.dylib
 in /bin/ksh
checked program was:
/* begin */
1: #include "ruby.h"
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

Home | Main Index | Thread Index | Old Index