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

Bug 776775

Summary: app-misc/rlwrap-0.43: stabilisation (was: app-misc/rlwrap-0.42 fails with multiple definition of `slave_pty_sensing_fd')
Product: Gentoo Linux Reporter: Steven Trogdon <strogdon>
Component: StabilizationAssignee: Common Lisp Bugs <common-lisp>
Status: RESOLVED FIXED    
Severity: normal CC: sam, strogdon
Priority: Normal Keywords: CC-ARCHES
Version: unspecifiedFlags: nattka: sanity-check+
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
app-misc/rlwrap-0.43
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments:
Description Flags
emerge --info
none
build.log none

Description Steven Trogdon 2021-03-16 22:51:10 UTC
The failure appears to be gcc-10 related.

utils.c: In function ‘mirror_args’:
utils.c:758:6: warning: type of ‘command_pid’ defaults to ‘int’ [-Wimplicit-int]
  758 | void mirror_args(command_pid) {
      |      ^~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -DDATADIR=\"/usr/share\"  -march=native -O2 -pipe -c -o malloc_debug.o malloc_debug.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -DDATADIR=\"/usr/share\"  -march=native -O2 -pipe -c -o filter.o filter.c
x86_64-pc-linux-gnu-gcc -DDATADIR=\"/usr/share\"  -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o rlwrap main.o signals.o readline.o pty.o completion.o term.o ptytty.o utils.o string_utils.o malloc_debug.o filter.o  -lutil  -lreadline -ltinfo
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: pty.o:(.data+0x0): multiple definition of `slave_pty_sensing_fd'; main.o:(.bss+0x38): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:341: rlwrap] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-misc/rlwrap-0.42/work/rlwrap-0.42/src'
make[1]: *** [Makefile:604: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-misc/rlwrap-0.42/work/rlwrap-0.42'
make: *** [Makefile:519: all] Error 2
 * ERROR: app-misc/rlwrap-0.42::gentoo failed (compile phase):

The subject ebuild does compile with gcc-9.3 and app-misc/rlwrap-0.43 builds with gcc-10.2
Comment 1 Steven Trogdon 2021-03-16 22:56:34 UTC
Created attachment 691872 [details]
emerge --info
Comment 2 Steven Trogdon 2021-03-16 23:19:19 UTC
Created attachment 691878 [details]
build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-17 02:16:35 UTC
amd64 done
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-17 02:19:56 UTC
x86 done
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-17 02:21:44 UTC
ppc done

all arches done