Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878587 - net-irc/znc-1.8.2-r2 - /.../Modules.h:60: Error: Macro ZNC_EXPORT_LIB_EXPORT redefined,
Summary: net-irc/znc-1.8.2-r2 - /.../Modules.h:60: Error: Macro ZNC_EXPORT_LIB_EXPORT ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Louis Sautier (sbraz)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 21:08 UTC by Toralf Förster
Modified: 2023-02-07 14:27 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.52 KB, text/plain)
2022-10-28 21:08 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,32.83 KB, text/plain)
2022-10-28 21:08 UTC, Toralf Förster
Details
environment (environment,142.21 KB, text/plain)
2022-10-28 21:08 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,7.22 KB, application/x-bzip)
2022-10-28 21:08 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.47 KB, application/x-bzip)
2022-10-28 21:08 UTC, Toralf Förster
Details
net-irc:znc-1.8.2-r2:20221028-204520.log (net-irc:znc-1.8.2-r2:20221028-204520.log,32.32 KB, text/plain)
2022-10-28 21:08 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,35.11 KB, application/x-bzip)
2022-10-28 21:08 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 2022-10-28 21:08:23 UTC
too long lines were shrinked:

[44/777] cd /var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/modules/modperl && /usr/bin/swig -perl -c++ -shadow -external-runtime swigperlrun.h
[45/777] cd /var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/modules/modperl && /usr/bin/swig -perl -c++ -shadow -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/include -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2/include -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/
FAILED: modules/modperl/modperl_biglib.cpp modules/modperl/ZNC.pm /var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/modules/modperl/modperl_biglib.cpp /var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/modules/modperl/ZNC.pm 
cd /var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/modules/modperl && /usr/bin/swig -perl -c++ -shadow -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2_build/include -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2/include -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2
/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2/include/znc/Modules.h:60: Error: Macro 'ZNC_EXPORT_LIB_EXPORT' redefined,
:1: Error: previous definition of 'ZNC_EXPORT_LIB_EXPORT'.
[46/777] /usr/lib/llvm/15/bin/clang++ -DBOOST_CHRONO_DYN_LINK -DBOOST_CHRONO_NO_LIB -DBOOST_LOCALE_DYN_LINK -DBOOST_LOCALE_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -Dznc_EXPORTS -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/znc-1.8.2/include -I/var/tmp/portage/net-irc/znc-1.8.2-r2/work/zn

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-j4-20221028-160004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.3
Python 3.10.8
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit e52422124f6874f9a36ffae4d25284e8485d004f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Oct 28 20:02:03 2022 +0000

    2022-10-28 20:02:03 UTC

emerge -qpvO net-irc/znc
[ebuild  N    ] net-irc/znc-1.8.2-r2  USE="icu ipv6 nls perl ssl zlib -python -sasl -tcl -test" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-10-28 21:08:25 UTC
Created attachment 825753 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-28 21:08:26 UTC
Created attachment 825755 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-28 21:08:27 UTC
Created attachment 825757 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-28 21:08:28 UTC
Created attachment 825759 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-28 21:08:29 UTC
Created attachment 825761 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-28 21:08:31 UTC
Created attachment 825763 [details]
net-irc:znc-1.8.2-r2:20221028-204520.log
Comment 7 Toralf Förster gentoo-dev 2022-10-28 21:08:32 UTC
Created attachment 825765 [details]
temp.tar.bz2
Comment 8 Louis Sautier (sbraz) gentoo-dev 2022-11-05 01:47:04 UTC
CCing upstream, Alexey, are you aware of this?
Comment 9 Alexey 2022-11-05 01:57:57 UTC
Never saw such error, but I now reproduced it with dev-lang/swig-4.1.0
Comment 11 Larry the Git Cow gentoo-dev 2022-11-05 18:43:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a5aad2bf2e54dab53a598fa151baaa8dd1b1f0c

commit 9a5aad2bf2e54dab53a598fa151baaa8dd1b1f0c
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2022-11-05 17:15:58 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2022-11-05 18:35:20 +0000

    net-irc/znc: fix build with SWIG 4.1.0 and USE=perl/python
    
    Also always enable IPv6 as it doesn't require additional dependencies
    (pkgcheck warned of "UseFlagWithoutDeps").
    
    Closes: https://bugs.gentoo.org/878587
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 net-irc/znc/files/znc-1.8.2-fix-swig.patch | 43 ++++++++++++++++++++++++++++++
 net-irc/znc/znc-1.8.2-r2.ebuild            |  9 ++++---
 2 files changed, 48 insertions(+), 4 deletions(-)