Re: Trying to compile hping3 from sources #devtool


Khem Raj
 

On Sat, Nov 7, 2020 at 11:57 AM Muralidharan, Vaijayanthi
<vaijayanthi.muralidharan@hpe.com> wrote:

Khem,

Thanks for responding. I am trying to build hping3 from sources. There is only a bb recipe for hping2.
what is your failing recipe called (exact name )

´╗┐On 11/6/20, 9:42 PM, "Khem Raj" <raj.khem@gmail.com> wrote:

whats the name of your recipe ? secondly hping3 requires libtcl8.6.so
seems to be troublesome because its asking
for devel package not the original library, I wonder why, can you find
out the linker cmdline where ping3 is getting linked ?

On Fri, Nov 6, 2020 at 6:31 PM Vaijayanthi <vaijayanthi@silver-peak.com> wrote:
>
> Hi, I am using devtool add hping3 https://github.com/antirez/hping to add hping3 as part of our custom image. Here is my recipe:
>
> # Recipe created by recipetool
>
> # This is the basis of a recipe and may need further editing in order to be fully functional.
>
> # (Feel free to remove these comments when editing.)
>
>
>
> # WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
>
> # your responsibility to verify that the values are complete and correct.
>
> #
>
> # The following license files were not able to be identified and are
>
> # represented as "Unknown" below, you will need to check them yourself:
>
> # COPYING
>
> LICENSE = "GPLv2"
>
> LIC_FILES_CHKSUM = "file://COPYING;md5=3728a6c4c9630a9e796ad4b82dacd887"
>
>
>
> SRC_URI = "git://github.com/antirez/hping;protocol=https"
>
>
>
> # Modify these as desired
>
> PV = "1.0+git${SRCPV}"
>
> SRCREV = "3547c7691742c6eaa31f8402e0ccbb81387c1b99"
>
>
>
> S = "${WORKDIR}/git"
>
>
>
> #DEPENDS = "libpcap"
>
> RDEPENDS_${PN} += " libpcap tcl-lib tcl"
>
>
>
> # NOTE: no Makefile found, unable to determine what needs to be done
>
>
>
> do_configure () {
>
> # Specify any needed configure commands here
>
> CONFIGOSTYPE="LINUX" ./configure
>
> }
>
>
>
> do_compile () {
>
> # Specify compilation commands here
>
> make
>
> }
>
> do_install() {
>
> #install -Dm755 ${B}/libpcap.so.0.8 ${D}${libdir}/libpcap.so.0.8
>
> #ln -sf libpcap.so.0.8 ${D}${libdir}/libpcap.so
>
> #install -Dm755 ${B}/libtcl8.6.so ${D}${libdir}/libtcl8.6.so
>
> #ln -sf libtcl8.6.so ${D}${libdir}/libtcl8.6.so
>
> install -m 0755 -d ${D}${sbindir} ${D}/${mandir} ${D}${docdir}/hping3
>
> install -m 0755 hping3 ${D}/${sbindir}
>
> install -m 0644 docs/hping3.8 ${D}/${mandir}
>
> install -m 0644 docs/HPING2-HOWTO.txt docs/HPING2-IS-OPEN \
>
> docs/MORE-FUN-WITH-IPID docs/SPOOFED_SCAN.txt \
>
> docs/AS-BACKDOOR docs/APD.txt ${D}${docdir}/hping3
>
> }
>
>
>
> #INSANE_SKIP_${PN}-dev = "ldflags"
>
> #INSANE_SKIP_${PN} = "ldflags"
>
> #INSANE_SKIP_${PN} += "file-rdeps dev-deps"
>
>
> How do I add this to my custom bitbake layer? Also, make is complaining about
> ERROR: hping3-1.0+git999-r0 do_package_qa: QA Issue: /usr/sbin/hping3 contained in package hping3 requires libpcap.so.0.8()(64bit), but no providers found in RDEPENDS_hping3? [file-rdeps]
> ERROR: hping3-1.0+git999-r0 do_package_qa: QA Issue: /usr/sbin/hping3 contained in package hping3 requires libtcl8.6.so()(64bit), but no providers found in RDEPENDS_hping3? [file-rdeps]
> ERROR: hping3-1.0+git999-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
>
> Please let me know what I should I do next to integrate this recipe with my custom meta layer and also, address the make failures.
>
>
>
>
>

Join yocto@lists.yoctoproject.org to automatically receive all group messages.