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

Bug 870916

Summary: x11-misc/xtitle-1.0.4 - (.text+<snip>): undefined reference to main
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2
x11-misc:xtitle-1.0.4:20220917-164030.log

Description Toralf Förster gentoo-dev 2022-09-17 17:35:26 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/xtitle-1.0.4/work/xtitle-1.0.4 ...
imake -DUseInstalled -I/usr/lib64/X11/config
/usr/bin/x86_64-pc-linux-gnu-ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib64/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/bin/xmkmf: line 53:    40 Aborted                 imake $imake_defines $args

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220917-010004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3.90

  HEAD of ::gentoo
commit 27e349751fc08f79c6f96f84652edf0c93ba9a1f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 14:46:52 2022 +0000

    2022-09-17 14:46:52 UTC

emerge -qpvO x11-misc/xtitle
[ebuild  N    ] x11-misc/xtitle-1.0.4
Comment 1 Toralf Förster gentoo-dev 2022-09-17 17:35:27 UTC
Created attachment 808573 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 17:35:29 UTC
Created attachment 808576 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-17 17:35:30 UTC
Created attachment 808579 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-17 17:35:31 UTC
Created attachment 808582 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-17 17:35:32 UTC
Created attachment 808585 [details]
temp.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 17:35:33 UTC
Created attachment 808588 [details]
x11-misc:xtitle-1.0.4:20220917-164030.log
Comment 7 Larry the Git Cow gentoo-dev 2022-09-30 11:02:07 UTC
The bug has been closed via the following commit(s):

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

commit b0bc4c395b0db980013ffd2d4a0174ece2058b4d
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-30 09:42:35 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-30 10:48:13 +0000

    x11-misc/xtitle: force gcc -E for imake's generation
    
    Requires traditional cpp support and is broken in all sort of ways
    with clang-cpp / -E. Can still use clang & friends for everything else.
    
    Haven't looked closely for possible quirks, but this should be
    migrated to not use imake (builds nothing, just shell scripts).
    
    Closes: https://bugs.gentoo.org/870916
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-misc/xtitle/xtitle-1.0.4.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)