tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
OS X / ruby22-readline trouble with libiconv
Hi,
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,
Louis
# 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:
--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=/usr/pkg/bin/$(RUBY_BASE_NAME)22
--with-curses-dir
--without-curses-dir
--with-curses-include
--without-curses-include=${curses-dir}/include
--with-curses-lib
--without-curses-lib=${curses-dir}/lib
--with-ncurses-dir
--without-ncurses-dir
--with-ncurses-include
--without-ncurses-include=${ncurses-dir}/include
--with-ncurses-lib
--without-ncurses-lib=${ncurses-dir}/lib
--with-termcap-dir
--without-termcap-dir
--with-termcap-include
--without-termcap-include=${termcap-dir}/include
--with-termcap-lib
--without-termcap-lib=${termcap-dir}/lib
--with-readline-dir
--without-readline-dir
--with-readline-include
--without-readline-include=${readline-dir}/include
--with-readline-lib
--without-readline-lib=${readline-dir}/lib
--enable-libedit
--disable-libedit
--with-ncurseslib
--without-ncurseslib
/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
Stop.
bmake[1]: stopped in /usr/pkgsrc/devel/ruby-readline
*** Error code 1
Stop.
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"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
Home |
Main Index |
Thread Index |
Old Index