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

Bug 548326

Summary: sys-power/suspend-1.0 fails to compile with gcc-5.1
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: [OLD] GCC PortingAssignee: Michael Weber (RETIRED) <xmw>
Severity: normal CC: bircoph
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: build log

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.