bug-gnulib
[Top][All Lists]
Advanced

[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: Tue, 18 Jan 2022 00:20:46 +0100

Bjarni Ingi Gislason wrote:
> Software: groff
> 
>   Adding some gnulib modules to "bootstrap.conf" after checking with
> module "posixcheck":

Glad to hear that the module 'posixcheck' still works fine! (I haven't
actually used it for more than 10 years.)

> 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

It would be helpful to show the actual link command, not an abbreviation
such as "CXXLD". That is, run "make V=1", not "make".

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

For analyzing a .a file, please use 'nm', not 'strings'. Especially
"nm libgroff.a | grep ' T '" and
"nm libgroff.a | grep ' U '".

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

Likewise.

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

It should work also with these modules included.

Bruno






reply via email to

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