[Oisf-devel] problem with build / configure.ac on OpenBSD 5.9 -current
Andreas Herz
andi at geekosphere.org
Sat May 7 21:15:51 UTC 2016
On 07/05/16 at 17:37, Markus Lude wrote:
> On Sun, Apr 17, 2016 at 05:33:50PM +0200, Markus Lude wrote:
> > Hello,
> >
> > today I tried to build a package for suricata 3.0.1 on OpenBSD 5.9
> > -current.
> >
> > build stopped with:
> >
> > [...]
> > Making all in test
> > Making all in docs
> > Making all in src
> > make all-am
> > cc -DHAVE_CONFIG_H -I. -I/usr/obj/ports/suricata-3.0.1/suricata-3.0.1/src -I.. -I/usr/obj/ports/suricata-3.0.1/suricata-3.0.1/../libhtp/ -I/usr/local/include -I/usr/local/include/libnet-1.1 -I/usr/local/include/libnet-1.1 -I/usr/local/include/nspr -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -Wno-unused-parameter -std=gnu99 -DLOCAL_STATE_DIR=\"/var\" -ggdb -O0 -O2 -pipe -D__OpenBSD__ -MT alert-debuglog.o -MD -MP -MF .deps/alert-debuglog.Tpo -c -o alert-debuglog.o /usr/obj/ports/suricata-3.0.1/suricata-3.0.1/src/alert-debuglog.c
> > In file included from /usr/obj/ports/suricata-3.0.1/suricata-3.0.1/src/alert-debuglog.c:24:
> > /usr/obj/ports/suricata-3.0.1/suricata-3.0.1/src/suricata-common.h:336:21: error: htp/htp.h: No such file or directory
> >
> > suricata-common.h:
> >
> > 335
> > 336 #include <htp/htp.h>
> > 337 #include "threads.h"
> >
> > the following search path for includes above seems wrong:
> > -I/usr/obj/ports/suricata-3.0.1/suricata-3.0.1/../libhtp/
> >
> > it should be
> > -I/usr/obj/ports/suricata-3.0.1/suricata-3.0.1/libhtp/
> > instead, which exists.
> >
> >
> > Finally I stumbled upon this from configure.ac:
> >
> > 1232 if test "x$enable_non_bundled_htp" = "xno"; then
> > 1233 # test if we have a bundled htp
> > 1234 if test -d "$srcdir/libhtp"; then
> > 1235 AC_CONFIG_SUBDIRS([libhtp])
> > 1236 HTP_DIR="libhtp"
> > 1237 AC_SUBST(HTP_DIR)
> > 1238 HTP_LDADD="../libhtp/htp/libhtp.la"
> > 1239 AC_SUBST(HTP_LDADD)
> > 1240 # make sure libhtp is added to the includes
> > 1241 CPPFLAGS="-I${srcdir}/../libhtp/ ${CPPFLAGS}"
> > 1242
> >
> > why is the test for this block for $srcdir/libhtp and the include
> > search path added to CPPFLAGS is ${srcdir}/../libhtp/ ?
>
> no interest in fixing this?
We're interested but most of us are no *BSD users :)
I will try to test it and we will see what would be the best solution to
fix that without breaking other builds.
--
Andreas Herz
More information about the Oisf-devel
mailing list