Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871000 - net-misc/vncrec-0.2-r2 - (.text+<snip>): undefined reference to main
Summary: net-misc/vncrec-0.2-r2 - (.text+<snip>): undefined reference to main
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 19:40 UTC by Toralf Förster
Modified: 2022-10-11 05:10 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.59 KB, text/plain)
2022-09-17 19:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,64.47 KB, text/plain)
2022-09-17 19:41 UTC, Toralf Förster
Details
environment (environment,56.56 KB, text/plain)
2022-09-17 19:41 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.07 KB, application/x-bzip)
2022-09-17 19:41 UTC, Toralf Förster
Details
net-misc:vncrec-0.2-r2:20220917-181200.log (net-misc:vncrec-0.2-r2:20220917-181200.log,1.95 KB, text/plain)
2022-09-17 19:41 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.05 KB, application/x-bzip)
2022-09-17 19:41 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-09-17 19:40:59 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/vncrec-0.2-r2/work/vncrec-0.2 ...
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_hardened-j4-20220917-070004

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

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 following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit 0ea94cb571143075420d6c7a42d6462b66a5f9e3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 17:16:46 2022 +0000

    2022-09-17 17:16:46 UTC

emerge -qpvO net-misc/vncrec
[ebuild  N    ] net-misc/vncrec-0.2-r2
Comment 1 Toralf Förster gentoo-dev 2022-09-17 19:41:00 UTC
Created attachment 809119 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 19:41:01 UTC
Created attachment 809122 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-17 19:41:02 UTC
Created attachment 809125 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-17 19:41:03 UTC
Created attachment 809128 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-17 19:41:04 UTC
Created attachment 809131 [details]
net-misc:vncrec-0.2-r2:20220917-181200.log
Comment 6 Toralf Förster gentoo-dev 2022-09-17 19:41:05 UTC
Created attachment 809134 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-09-30 11:01:57 UTC
The bug has been closed via the following commit(s):

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

commit 9285641d626dfcade8228d08455a1d9be8256846
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-30 08:20:53 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-30 10:48:10 +0000

    net-misc/vncrec: 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.
    
    Ideally these packages need to be built another way or last rited,
    imake will just accumulate more problems.
    
    Closes: https://bugs.gentoo.org/871000
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 net-misc/vncrec/vncrec-0.2-r3.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 8 Larry the Git Cow gentoo-dev 2022-10-11 05:10:15 UTC
The bug has been referenced in the following commit(s):

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

commit 0491a4264baf9951dd726b96094459a7b3363b95
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-10-11 04:17:09 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-10-11 04:38:01 +0000

    net-misc/vncrec: further fix w/ upcoming clang16
    
    When last tested this package, did not know clang16 was newly enabling
    -Werror=incompatible-pointer-types yet and hadn't looked at this.
    
    Bit dodgy here given we don't know what the X11 headers want, i.e.
    _X_NORETURN could be set or not set, and an update could remove it
    from XtErrorhandler entirely (so passing it may break later) -- so
    pass -Wno-error instead (should be harmless in this case).
    
    Bug: https://bugs.gentoo.org/871000
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 net-misc/vncrec/vncrec-0.2-r3.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)