asset-group / 5ghoul-5g-nr-attacks

GNU General Public License v2.0
484 stars 82 forks source link

build error #16

Closed qiqingh closed 6 months ago

qiqingh commented 6 months ago

Hello, I'm currently working on Ubuntu 18.04, with cmake version 3.24.1 and clang 15. However, I encounter an error when executing either './build.sh all' or './build.sh'. The error reads:

'ninja: Entering directory `build' ninja: error: '/home/Desktop/5ghoul-5g-nr-attacks/libs/wireshark/ui/qt/-silent', needed by 'libs/wireshark/ui/qt/-silent.qm', missing and no known rule to make it'

Interestingly, executing './build.sh dev' results in a successful build, but when I run bin/5g_fuzzer, it appears that 'hostapd/idemptables' is missing from './3rd-party/'. Can you confirm if the absence of './3rd-party/hostapd/idemptables' will been an issue?

Matheus-Garbelini commented 6 months ago

Hi @qiqingh ./build.sh without any arguments only works after at least one build is done with arguments all or dev.

The qt folder is failing on your system for some additional reason, can you send the complete build logs for the build.sh all so I can try to reproduce?

This idemtables is not an issue but I will need to add it in a later commit to avoid errors during execution. The container should contain this file however. You can also try disabling UEModemManager in this config file: https://github.com/asset-group/5ghoul-5g-nr-attacks/blob/e2e8c6d604b682eef537cd811b928cd5cfe1ab2d/configs/global_config.json#L320 (Change true to false)

I will let you know when I update the repo. with this idemtables script.

qiqingh commented 6 months ago

Hi @Matheus-Garbelini Thank you for your confirmation on idemtables.

Please find my build log in the attachment, thank you! log.txt

Matheus-Garbelini commented 6 months ago

Hi @qiqingh have you run command ./requirements.sh dev? I think this was missing from the readme. This will install all development packages to build 5ghoul fuzzer.

A successful build should output the following: image

qiqingh commented 6 months ago

@Matheus-Garbelini Thanks for your update! the problem get resolved. Thanks for your help!