Make failed due to multiple definitions in zxing

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

 



Hello,

After "./g pull -r" and "make distclean && ./autogen.sh && make", I get the following errors (see attached file). I also tried "ccache -c" before, without success. I attached my autogen.input.

What did I make wrong?

Laurent


In file included from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.cpp:7:
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:19:12: error: multiple definition of ‘enum class ZXing::BarcodeFormat’
   19 | enum class BarcodeFormat
      |            ^~~~~~~~~~~~~
In file included from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/ReaderOptions.h:10,
                 from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Reader.h:9,
                 from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/aztec/AZReader.h:9,
                 from /home/laurent/devlibo/libo/external/zxing/inc/pch/precompiled_zxing.hxx:57:
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:19:12: note: previous definition here
   19 | enum class BarcodeFormat
      |            ^~~~~~~~~~~~~
In file included from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:9:
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:114:32: error: redefinition of ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, Flags<BarcodeFormat>::enum_type)’
  114 |         constexpr inline FLAGS operator|(FLAGS::enum_type e1, FLAGS::enum_type e2) noexcept { return FLAGS(e1) | e2; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:114:32: note: ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, Flags<BarcodeFormat>::enum_type)’ previously defined here
  114 |         constexpr inline FLAGS operator|(FLAGS::enum_type e1, FLAGS::enum_type e2) noexcept { return FLAGS(e1) | e2; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:115:32: error: redefinition of ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’
  115 |         constexpr inline FLAGS operator|(FLAGS::enum_type e, FLAGS f) noexcept { return f | e; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:115:32: note: ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’ previously defined here
  115 |         constexpr inline FLAGS operator|(FLAGS::enum_type e, FLAGS f) noexcept { return f | e; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:116:31: error: redefinition of ‘constexpr bool ZXing::operator==(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’
  116 |         constexpr inline bool operator==(FLAGS::enum_type e, FLAGS f) noexcept { return FLAGS(e) == f; } \
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:116:31: note: ‘constexpr bool ZXing::operator==(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’ previously defined here
  116 |         constexpr inline bool operator==(FLAGS::enum_type e, FLAGS f) noexcept { return FLAGS(e) == f; } \
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:117:31: error: redefinition of ‘constexpr bool ZXing::operator==(BarcodeFormats, Flags<BarcodeFormat>::enum_type)’
  117 |         constexpr inline bool operator==(FLAGS f, FLAGS::enum_type e) noexcept { return FLAGS(e) == f; }
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:117:31: note: ‘constexpr bool ZXing::operator==(BarcodeFormats, Flags<BarcodeFormat>::enum_type)’ previously defined here
  117 |         constexpr inline bool operator==(FLAGS f, FLAGS::enum_type e) noexcept { return FLAGS(e) == f; }
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
make[1]: *** [/home/laurent/devlibo/libo/solenv/gbuild/LinkTarget.mk:402 : /home/laurent/devlibo/libo/workdir/GenCxxObject/UnpackedTarball/zxing/core/src/BarcodeFormat.o] Erreur 1
make[1]: *** Attente des tâches non terminées....
In file included from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/GTIN.h:10,
                 from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/GTIN.cpp:7:
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:19:12: error: multiple definition of ‘enum class ZXing::BarcodeFormat’
   19 | enum class BarcodeFormat
      |            ^~~~~~~~~~~~~
In file included from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/ReaderOptions.h:10,
                 from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Reader.h:9,
                 from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/aztec/AZReader.h:9,
                 from /home/laurent/devlibo/libo/external/zxing/inc/pch/precompiled_zxing.hxx:57:
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:19:12: note: previous definition here
   19 | enum class BarcodeFormat
      |            ^~~~~~~~~~~~~
In file included from /home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:9:
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:114:32: error: redefinition of ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, Flags<BarcodeFormat>::enum_type)’
  114 |         constexpr inline FLAGS operator|(FLAGS::enum_type e1, FLAGS::enum_type e2) noexcept { return FLAGS(e1) | e2; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:114:32: note: ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, Flags<BarcodeFormat>::enum_type)’ previously defined here
  114 |         constexpr inline FLAGS operator|(FLAGS::enum_type e1, FLAGS::enum_type e2) noexcept { return FLAGS(e1) | e2; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:115:32: error: redefinition of ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’
  115 |         constexpr inline FLAGS operator|(FLAGS::enum_type e, FLAGS f) noexcept { return f | e; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:115:32: note: ‘constexpr ZXing::BarcodeFormats ZXing::operator|(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’ previously defined here
  115 |         constexpr inline FLAGS operator|(FLAGS::enum_type e, FLAGS f) noexcept { return f | e; } \
      |                                ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:116:31: error: redefinition of ‘constexpr bool ZXing::operator==(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’
  116 |         constexpr inline bool operator==(FLAGS::enum_type e, FLAGS f) noexcept { return FLAGS(e) == f; } \
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:116:31: note: ‘constexpr bool ZXing::operator==(Flags<BarcodeFormat>::enum_type, BarcodeFormats)’ previously defined here
  116 |         constexpr inline bool operator==(FLAGS::enum_type e, FLAGS f) noexcept { return FLAGS(e) == f; } \
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:117:31: error: redefinition of ‘constexpr bool ZXing::operator==(BarcodeFormats, Flags<BarcodeFormat>::enum_type)’
  117 |         constexpr inline bool operator==(FLAGS f, FLAGS::enum_type e) noexcept { return FLAGS(e) == f; }
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/Flags.h:117:31: note: ‘constexpr bool ZXing::operator==(BarcodeFormats, Flags<BarcodeFormat>::enum_type)’ previously defined here
  117 |         constexpr inline bool operator==(FLAGS f, FLAGS::enum_type e) noexcept { return FLAGS(e) == f; }
      |                               ^~~~~~~~
/home/laurent/devlibo/libo/workdir/UnpackedTarball/zxing/core/src/BarcodeFormat.h:51:1: note: in expansion of macro ‘ZX_DECLARE_FLAGS’
   51 | ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
      | ^~~~~~~~~~~~~~~~
make[1]: *** [/home/laurent/devlibo/libo/solenv/gbuild/LinkTarget.mk:398 : /home/laurent/devlibo/libo/workdir/GenCxxObject/UnpackedTarball/zxing/core/src/GTIN.o] Erreur 1
make: *** [Makefile:294 : build] Erreur 2
--enable-pch=full
--enable-icecream
--enable-dbgutil
--with-java
--with-help
--without-myspell-dicts
--enable-ext-nlpsolver
--without-doxygen
--with-lang=en-US fr
--with-jdk-home=/usr/lib/jvm/java-17-openjdk-amd64

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux