Wireshark-dev: Re: [Wireshark-dev] compilation hangs on Ubuntu
Hi Eugène, The strace log shows that your Ubuntu 16.04 system has the "ninja" package installed, which is "a privilege escalation detection and prevention system for GNU/Linux hosts" (https://packages.ubuntu.com/xenial/admin/ninja).
It installs into /usr/sbin/ninja. Your build problem is caused by the presence of that "ninja" package on your system -- and the fact that you appear to be building wireshark as "root". While running as "root", your PATH contains /usr/sbin, and that entry appears before /usr/bin, so instead of cmake launching the ninja build tool (/usr/bin/ninja), it launches the ninja privilege escalation detection
tool (/usr/sbin/ninja), which busily monitors your /proc directory for evidence of system intrusion... but does not build Wireshark. 1900 access("/usr/sbin/ninja", R_OK) = 0 1900 stat("/usr/sbin/ninja", {st_mode=S_IFREG|0755, st_size=22872, ...}) = 0 [...] 1901 execve("/usr/sbin/ninja", ["/usr/sbin/ninja", "--version"], [/* 22 vars */] <unfinished ...> You should be able to resolve the issue by building Wireshark as a non-root user -- I don't think there is any need or reason to build as "root". As a regular user, your PATH should not contain /usr/sbin, and the ninja
intrusion-detection program will be ignored. cmake should then find and launch the ninja build tool correctly.
If you are not going to use the "ninja" privilege escalation detection program (for example, if it was installed by accident while you were looking for the "ninja-build" package), you can uninstall it by running "sudo
apt-get remove ninja", and that would resolve the build problem too. (Regardless, I would really advise not building as "root" unless you have a very good reason to do so!) Cheers, -- Darius From: Wireshark-dev <wireshark-dev-bounces@xxxxxxxxxxxxx> on behalf of Eugène Adell <eugene.adell@xxxxxxxxx> 2018-05-13 22:29 GMT+02:00 Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>:
|
- Follow-Ups:
- Re: [Wireshark-dev] compilation hangs on Ubuntu
- From: Eugène Adell
- Re: [Wireshark-dev] compilation hangs on Ubuntu
- References:
- [Wireshark-dev] compilation hangs on Ubuntu
- From: Eugène Adell
- Re: [Wireshark-dev] compilation hangs on Ubuntu
- From: Jakub Zawadzki
- Re: [Wireshark-dev] compilation hangs on Ubuntu
- From: Eugène Adell
- [Wireshark-dev] compilation hangs on Ubuntu
- Prev by Date: Re: [Wireshark-dev] dumpcap broken on mac?
- Next by Date: Re: [Wireshark-dev] compilation hangs on Ubuntu
- Previous by thread: Re: [Wireshark-dev] compilation hangs on Ubuntu
- Next by thread: Re: [Wireshark-dev] compilation hangs on Ubuntu
- Index(es):