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

Bug 646692

Summary: app-benchmarks/wrk-4.1.0 : src/wrk.h:13:10: fatal error: lua.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Vikraman (RETIRED) <vikraman>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-benchmarks:wrk-4.1.0:20180205-044909.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2
Patch to use pkg-config instead of making assumptions about paths.

Description Toralf Förster gentoo-dev 2018-02-05 18:35:41 UTC
CC src/wrk.c
In file included from src/wrk.c:3:0:
src/wrk.h:13:10: fatal error: lua.h: No such file or directory
 #include <lua.h>
          ^~~~~~~
compilation terminated.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_libressl-test_20180203-123634

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-benchmarks/wrk
[ebuild  N    ] app-benchmarks/wrk-4.0.2  USE="libressl"
Comment 1 Toralf Förster gentoo-dev 2018-02-05 18:35:44 UTC
Created attachment 517934 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-05 18:35:47 UTC
Created attachment 517936 [details]
app-benchmarks:wrk-4.1.0:20180205-044909.log
Comment 3 Toralf Förster gentoo-dev 2018-02-05 18:35:49 UTC
Created attachment 517938 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-02-05 18:35:52 UTC
Created attachment 517940 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-02-05 18:35:55 UTC
Created attachment 517942 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-02-05 18:35:58 UTC
Created attachment 517944 [details]
temp.tbz2
Comment 7 Oleg Korsak 2018-02-09 02:41:11 UTC
this package should have a dependency on dev-lang/lua. then it compiles fine
Comment 8 Dan Goodliffe 2018-02-12 19:26:52 UTC
The wrk Makefile appears to make assumptions about the paths of lua and openssl.
Specifically, case in point, that luajit isn't in /usr/include/luajit-2.0

I've made a patch for Makefile, which I'll attached, that removes the assumptions, and instead uses pkg-config for cflags and libs... which then builds and runs fine for me.
Comment 9 Dan Goodliffe 2018-02-12 19:27:59 UTC
Created attachment 519270 [details, diff]
Patch to use pkg-config instead of making assumptions about paths.
Comment 10 Vikraman (RETIRED) gentoo-dev 2018-02-16 07:01:33 UTC
Thanks, I have updated it with the lua dependency, and a patch for the Makefile.

commit fad10b987b46a7c062dc561430ca8f04a6ce0eba
Author: Vikraman Choudhury <vikraman@gentoo.org>
Date:   4 hours ago

    app-benchmarks/wrk: Fix lua dep and patch Makefile

    X-Gentoo-Bug: 646692
    X-Gentoo-Bug-Url: https://bugs.gentoo.org/646692
    Package-Manager: Portage-2.3.13, Repoman-2.3.3