Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2023 03:02:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269144] databases/ruby-qdbm: Fix build with Ruby 3.1 and 12.3-RELEASE
Message-ID:  <bug-269144-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269144

            Bug ID: 269144
           Summary: databases/ruby-qdbm: Fix build with Ruby 3.1 and
                    12.3-RELEASE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: yasu@freebsd.org
            Blocks: 268586
          Assignee: hrs@FreeBSD.org
             Flags: maintainer-feedback?(hrs@FreeBSD.org)

Created attachment 239693
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D239693&action=
=3Dedit
Patch file

Fix build with Ruby 3.1 and 12.3-RELEASE.

=3D=3D=3D>  Configuring for ruby31-qdbm-1.8.78_4
configure: loading site script /usr/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for main in -lqdbm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir
setting
cd /wrkdirs/usr/ports/databases/ruby-qdbm/work/qdbm-1.8.78/ruby && /usr/bin=
/env
RB_USER_INSTALL=3Dyes CFLAGS=3D"-O2 -pipe  -I/usr/local/include -DLIBICONV_=
PLUG
-fstack-protector-strong -fno-strict-aliasing " LDFLAGS=3D" -L/usr/local/lib
-fstack-protector-strong "  LOCALBASE=3D"/usr/local"
XDG_DATA_HOME=3D/wrkdirs/usr/ports/databases/ruby-qdbm/work=20
XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/databases/ruby-qdbm/work=20
XDG_CACHE_HOME=3D/wrkdirs/usr/ports/databases/ruby-qdbm/work/.cache=20
HOME=3D/wrkdirs/usr/ports/databases/ruby-qdbm/work TMPDIR=3D"/tmp"
PATH=3D/wrkdirs/usr/ports/databases/ruby-qdbm/work/.bin:/sbin:/bin:/usr/sbi=
n:/usr/bin:/usr/local/sbin:/usr/local/bin:/nonexistent/bin
PKG_CONFIG_LIBDIR=3D/wrkdirs/usr/ports/databases/ruby-qdbm/work/.pkgconfig:=
/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgcon=
fig
MK_DEBUG_FILES=3Dno MK_KERNEL_SYMBOLS=3Dno SHELL=3D/bin/sh NO_LINT=3DYES
PREFIX=3D/usr/local  LOCALBASE=3D/usr/local  CC=3D"cc" CFLAGS=3D"-O2 -pipe=
=20
-I/usr/local/include -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing "  CPP=3D"cpp" CPPFLAGS=3D"-DLIBICONV_PLUG"  LDFLAGS=
=3D"
-L/usr/local/lib -fstack-protector-strong " LIBS=3D""  CXX=3D"c++" CXXFLAGS=
=3D"-O2
-pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing  -DLIBICONV_PLUG "  MANPREFIX=3D"/usr/local"
BSD_INSTALL_PROGRAM=3D"install  -s -m 555"  BSD_INSTALL_LIB=3D"install  -s =
-m 0644"
 BSD_INSTALL_SCRIPT=3D"install  -m 555"  BSD_INSTALL_DATA=3D"install  -m 06=
44"=20
BSD_INSTALL_MAN=3D"install  -m 444"  /usr/bin/make configure
for d in depot curia villa; do  (cd $d && /usr/local/bin/ruby extconf.rb);=
=20
done
checking for main() in -lc... *** 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 m=
ay
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=3D${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=3D${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=3D.
        --curdir
        --ruby=3D/usr/local/bin/$(RUBY_BASE_NAME)31
        --with-depot-dir
        --without-depot-dir
        --with-depot-include
        --without-depot-include=3D${depot-dir}/include
        --with-depot-lib
        --without-depot-lib=3D${depot-dir}/lib
        --with-c-dir
        --without-c-dir
        --with-c-include
        --without-c-include=3D${c-dir}/include
        --with-c-lib
        --without-c-lib=3D${c-dir}/lib
        --with-clib
        --without-clib
/usr/local/lib/ruby/3.1/mkmf.rb:490:in `try_do': The compiler failed to
generate an executable file. (RuntimeError)
You have to install development tools first.
        from /usr/local/lib/ruby/3.1/mkmf.rb:583:in `try_link0'
        from /usr/local/lib/ruby/3.1/mkmf.rb:601:in `try_link'
        from /usr/local/lib/ruby/3.1/mkmf.rb:812:in `try_func'
        from /usr/local/lib/ruby/3.1/mkmf.rb:1062:in `block in have_library'
        from /usr/local/lib/ruby/3.1/mkmf.rb:989:in `block in checking_for'
        from /usr/local/lib/ruby/3.1/mkmf.rb:354:in `block (2 levels) in
postpone'
        from /usr/local/lib/ruby/3.1/mkmf.rb:324:in `open'
        from /usr/local/lib/ruby/3.1/mkmf.rb:354:in `block in postpone'
        from /usr/local/lib/ruby/3.1/mkmf.rb:324:in `open'
        from /usr/local/lib/ruby/3.1/mkmf.rb:350:in `postpone'
        from /usr/local/lib/ruby/3.1/mkmf.rb:988:in `checking_for'
        from /usr/local/lib/ruby/3.1/mkmf.rb:1057:in `have_library'
        from extconf.rb:9:in `<main>'
*** Error code 1

Stop.
make[1]: stopped in
/wrkdirs/usr/ports/databases/ruby-qdbm/work/qdbm-1.8.78/ruby
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/ruby-qdbm


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268586
[Bug 268586] [exp-run] Mk/bsd.default-versions.mk: Change default version of
Ruby
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269144-7788>