Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649596 - sys-fs/dd-rescue-1.46: build fails, sys-fs/dd-rescue-1.46
Summary: sys-fs/dd-rescue-1.46: build fails, sys-fs/dd-rescue-1.46
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-05 06:25 UTC by Thomas
Modified: 2018-03-05 08:21 UTC (History)
0 users

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


Attachments
patch to fix the build error described above (dd_rescue.c.patch,357 bytes, patch)
2018-03-05 06:27 UTC, Thomas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2018-03-05 06:25:38 UTC
sys-fs/dd-rescue-1.46 fails to build on my system, maybe a new issue related to the switch to gcc.7.3, which seems to be stricter.

Reproducible: Always

Steps to Reproduce:
1. emerge -uv sys-fs/dd-rescue

Actual Results:  
dd_rescue.c:312:9: warning: 'fmt_int' is static but used in inline function 'fmt_kiB' which is not static
  return fmt_int(0, 1, 1024, no, (col? BOLD: ""), (col? NORM: ""), 1);
         ^~~~~~~
/tmp/portage/sys-fs/dd-rescue-1.46/temp/ccn63StJ.o: In function `sanitize_and_prepare':
/tmp/portage/sys-fs/dd-rescue-1.46/work/dd_rescue/dd_rescue.c:2750: undefined reference to `fmt_kiB'
/tmp/portage/sys-fs/dd-rescue-1.46/temp/ccn63StJ.o: In function `main':
/tmp/portage/sys-fs/dd-rescue-1.46/work/dd_rescue/dd_rescue.c:2878: undefined reference to `fmt_kiB'
collect2: error: ld returned 1 exit status
make: *** [Makefile:204: dd_rescue] Error 1
 * ERROR: sys-fs/dd-rescue-1.46::gentoo failed (compile phase):
 *   emake failed
Comment 1 Thomas 2018-03-05 06:27:42 UTC
Created attachment 522426 [details, diff]
patch to fix the build error described above

this little patch made it work for me
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-03-05 08:21:46 UTC
Why do you mix stable dd-rescue with unstable gcc?

Unstable dd-rescue builds fine with gcc-7.3 so I don't see any reason to patch the stable version.