bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* "GNULIB_STRERROR" redefined in single-configure package
@ 2020-10-25 14:21 Daiki Ueno
  2020-10-25 16:20 ` Bruno Haible
  0 siblings, 1 reply; 3+ messages in thread
From: Daiki Ueno @ 2020-10-25 14:21 UTC (permalink / raw)
  To: bug-gnulib

Hello,

In GnuTLS, we import Gnulib sources in two phases, first LGPL sources to
be linked with the library, and then GPL sources for the tools and
tests, something like following:

In bootstrap:

  gnulib-tool --extract-recursive-dependencies "$gnulib_modules"
  gnulib-tool --import --local-dir=src/gl/override --lib=libgnu_gpl --source-base=src/gl --m4-base=src/gl/m4 --doc-base=doc --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=ggl --without-tests --no-vc-files "$src_modules"

In configure.ac:

  gl_INIT
  ggl_INIT

It had worked until we added 'xalloc' to $src_modules, but now,
confdefs.h generated during the configure phase contains two definitions
of GNULIB_STRERROR and it prevents compilation with -Werror:

  configure:53786: gcc -o conftest -O0 -Wall -Werror -g3   conftest.c  -lev >&5
  conftest.c:412: error: "GNULIB_STRERROR" redefined [-Werror]
    412 | #define GNULIB_STRERROR 1
        | 
  conftest.c:305: note: this is the location of the previous definition
    305 | #define GNULIB_STRERROR IN_GNUTLS_GNULIB_TESTS
        | 
  cc1: all warnings being treated as errors

Could anyone shed some light on this?

Regards,
-- 
Daiki Ueno


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-26 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-25 14:21 "GNULIB_STRERROR" redefined in single-configure package Daiki Ueno
2020-10-25 16:20 ` Bruno Haible
2020-10-26 14:51   ` Daiki Ueno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).