Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 771582 - www-servers/mongrel2-1.11.0-r1 fails to compile with -fno-common
Summary: www-servers/mongrel2-1.11.0-r1 fails to compile with -fno-common
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: ~arch only
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2021-02-19 07:37 UTC by Agostino Sarubbo
Modified: 2021-02-20 19:31 UTC (History)
0 users

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


Attachments
build.log (build.log,71.11 KB, text/plain)
2021-02-19 07:37 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-02-19 07:37:15 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-servers/mongrel2-1.11.0-r1 fails to compile with -fno-common.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
To reproduce this issue you may want to set CFLAGS="${CFLAGS} -fno-common" or compile it with gcc-10 that enables -fno-common by default.
Comment 1 Agostino Sarubbo gentoo-dev 2021-02-19 07:37:18 UTC
Created attachment 687537 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-02-19 07:37:20 UTC
Possible context of error(s):

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(server.o):(.bss+0x8): multiple definition of `m2program'; src/mongrel2.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; src/mongrel2.o:(.bss+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: build/libm2.a(unixy.o):(.data.rel.local+0x0): multiple definition of `m2program'; build/libm2.a(server.o):(.bss+0x8): first defined here
collect2: error: ld returned 1 exit status
Comment 3 Larry the Git Cow gentoo-dev 2021-02-20 19:31:57 UTC
The bug has been closed via the following commit(s):

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

commit 648b4c87e4e8f669fa28ee0125ee8e11fe7b9b02
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-02-20 19:31:23 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-02-20 19:31:23 +0000

    www-servers/mongrel2: Port to EAPI 7
    
    Closes: https://github.com/gentoo/gentoo/pull/19559
    Closes: https://bugs.gentoo.org/771582
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/mongrel2-1.11.0-fno-common.patch         | 31 ++++++++++++++++++++++
 .../mongrel2-1.11.0-polarssl-platform-590512.patch |  8 +++---
 www-servers/mongrel2/mongrel2-1.11.0-r1.ebuild     | 29 +++++++++++++-------
 3 files changed, 55 insertions(+), 13 deletions(-)