pkgsrc-Users archive

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

gettext-tools build errors out on >= 2023Q1 for sparc



Hello all,

Not that it matters, but I was trying to build bash on sparc (running 9.3).  gettext-tools is one of the build dependencies (I’m pretty sure it’s a depend. for many things…)

On 2023Q1-ish trees it dies with the errors at the bottom of this message.  I just built it successfully on a 2022Q4 tree.

2023Q1 on amd64 builds fine.

Here are some links to what very much looks like similar if not same issues.  These are on macOS (Fink, Brew) but nevertheless the file, and errors are nearly identical:

https://github.com/fink/fink/issues/197

https://discourse.brew.sh/t/mac-os-10-15-catalina-issues/5001/24

What makes me really scratch my head - is if I can’t build it - how did this get built:

http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/sparc/9.0_2023Q1/All/gettext-tools-0.21.1.tgz

Thanks in advance for any info.

—
gettext-tools/work/.buildlink/include -O2 -D_FORTIFY_SOURCE=2 -c ftello.c  -fPIC -DPIC -o .libs/
ftello.o
ftello.c: In function 'rpl_ftello':
ftello.c:122:12: error: 'FILE {aka struct __sFILE}' has no member named '_flag'; did you mean '_
flags'?
   if (fp_->_flag & _IOWRT)
            ^~~~~
            _flags
ftello.c:122:20: error: '_IOWRT' undeclared (first use in this function); did you mean '_IOFBF'?
   if (fp_->_flag & _IOWRT)
                    ^~~~~~
                    _IOFBF
ftello.c:122:20: note: each undeclared identifier is reported only once for each function it app
ears in
ftello.c:133:21: error: 'FILE {aka struct __sFILE}' has no member named '_flag'; did you mean '_
flags'?
           if ((fp_->_flag & _IONBF) == 0 && fp_->_base != NULL)
                     ^~~~~
                     _flags
ftello.c:133:48: error: 'FILE {aka struct __sFILE}' has no member named '_base'
           if ((fp_->_flag & _IONBF) == 0 && fp_->_base != NULL)
                                                ^~
ftello.c:134:25: error: 'FILE {aka struct __sFILE}' has no member named '_ptr'; did you mean '_p
'?
             pos += fp_->_ptr - fp_->_base;
                         ^~~~
                         _p
ftello.c:134:35: error: 'FILE {aka struct __sFILE}' has no member named '_base'
             pos += fp_->_ptr - fp_->_base;
                                   ^~
*** Error code 1

Stop.
make[5]: stopped in /usr/pkgsrc/devel/gettext-tools/work/gettext-0.21.1/gettext-tools/gnulib-lib
*** Error code 1





Home | Main Index | Thread Index | Old Index