pkgsrc-Bugs archive

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

pkg/54025: bash 5.0 fails to build on Solaris 10



>Number:         54025
>Category:       pkg
>Synopsis:       bash 5.0 fails to build on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 28 03:00:00 +0000 2019
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc-current
>Organization:
FRA
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
bash 5.0 fails to build on Solaris 10.

==========================================================================
The following variables will affect the build process of this package,
bash-5.0.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses

Based on these variables, the following variables have been set:

        * CURSES_TYPE = ncurses
        * TERMCAP_TYPE = curses

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/pkg/bin/bmake clean' after
the changes.
==========================================================================

...

gcc -fpic -DHAVE_CONFIG_H -DSHELL -DSOLARIS -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include/ncurses -I/usr/pkg/include -Wno-parentheses -Wno-format-security -I. -I.. -I../.. -I../../lib -I../../builtins -I.  -I../../include -I/usr/pkgsrc/shells/bash/work/bash-5.0 -I/usr/pkgsrc/shells/bash/work/bash-5.0/lib  -I/usr/pkgsrc/shells/bash/work/bash-5.0/builtins  -c -o fdflags.o fdflags.c
fdflags.c: In function 'getflags':
fdflags.c:117:10: error: 'O_CLOEXEC' undeclared (first use in this function)
     f |= O_CLOEXEC;
          ^
fdflags.c:117:10: note: each undeclared identifier is reported only once for each function it appears in
fdflags.c: In function 'setone':
fdflags.c:202:14: error: 'O_CLOEXEC' undeclared (first use in this function)
   if ((pos & O_CLOEXEC) && (f & O_CLOEXEC) == 0)
              ^
*** Error code 1

Stop.


My mk.conf is:

.ifdef BSD_PKG_MK       # begin pkgsrc settings

ABI=                    32
PKGSRC_COMPILER=        gcc
GCCBASE=                /usr/pkg2/gcc49

PKG_DBDIR=              /usr/pkg/pkgdb
LOCALBASE=              /usr/pkg
VARBASE=                /var
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGINFODIR=             info
PKGMANDIR=              man

TOOLS_PLATFORM.install?=        ${LOCALBASE}/bin/bsdinstall
TOOLS_PLATFORM.awk?=            ${LOCALBASE}/bin/nawk
TOOLS_PLATFORM.sed?=            ${LOCALBASE}/bin/nbsed
TOOLS_PLATFORM.sh?=             /usr/bin/bash

 CFLAGS+=  -O2
DBG=                    # prevent DBG from adding default optimizer flags

# gcc49
PKG_OPTIONS.gcc49= gcc-c++ -gcc-fortran -gcc-go gcc-inplace-math -gcc-objc -gcc-objc++


X11_TYPE= modular
USE_INET6= no

PKG_OPTIONS.tnftp= -inet6
PKG_OPTIONS.xz= -nls
PKG_OPTIONS.cvs = -kerberos
PKG_OPTIONS.groff= -x11 -groff-docs
PKG_OPTIONS.gd= -x11
PKG_OPTIONS.apache= -http2

IS_BUILTIN.zlib= yes
USE_BUILTIN.zlib= no
PREFER.zlib= pkgsrc

USE_BUILTIN.bzip2= no
PREFER.bzip2= pkgsrc
USE_BZIP2= yes

ACCEPTABLE_LICENSES+=vim-license

CURSES_DEFAULT = ncurses

.endif                  # end pkgsrc settings
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index