Bug 192580

Summary: security/ossec-hids-server: Fix compile under 11.0 after switching readline to INTERNALLIB
Product: Ports & Packages Reporter: Oleg Ginzburg <olevole>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed FIXED    
Severity: Affects Some People CC: delphij
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
fix path to readline header none

Description Oleg Ginzburg 2014-08-11 13:46:59 UTC
Created attachment 145661 [details]
fix path to readline header

On http://svnweb.freebsd.org/base?view=revision&revision=268461, base system is no longer produce /usr/include/readline/*.h files which is essential for the building security/ossec-hids-server:

--
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c linit.c
ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o  lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o  ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o  lmathlib.o loslib.o lstrlib.o ltablib.o loadlib.o linit.o 
ranlib liblua.a
cc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX  -c lua.c
lua.c:67:10: fatal error: 'readline/readline.h' file not found
#include <readline/readline.h>
         ^
1 error generated.
*** Error code 1

Stop.
make[5]: stopped in /tmp/usr/ports/security/ossec-hids-server/work/ossec-hids-2.8/src/external/lua-5.2.3/src
--

We need to specify the correct path to searching header files in external/lua/Makefile (which is static)
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-11 14:48:20 UTC
over to maintainer.
Comment 2 Xin LI freebsd_committer freebsd_triage 2015-06-01 07:34:27 UTC
This is fixed by adamw@ as of r362689 and 365112.  Thanks for reporting.