[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: signbit(), C++, and Solaris 10
From: |
G. Branden Robinson |
Subject: |
Re: signbit(), C++, and Solaris 10 |
Date: |
Fri, 6 Dec 2024 12:40:32 -0600 |
Hi Jeff,
At 2024-12-06T13:19:27-0500, Jeffrey Walton wrote:
> On Fri, Dec 6, 2024 at 1:16 PM G. Branden Robinson
> <g.branden.robinson@gmail.com> wrote:
> >
> > At 2024-12-06T16:49:13+0000, Colin Watson wrote:
> > > On Fri, Dec 06, 2024 at 06:04:57AM -0600, G. Branden Robinson wrote:
> > > > Is there something I can specify to "configure" or make(1) to
> > > > override gnulib's decision here?
> > >
> > > While I have no expertise with Solaris 10 in particular, passing
> > > `gl_cv_func_signbit=yes` as a `./configure` argument ought to override
> > > Gnulib's decision to supply a replacement.
> >
> > For some reason, it doesn't. :(
>
> Try `gl_cv_func_signbit=no` since you don't want to activate the code path.
Thanks. Weirdly, neither setting makes a difference. The build fails
in the same spot for the same reason if this setting is "yes", "no", or
absent.
gmake[2]: Entering directory '/export/home/gbranden/groff-1.23.0.2599-3cde9'
CXX src/devices/grodvi/dvi.o
In file included from src/devices/grodvi/dvi.cpp:25:0:
./lib/math.h: In function ‘bool signbit(float)’:
./lib/math.h:3281:1: error: ‘bool signbit(float)’ conflicts with a previous
declaration
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)
^
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:23:0,
from ./lib/math.h:46,
from src/devices/grodvi/dvi.cpp:25:
/usr/include/iso/math_c99.h:688:14: note: previous declaration ‘bool
std::signbit(float)’
inline bool signbit(float __X) { return __builtin_signbitf(__X); }
^
In file included from src/devices/grodvi/dvi.cpp:25:0:
./lib/math.h: In function ‘bool signbit(double)’:
./lib/math.h:3281:1: error: ‘bool signbit(double)’ conflicts with a previous
declaration
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)
^
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:23:0,
from ./lib/math.h:46,
from src/devices/grodvi/dvi.cpp:25:
/usr/include/iso/math_c99.h:712:14: note: previous declaration ‘bool
std::signbit(double)’
inline bool signbit(double __X) { return __builtin_signbit(__X); }
^
In file included from src/devices/grodvi/dvi.cpp:25:0:
./lib/math.h: In function ‘bool signbit(long double)’:
./lib/math.h:3281:1: error: ‘bool signbit(long double)’ conflicts with a
previous declaration
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)
^
In file included from
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.5.0/include-fixed/math.h:23:0,
from ./lib/math.h:46,
from src/devices/grodvi/dvi.cpp:25:
/usr/include/iso/math_c99.h:736:14: note: previous declaration ‘bool
std::signbit(long double)’
inline bool signbit(long double __X) { return __builtin_signbitl(__X); }
^
gmake[2]: *** [Makefile:9134: src/devices/grodvi/dvi.o] Error 1
gmake[2]: Leaving directory '/export/home/gbranden/groff-1.23.0.2599-3cde9'
gmake[1]: *** [Makefile:11284: all-recursive] Error 1
gmake[1]: Leaving directory '/export/home/gbranden/groff-1.23.0.2599-3cde9'
gmake: *** [Makefile:6714: all] Error 2
*** installation directories are NOT clean (.../info/dir is OK)
Attaching my build script.
I run it with "bash ../go" to avoid Solaris 10 /bin/sh, the World's
Worst Shell.
Regards,
Branden
go
Description: Text document
signature.asc
Description: PGP signature
- Re: signbit(), C++, and Solaris 10, G. Branden Robinson, 2024/12/06
- Re: signbit(), C++, and Solaris 10, G. Branden Robinson, 2024/12/06
- Re: signbit(), C++, and Solaris 10, Colin Watson, 2024/12/06
- Re: signbit(), C++, and Solaris 10, G. Branden Robinson, 2024/12/06
- Re: signbit(), C++, and Solaris 10, Jeffrey Walton, 2024/12/06
- Re: signbit(), C++, and Solaris 10,
G. Branden Robinson <=
- Re: signbit(), C++, and Solaris 10, Jeffrey Walton, 2024/12/06