All of lore.kernel.org
 help / color / mirror / Atom feed
* Help creating a recipe for bro (zeek)
@ 2020-10-01 12:25 seshu.pyla
  2020-10-02  6:30 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: seshu.pyla @ 2020-10-01 12:25 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3186 bytes --]

Hi all,

I am creating recipe for the bro version 2.5.5.

==============================================================================
SUMMARY = "Passive network traffic analyzer"
HOMEPAGE = "http://www.bro.org"

LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=7ffedb422684eb346c1fb5bb8fc5fe45"

inherit debian-package
require recipes-debian/sources/bro.inc
inherit autotools cmake pythonnative
DEBIAN_UNPACK_DIR = "${WORKDIR}/bro-${PV}-minimal"
S = "${WORKDIR}/bro-${PV}-minimal"

#It will look for and find the binary in sysroot bin directory.
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
EXTRA_OECMAKE += "-DOPENSSL_CORRECT_VERSION_NUMBER=TRUE "

DEPENDS += "bind binpac-native openssl  libpcap swig-native  bison-native flex-native zlib sed-native"

RDEPENDS_${PN} += "bash bind libpcap openssl zlib python"

BBCLASSEXTEND = "native nativesdk"
==============================================================================

I got the below error while building:
==============================================================================
| DEBUG: Executing shell function do_compile
| NOTE: VERBOSE=1 cmake --build /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build --target all -- -j 4
| [1/785] [BIFCL] Processing event.bif
| FAILED: src/event.bif.func_def src/event.bif.func_h src/event.bif.func_init src/event.bif.netvar_def src/event.bif.netvar_h src/event.bif.netvar_init scripts/base/bif/event.bif.bro
| cd /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src && bifcl /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/bro-2.5.5-minimal/src/event.bif || ( rm -f /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.func_def /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.func_h /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.func_init /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.netvar_def /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.netvar_h /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.netvar_init && exit 1 ) && /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/recipe-sysroot-native/usr/bin/cmake -E copy event.bif.bro /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/scripts/base/bif/event.bif.bro && /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/recipe-sysroot-native/usr/bin/cmake -E remove -f event.bif.bro
| /bin/sh: 1: bifcl: not found
==============================================================================

I did not get why 'bifcl' is not foud, i have checked inside folder 'build/src/' the binary is present.
I have debugged with command `bitbake -d devshell bro`
even there i have got the same error even the binary file is exist
also checked the 'file bifcl' inside devshell, below is the output
bifcl: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9165d27cdaa9bfe77fb8a72081302b0469feda72, with debug_info, not stripped

can any one has suggestion for me?

Thanks
seshu

[-- Attachment #2: Type: text/html, Size: 3414 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [yocto] Help creating a recipe for bro (zeek)
  2020-10-01 12:25 Help creating a recipe for bro (zeek) seshu.pyla
@ 2020-10-02  6:30 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2020-10-02  6:30 UTC (permalink / raw)
  To: seshu.pyla; +Cc: yocto

On Thu, Oct 1, 2020 at 5:25 AM <seshu.pyla@gmail.com> wrote:
>
> Hi all,
>
> I am creating recipe for the bro version 2.5.5.
>
> ==============================================================================
> SUMMARY = "Passive network traffic analyzer"
> HOMEPAGE = "http://www.bro.org"
>
> LICENSE = "GPL-2.0"
> LIC_FILES_CHKSUM = "file://COPYING;md5=7ffedb422684eb346c1fb5bb8fc5fe45"
>
> inherit debian-package
> require recipes-debian/sources/bro.inc
> inherit autotools cmake pythonnative
> DEBIAN_UNPACK_DIR = "${WORKDIR}/bro-${PV}-minimal"
> S = "${WORKDIR}/bro-${PV}-minimal"
>
> #It will look for and find the binary in sysroot bin directory.
> OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"
> EXTRA_OECMAKE += "-DOPENSSL_CORRECT_VERSION_NUMBER=TRUE "
>
> DEPENDS += "bind binpac-native openssl  libpcap swig-native  bison-native flex-native zlib sed-native"
>
> RDEPENDS_${PN} += "bash bind libpcap openssl zlib python"
>
> BBCLASSEXTEND = "native nativesdk"
> ==============================================================================
>
> I got the below error while building:
> ==============================================================================
> | DEBUG: Executing shell function do_compile
> | NOTE: VERBOSE=1 cmake --build /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build --target all -- -j 4
> | [1/785] [BIFCL] Processing event.bif
> | FAILED: src/event.bif.func_def src/event.bif.func_h src/event.bif.func_init src/event.bif.netvar_def src/event.bif.netvar_h src/event.bif.netvar_init scripts/base/bif/event.bif.bro
> | cd /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src && bifcl /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/bro-2.5.5-minimal/src/event.bif || ( rm -f /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.func_def /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.func_h /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.func_init /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.netvar_def /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.netvar_h /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/src/event.bif.netvar_init && exit 1 ) && /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/recipe-sysroot-native/usr/bin/cmake -E copy event.bif.bro /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/build/scripts/base/bif/event.bif.bro && /work/build/tmp/work/core2-64-deby-linux/bro/2.5.5-r0/recipe-sysroot-native/usr/bin/cmake -E remove -f event.bif.bro
> | /bin/sh: 1: bifcl: not found

you need bifcl compiler perhaps cross compiler, so you might need to
build bro-native and add bro-native to depends for bro recipe.

> ==============================================================================
>
> I did not get why 'bifcl' is not foud, i have checked inside folder 'build/src/' the binary is present.
> I have debugged with command `bitbake -d devshell bro`
> even there i have got the same error even the binary file is exist
> also checked the 'file bifcl' inside devshell, below is the output
> bifcl: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9165d27cdaa9bfe77fb8a72081302b0469feda72, with debug_info, not stripped
>
> can any one has suggestion for me?
>
> Thanks
> seshu
> 
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-02  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 12:25 Help creating a recipe for bro (zeek) seshu.pyla
2020-10-02  6:30 ` [yocto] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.