Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 707778

Summary: net-fs/smbtad-1.2.6 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: ~arch only
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-fs:smbtad-1.2.6:20200201-152116.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-01 15:23:26 UTC
      |   ^~~~~~~
[100%] Linking C executable smbtad
/usr/bin/cmake -E cmake_link_script CMakeFiles/smbtad.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/smbtad.dir/src/main.c.o CMakeFiles/smbtad.dir/src/configuration.c.o CMakeFiles/smbtad.dir/src/help.c.o CMakeFiles/smbtad.dir/src/daemon.c.o CMakeFiles/smbtad.dir/src/connection_list.c.o CMakeFiles/smbtad.dir/src/network.c.o CMakeFiles/smbtad.dir/src/protocol.c.o CMakeFiles/smbtad.dir/src/cache.c.o CMakeFiles/smbtad.dir/src/query_list.c.o CMakeFiles/smbtad.dir/src/database.c.o CMakeFiles/smbtad.dir/src/crypto/aes.c.o CMakeFiles/smbtad.dir/src/crypto/rijndael-alg-fst.c.o CMakeFiles/smbtad.dir/src/monitor-list.c.o  -o smbtad  -ldbi -liniparser -ltalloc -ltalloc -liniparser -lpthread -ldl 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/smbtad.dir/src/configuration.c.o:(.bss+0x28): multiple definition of `DO_MAINTENANCE'; CMakeFiles/smbtad.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/smbtad.dir/src/configuration.c.o:(.bss+0x40): multiple definition of `database_access'; CMakeFiles/smbtad.dir/src/main.c.o:(.bss+0x20): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl-20200125-232521

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 14:48:30 +0000

emerge -qpvO net-fs/smbtad
[ebuild  N    ] net-fs/smbtad-1.2.6
Comment 1 Toralf Förster gentoo-dev 2020-02-01 15:23:29 UTC
Created attachment 610490 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 15:23:32 UTC
Created attachment 610492 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-01 15:23:35 UTC
Created attachment 610494 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-01 15:23:37 UTC
Created attachment 610496 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-01 15:23:40 UTC
Created attachment 610498 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-01 15:23:43 UTC
Created attachment 610500 [details]
net-fs:smbtad-1.2.6:20200201-152116.log
Comment 7 Toralf Förster gentoo-dev 2020-02-01 15:23:45 UTC
Created attachment 610502 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-21 11:46:29 UTC
*** Bug 721050 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2021-02-27 06:19:45 UTC
The bug has been closed via the following commit(s):

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

commit eb437d523be016555c89ba66b6b09977d62c75fc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-27 05:53:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-27 06:19:32 +0000

    net-fs/smbtad: fix gcc 10 build
    
    Closes: https://bugs.gentoo.org/707778
    Package-Manager: Portage-3.0.15, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 net-fs/smbtad/smbtad-1.2.6.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)