Change in "bootstrap.conf" (local file).

# "putenv" changed to "putenv-gnu" as the former is deprecated.


[...]
  CXXLD    grn
/usr/bin/ld: src/preproc/grn/main.o: warning: relocation against
`groff_optopt' in read-only section `.text.startup'
/usr/bin/ld: src/preproc/grn/main.o: in function `main':
main.cpp:(.text.startup+0x1c1): undefined reference to `groff_optopt'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:8710: grn] Error 1
make[2]: Leaving directory '/home/bg/git/groff/build'
make[1]: *** [Makefile:14630: all-recursive] Error 1
make[1]: Leaving directory '/home/bg/git/groff/build'
make: *** [Makefile:7824: all] Error 2


  Probably caused by

Updating file gnulib_m4/realloc.m4 (backup in gnulib_m4/realloc.m4~)
Updating file lib/realloc.c (backup in lib/realloc.c~)

  which is not (yet) used in the master repository.

  Fixed in my local version of groff by adding

#include <config.h> // for getopt.h
#include <getopt.h>

  to src/preproc/grn/main.cpp.

Reply via email to