[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined references to "rpl_fclose" and "rpl_fflush"
From: |
Bruno Haible |
Subject: |
Re: undefined references to "rpl_fclose" and "rpl_fflush" |
Date: |
Fri, 21 Jan 2022 02:53:13 +0100 |
Am Montag, 17. Januar 2022, 22:10:04 CET schrieb Bjarni Ingi Gislason:
> Software: groff
>
> Adding some gnulib modules to "bootstrap.conf" after checking with
> module "posixcheck":
>
> close
> dup
> execvp
> fclose
> fdopen
> fflush
> fopen
> freopen
> malloc-posix
> nl_langinfo
> pclose
> perror
> pipe-posix
> popen
> realloc-posix
> strerror
> strsignal
> strtol
> tmpfile
>
> results in linker errors:
>
> make[1]: Entering directory '/home/bg/git/groff/build'
> CXX src/libs/libdriver/input.o
> CXX src/libs/libdriver/printer.o
> AR libdriver.a
> CXX src/libs/libgroff/libgroff_a-assert.o
> CXX src/libs/libgroff/libgroff_a-error.o
> CXX src/libs/libgroff/libgroff_a-font.o
> AR libgroff.a
> CXXLD grodvi
Works for me. I
- took groff git master
- added pkg.m4 to m4/ to avoid a broken 'configure' later,
- added an initialization of MOSTLYCLEANDIRS in Makefile.am,
- ran
./bootstrap --no-git --gnulib-srcdir=$GNULIB_SRCDIR --skip-po
where $GNULIB_SRCDIR references gnulib git master
- ran
./configure
make
and there is a 'grodvi' built by 'make'.
$ grep FCLOSE config.status
S["GL_GNULIB_MDA_FCLOSEALL"]="1"
S["GL_GNULIB_FCLOSE"]="1"
S["GL_COND_OBJ_FCLOSE_FALSE"]="#"
S["GL_COND_OBJ_FCLOSE_TRUE"]=""
S["REPLACE_FCLOSE"]="1"
S["HAVE_DECL_FCLOSEALL"]="1"
D["HAVE_DECL_FCLOSEALL"]=" 1"
D["GNULIB_TEST_FCLOSE"]=" 1"
$ grep FFLUSH config.status
S["GL_COND_OBJ_FFLUSH_FALSE"]="#"
S["GL_COND_OBJ_FFLUSH_TRUE"]=""
S["GL_GNULIB_FFLUSH"]="1"
S["REPLACE_FFLUSH"]="1"
D["FUNC_FFLUSH_STDIN"]=" 0"
D["FUNC_FFLUSH_STDIN"]=" 0"
D["FUNC_FFLUSH_STDIN"]=" 0"
D["GNULIB_FFLUSH"]=" 1"
D["GNULIB_TEST_FFLUSH"]=" 1"
D["FUNC_FFLUSH_STDIN"]=" 0"
Bruno