Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942678 - net-im/spectrum2-2.2.1 - [ncurses-6.5] [meson] [libtool] /.../civil_time.h: error: redefinition of bool absl::lts_20240722::ParseCivilTime
Summary: net-im/spectrum2-2.2.1 - [ncurses-6.5] [meson] [libtool] /.../civil_time.h: e...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-01 18:11 UTC by Toralf Förster
Modified: 2025-02-02 07:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,21.52 KB, text/plain)
2024-11-01 18:11 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,110.93 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details
environment (environment,112.54 KB, text/plain)
2024-11-01 18:11 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,32.32 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,12.65 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details
net-im:spectrum2-2.2.1:20241101-173755.log.xz (net-im:spectrum2-2.2.1:20241101-173755.log.xz,37.18 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,119.73 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.04 KB, application/x-xz)
2024-11-01 18:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-11-01 18:11:24 UTC
/usr/include/absl/time/civil_time.h:515:55: error: c was not declared in this scope
  515 | bool ParseCivilTime(absl::string_view s, CivilSecond* c);
      |                                                       ^
/usr/include/absl/time/civil_time.h:515:56: error: expression list treated as compound expression in initializer [-fpermissive]
  515 | bool ParseCivilTime(absl::string_view s, CivilSecond* c);
      |                                                        ^
/usr/include/absl/time/civil_time.h:516:6: error: redefinition of bool absl::lts_20240722::ParseCivilTime
  516 | bool ParseCivilTime(absl::string_view s, CivilMinute* c);
      |      ^~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-20241017-150503

  UNMASKED:
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  <dev-build/meson-9999
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang version 19.1.3
llvm-config: 19.1.3
Python 3.12.7
go version go1.23.2 linux/amd64
  [1]   php8.3 *
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.82.0
  [2]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
3)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8

  HEAD of ::gentoo
commit dd4aa9a75b3b6af18cf7526867f0d5b96ae91d27
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 1 16:18:35 2024 +0000

    2024-11-01 16:18:34 UTC

emerge -qpvO =net-im/spectrum2-2.2.1
[ebuild  N    ] net-im/spectrum2-2.2.1  USE="sqlite -doc -frotz -irc -mysql -postgres -purple -sms -test -twitter -whatsapp -xmpp"
Comment 1 Toralf Förster gentoo-dev 2024-11-01 18:11:25 UTC
Created attachment 907570 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-01 18:11:26 UTC
Created attachment 907571 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-11-01 18:11:28 UTC
Created attachment 907572 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-01 18:11:28 UTC
Created attachment 907573 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-01 18:11:29 UTC
Created attachment 907574 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-01 18:11:30 UTC
Created attachment 907575 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-01 18:11:31 UTC
Created attachment 907576 [details]
net-im:spectrum2-2.2.1:20241101-173755.log.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-01 18:11:33 UTC
Created attachment 907577 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-11-01 18:11:34 UTC
Created attachment 907578 [details]
temp.tar.xz
Comment 10 Paul Zander 2024-11-01 18:33:56 UTC
>In file included from /usr/include/google/protobuf/stubs/common.h:21,
>from /usr/include/google/protobuf/io/coded_stream.h:108,
>from /var/tmp/portage/net-im/spectrum2-2.2.1/work/spectrum2-2.2.1/include/transport/protocol.pb.h:20,
>from /var/tmp/portage/net-im/spectrum2-2.2.1/work/spectrum2-2.2.1/include/transport/NetworkPlugin.h:25,
>from /var/tmp/portage/net-im/spectrum2-2.2.1/work/spectrum2-2.2.1/plugin/cpp/networkplugin.cpp:21:
>/usr/include/absl/strings/string_view.h:53:26: error: ‘string_view’ in namespace ‘std’ does not name a type
>53 | using string_view = std::string_view;
>|                          ^~~~~~~~~~~
>/usr/include/absl/strings/string_view.h:53:21: note: ‘std::string_view’ is only available from C++17 onwards
>53 | using string_view = std::string_view;
>|                     ^~~

Needs C++17 or higher with >=dev-cpp/abseil-cpp-20240722.0
Comment 11 Daniel Hiepler 2025-02-02 07:38:12 UTC
I encountered this aswell.

Changing 

+set(CMAKE_CXX_STANDARD 14)

to 

+set(CMAKE_CXX_STANDARD 17)

in files/spectrum2-2.2.1-use-c++14.patch fixes the issue.