Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646692 - app-benchmarks/wrk-4.1.0 : src/wrk.h:13:10: fatal error: lua.h: No such file or directory
Summary: app-benchmarks/wrk-4.1.0 : src/wrk.h:13:10: fatal error: lua.h: No such file ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Vikraman (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2018-02-05 18:35 UTC by Toralf Förster
Modified: 2018-02-16 07:01 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.73 KB, text/plain)
2018-02-05 18:35 UTC, Toralf Förster
Details
app-benchmarks:wrk-4.1.0:20180205-044909.log (app-benchmarks:wrk-4.1.0:20180205-044909.log,1.72 KB, text/plain)
2018-02-05 18:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,57.05 KB, text/plain)
2018-02-05 18:35 UTC, Toralf Förster
Details
environment (environment,72.11 KB, text/plain)
2018-02-05 18:35 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.78 KB, application/x-bzip)
2018-02-05 18:35 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,18.04 KB, application/x-bzip)
2018-02-05 18:35 UTC, Toralf Förster
Details
Patch to use pkg-config instead of making assumptions about paths. (pkg-config.patch,661 bytes, patch)
2018-02-12 19:27 UTC, Dan Goodliffe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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