systemd / systemd-netlogd

Forwards messages from the journal to other hosts over the network using syslog format RFC 5424 and RFC 3164
GNU General Public License v2.0
69 stars 25 forks source link

Build failed on centos:7 #22

Closed tannevaled closed 5 years ago

tannevaled commented 5 years ago

Hi,

i just tried to compile on CentOS 7.6 with the following .gitlab-ci.yml

image: centos:7

systemd-netlogd:
  stage: build
  variables:
    REPOSITORY: https://github.com/systemd/systemd-netlogd
  script:
  - yum -y install git sudo
  - sudo yum -y install epel-release
  - sudo yum -y group install 'Development Tools'
  - sudo yum -y install gperf libcap-devel systemd-devel meson python34-sphinx
  - sudo git clone ${REPOSITORY}
  - cd systemd-netlogd
  - sudo make
  - sudo make install
  - sudo useradd -r -d / -s /usr/sbin/nologin -g systemd-journal systemd-journal-netlog

it failed with

...
Program sphinx-build-3 found: YES (/bin/sphinx-build-3)
Found pkg-config: /bin/pkg-config (0.27.1)
Native dependency libsystemd found: NO found '219' but need: '>= 230'

meson.build:142:0: ERROR:  Invalid version of dependency, need 'libsystemd' ['>= 230'] found '219'.

A full log can be found at /builds/phymath/systemd-netlogd/systemd-netlogd/build/meson-logs/meson-log.txt
make: *** [build] Error 1
ERROR: Job failed: exit code 1

is libsystemd version >=230 really needed? is CentOS 7.6.1810 supported?

Thanks in advance for the answer

prologic commented 5 years ago

I get a slightly different build failure on CentOS 7.6-1810:

meson build
The Meson build system
Version: 0.47.2
Source dir: /root/systemd-netlogd
Build dir: /root/systemd-netlogd/build
Build type: native build

meson.build:1:0: ERROR:  Meson version is 0.47.2 but project requires >= 0.51.

A full log can be found at /root/systemd-netlogd/build/meson-logs/meson-log.txt
make: *** [build] Error 1
prologic commented 5 years ago

Funnily enough if I run make a 2nd time I get another completely different error:

make: ninja: Command not found
ssahani commented 5 years ago

you can edit the meson.build meson_version : '>= 0.51') and fix the build.

prologic commented 5 years ago

I have to ask... Why isn't this project using standard Makefile(s)? Why do I need to care about yet another build system (ninja-build?)?

ssahani commented 5 years ago

Please see the PR on systemd for ninja. Thst should answer all your thoughts.

prologic commented 5 years ago

Please see the PR on systemd for ninja. Thst should answer all your thoughts.

The only PR/Issue I saw btw was systemd/systemd#12533 -- Is that the one you're referring to?

ssahani commented 5 years ago

https://github.com/systemd/systemd/pull/5704 https://in.waw.pl/~zbyszek/blog/systemd-meson.html

prologic commented 5 years ago

😲