bug-gnulib
[Top][All Lists]
Advanced

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

signbit(), C++, and Solaris 10


From: G. Branden Robinson
Subject: signbit(), C++, and Solaris 10
Date: Thu, 21 Nov 2024 21:01:54 -0600

Hi folks,

I'm trying to get the forthcoming groff release building on the
geriatric Solaris 10, something that worked as recently as July 2023.

I ran into the following problem.

    In file included from ./src/include/driver.h:25:0,
                     from src/devices/grodvi/dvi.cpp:25:
    ./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/include/driver.h:25,
                     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); }

Inspecting src/devices/grodvi/dvi.cpp, I saw that it had:

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

...but further checking revealed that src/include/driver.h did not.

However, adding it didn't solve the problem.

What can I do to overcome this?

Please reply to both lists; I'm not subscribed to bug-gnulib.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]