Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548326 - sys-power/suspend-1.0 fails to compile with gcc-5.1
Summary: sys-power/suspend-1.0 fails to compile with gcc-5.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
Depends on:
Blocks: gcc-5
  Show dependency tree
Reported: 2015-05-01 10:49 UTC by Martin Väth
Modified: 2015-08-07 09:50 UTC (History)
1 user (show)

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

build log (sys-power:suspend-1.0:20150504-091637.log,29.78 KB, text/plain)
2015-05-04 09:19 UTC, Martin Väth

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2015-05-01 10:49:32 UTC
sys-power/suspend-1.0 fails to compile with gcc-5
Probably the most simple fix is to add -std=gnu90 to the CFLAGS
Comment 1 Martin Väth 2015-05-03 21:27:32 UTC
The build fails in the linking phase with

undefined reference to `open_printk'
(and several other undefined references).

Which is clear, becaues there is

loglevel.h:inline void open_printk(void);
loglevel.c:inline void open_printk(void)

which is valid for C90, but for new C dialects, this will inline the function and not export it.
Comment 2 Martin Väth 2015-05-04 09:19:27 UTC
Created attachment 402598 [details]
build log
Comment 3 Andrew Savchenko gentoo-dev 2015-08-07 09:50:01 UTC
Fixed in suspend-1.0_p20150622.