bug-gnulib
[Top][All Lists]
Advanced

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

undefined references to "rpl_fclose" and "rpl_fflush"


From: Bjarni Ingi Gislason
Subject: undefined references to "rpl_fclose" and "rpl_fflush"
Date: Mon, 17 Jan 2022 21:10:04 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

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
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`text_file::~text_file()':
/home/bg/git/groff/build/../src/libs/libgroff/font.cpp:102: undefined
reference to `rpl_fclose'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`assertion_failed(int, char const*, char const*, char const*)':
/home/bg/git/groff/build/../src/libs/libgroff/assert.cpp:37: undefined
reference to `rpl_fflush'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`font::scan_papersize(char const*, char const**, double*, double*)':
/home/bg/git/groff/build/../src/libs/libgroff/font.cpp:774: undefined
reference to `rpl_fclose'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`do_error_with_file_and_line(char const*, char const*, int, error_type,
char const*, errarg const&, errarg const&, errarg const&)':
/home/bg/git/groff/build/../src/libs/libgroff/error.cpp:83: undefined
reference to `rpl_fflush'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`printer::~printer()':
/home/bg/git/groff/build/../src/libs/libdriver/printer.cpp:95: undefined
reference to `rpl_fflush'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function `do_file(char
const*)':
/home/bg/git/groff/build/../src/libs/libdriver/input.cpp:1827: undefined
reference to `rpl_fclose'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function `do_file(char
const*)':
/home/bg/git/groff/build/../src/libs/libgroff/font.cpp:102: undefined
reference to `rpl_fclose'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`font::load(bool)':
/home/bg/git/groff/build/../src/libs/libgroff/font.cpp:102: undefined
reference to `rpl_fclose'
/usr/bin/ld: /tmp/ccwhBA9z.ltrans0.ltrans.o: in function
`do_error_with_file_and_line(char const*, char const*, int, error_type,
char const*, errarg const&, errarg const&, errarg const&)':
/home/bg/git/groff/build/../src/libs/libgroff/error.cpp:83: undefined
reference to `rpl_fflush'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:7506: grodvi] Error 1
make[1]: Leaving directory '/home/bg/git/groff/build'
make: *** [Makefile:6763: all] Error 2

  This is both without and with "#include <config.h>" as the first
include statement in "assert.cpp", "error.cpp", "font.cpp", "input.cpp",
and "printer.cpp".

  The file "build/libgroff.a" contains these "rpl_" strings:

rpl_fprintf
rpl_fflush
rpl_fprintf
rpl_fflush
rpl_fprintf
rpl_fprintf
rpl_fprintf
rpl_fflush
rpl_fflush
rpl_fclose
rpl_fclose
rpl_fprintf
Urpl_fprintf
.gnu.lto_rpl_fprintf.46.a0e291f44b54f74a
rpl_fprintf
rpl_fprintf
rpl_fclose
rpl_fclose
rpl_fprintf
rpl_fprintf

  The file "build/libdriver.a" contains these "rpl_" strings

rpl_fclose
rpl_fclose
rpl_fflush
rpl_fflush


  Compilation is normal if I remove the modules "fclose" and "fflush"
from "bootstrap.conf".

-- 
Bjarni I. Gislason



reply via email to

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