amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
500 stars 37 forks source link

[Bug] - GRPC CPP plugin for ProtoC compiler not found #700

Closed daniejstriata closed 2 months ago

daniejstriata commented 2 months ago

Describe the bug I am trying to compile syslog-ng from Fedora Source RPM. I'm not able to get around the error:

checking for protobuf >= 3.12.0... yes
checking for protoc... /usr/bin/protoc
checking for grpc_cpp_plugin... no
configure: error: GRPC CPP plugin for ProtoC compiler not found.
error: Bad exit status from /var/tmp/rpm-tmp.k83Y15 (%build)

I've added the Build Requirements but something is missing which I cannot place. The version of grpc used by fedora is still on 1.48.4 whereas AL2023 is on 1.60. Is there possibly a module that is disabled in the build of grpc? I was not able to download it's source to have a look: No package grpc-1.60.0-10.amzn2023.src.rpm available.

To Reproduce I have the missing build dependencies required by the SPEC built in Fedora COPR: https://copr.fedorainfracloud.org/coprs/faramirza/al2023

Expected behavior I would like to build the current release of syslog-ng on al2023 for testing.

elsaco commented 2 months ago

@daniejstriata you need to install the grpc-pluginspackage:

[ec2-user] $ rpm -ql grpc-plugins
/usr/bin/grpc_cpp_plugin

After satisfying the dependencies syslog-ng version 3.37 build okay on al2023. I didn't go for the latest release.

[ec2-user] $ dnf info syslog-ng
Last metadata expiration check: 1:21:15 ago on Thu Apr 25 17:44:58 2024.
Installed Packages
Name         : syslog-ng
Version      : 3.37.1
Release      : 2.amzn2023
Architecture : x86_64
Size         : 3.8 M
Source       : syslog-ng-3.37.1-2.amzn2023.src.rpm
Repository   : @System
Summary      : Next-generation syslog server
URL          : https://www.syslog-ng.com/products/open-source-log-management/
License      : GPLv2+
Description  : syslog-ng is an enhanced log daemon, supporting a wide range of input and
             : output methods: syslog, unstructured text, message queues, databases (SQL
             : and NoSQL alike) and more.

Here's the list of dependencies that needed to be build on AL2023:

ivykis-0.42.3-1.amzn2023.src.rpm
paho-c-1.3.9-5.amzn2023.src.rpm
librabbitmq-0.11.0-6.amzn2023.src.rpm
librdkafka-1.6.1-5.amzn2023.src.rpm
riemann-c-client-1.9.0-13.amzn2023.src.rpm

I wish AWS would provide an EPEL kind of repository for all the packages that are not part of the main AL2023 distro.

daniejstriata commented 2 months ago

@elsaco Thank you! That was what I needed. You can build packages for yourself using Fedora COPR. It supports Centos Stream, Fedora and custom packages of your own design. I've been doing that here for what is missing: https://copr.fedorainfracloud.org/coprs/faramirza/al2023/ I try not to update the existing AL2023 packages, just add what I feel is missing and prefer single binary utilities like htop, btop, ncdu or ncdu.