Am Thu, Feb 24, 2022 at 08:17:30AM -0500 schrieb Greg Troxel: > > Joerg Sonnenberger <jo...@bec.de> writes: > > > Am Thu, Feb 24, 2022 at 07:59:22AM -0500 schrieb Greg Troxel: > >> > >> I'm trying to build wip/ocaml on NetBSD 9 amd64 and came across: > >> > >> gcc -c -O2 -fno-strict-aliasing -fwrapv -pthread -Wall > >> -Wdeclaration-after-statement -Werror -fno-common > >> -fexcess-precision=standard -fno-tree-vrp -fPIC -ffunction-sections -g -O2 > >> -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include -D_FILE_OFFSET_BITS=64 > >> -DCAML_NAME_SPACE -DCAMLDLLIMPORT= -I/usr/include -o floats.b.o floats.c > >> floats.c: In function 'caml_copysign': > >> floats.c:1074:10: error: implicit declaration of function 'copysign' > >> [-Werror=implicit-function-declaration] > >> return copysign(x, y); > >> ^~~~~~~~ > >> floats.c:1074:10: error: incompatible implicit declaration of built-in > >> function 'copysign' [-Werror] > >> floats.c:1074:10: note: include '<math.h>' or provide a declaration of > >> 'copysign' > >> cc1: all warnings being treated as errors > >> gmake[2]: *** [Makefile:366: floats.b.o] Error 1 > > > > This was fixed in current almost exactly two years ago. > > And apparently not fixed in the releaase branch, which is what we expect > most people to run :-) > > Do you think it's wise to pullup of src/include/math.h 1.65-1.66? If > so, could you request it (since you obviously understand these details > better than I do)?
I dimly remember fixing a variety of errors in a number of header, e.g. https://anonhg.netbsd.org/src/rev/8baf60c04dc is the same kind of issue. I don't have the time to work on pullups. Joerg