Summary: | sys-fs/bcache-tools-1.0.5: bcache-super-show.c:117: undefined reference to `crc64' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Walter <gentoo> |
Component: | [OLD] Core system | Assignee: | Justin Lecher (RETIRED) <jlec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hardened, jlec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 536984 | ||
Attachments: |
emerge --info
build log |
Created attachment 413658 [details]
build log
Is this something hardened specific? I cannot reproduce it here. (In reply to Justin Lecher from comment #2) > Is this something hardened specific? I cannot reproduce it here. Coming back to this, it's gcc-5.2.0 related since the problem vanishes if I switch to gcc-4.9.3. --- /usr/portage/sys-fs/bcache-tools/bcache-tools-1.0.8.ebuild +++ /usr/portage/sys-fs/bcache-tools/bcache-tools-1.0.8.ebuild @@ -22,7 +22,7 @@ tc-export CC sed \ -e '/^CFLAGS/s:-O2::' \ - -e '/^CFLAGS/s:-g::' \ + -e '/^CFLAGS/s:-g:-std=gnu89:' \ -i Makefile || die } Classic gnu89 vs c11 inline symbol differences. commit 8bddc4b710c6c9dc66efae65d705110f4702a4fb Author: Justin Lecher <jlec@gentoo.org> Date: Mon Dec 7 09:03:11 2015 +0100 sys-fs/bcache-tools: Set c standard during compilation Thanks Ted Tanberry for the fix Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562198 Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bddc4b710c6c9dc66efae65d705110f4702a4fb |
Created attachment 413656 [details] emerge --info On my hardened ~amd64 system with gcc-5.2.0 I see the following failure for bcache-tools. x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -ggdb -floop-interchange -floop-strip-mine -floop-block -finline-functions -Wall -std=gnu99 -Wl,-O1 -Wl,--as-needed bcache-super-show.c bcache.o `pkg-config --libs uuid` -o bcache-super-show /var/tmp/portage/sys-fs/bcache-tools-1.0.5/temp/ccbmMIPk.o: In function `main': /var/tmp/portage/sys-fs/bcache-tools-1.0.5/work/bcache-tools-1.0.5/bcache-super-show.c:117: undefined reference to `crc64' collect2: error: ld returned 1 exit status