Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598617 - dev-util/bcc-0.2.0 fails to compile (bcc_elf.c:76:5: error: unknown type name ‘GElf_Nhdr’)
Summary: dev-util/bcc-0.2.0 fails to compile (bcc_elf.c:76:5: error: unknown type name...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2016-10-31 10:54 UTC by Thomas Stein
Modified: 2016-11-02 20:02 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,32.91 KB, application/octet-stream)
2016-10-31 10:55 UTC, Thomas Stein
Details
build_fail_libelf.log (build.log,3.91 KB, text/x-log)
2016-11-01 08:18 UTC, Tomáš Mózes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2016-10-31 10:54:19 UTC
Hello Devs.

I am not able to install dev-util/bcc-0.2.0. Compilation fails. See attached build.log

thanks and cheers

Reproducible: Always
Comment 1 Thomas Stein 2016-10-31 10:55:21 UTC
Created attachment 451977 [details]
build.log
Comment 2 Tomáš Mózes 2016-11-01 08:18:31 UTC
Created attachment 452064 [details]
build_fail_libelf.log

My failed without libelf installed, but then passed ok.
Comment 4 Zac Medico gentoo-dev 2016-11-01 16:15:01 UTC
(In reply to Thomas Stein from comment #1)
> Created attachment 451977 [details]
> build.log

Made it require at least elfutils-0.166 which declares GElf_Nhdr in /usr/include/gelf.h: 

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6036965c7e48128532daae1218dc58d0c8548cc
Comment 5 Thomas Stein 2016-11-02 09:25:50 UTC
Hello Zac.

I guess there is need for another adjustment. HAVE_BPF_JIT does not exist anymore on newer kernels. https://patchwork.ozlabs.org/patch/622081/

cheers
t.
Comment 6 Zac Medico gentoo-dev 2016-11-02 20:02:38 UTC
(In reply to Thomas Stein from comment #5)
> Hello Zac.
> 
> I guess there is need for another adjustment. HAVE_BPF_JIT does not exist
> anymore on newer kernels. https://patchwork.ozlabs.org/patch/622081/
> 
> cheers
> t.

Thanks, this should fix it:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e087d7a86951946c6fc75f272a476f7dc7771ea