Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908994 - net-analyzer/nrpe-4.1.0: stabilisation
Summary: net-analyzer/nrpe-4.1.0: stabilisation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks:
 
Reported: 2023-06-22 11:26 UTC by Sylvain CANOINE
Modified: 2023-06-23 07:50 UTC (History)
0 users

See Also:
Package list:
net-analyzer/nrpe-4.1.0
Runtime testing required: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain CANOINE 2023-06-22 11:26:22 UTC
As openssl 3.0 has been stabilized, net-analyzer/nrpe-4.0.3 doesn't compile no more : https://bugs.gentoo.org/show_bug.cgi?id=805080

Reproducible: Always

Steps to Reproduce:
1. emerge @world
2.
3.
Actual Results:  
openssl 3.0.9 merges, but net-analyzer/nrpe-4.0.3 fails to compile.
net-analyzer/nrpe-4.1.0 merges.

Expected Results:  
net-analyzer/nrpe-4.1.0 should be stabilized.
Comment 1 Alarig Le Lay 2023-06-22 17:56:43 UTC
For some context, the build output is
>>> Emerging (67 of 70) net-analyzer/nrpe-4.0.3::gentoo
 * nrpe-4.0.3.tar.gz BLAKE2B SHA512 size ;-) ...                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking nrpe-4.0.3.tar.gz to /var/tmp/portage/net-analyzer/nrpe-4.0.3/work
>>> Source unpacked in /var/tmp/portage/net-analyzer/nrpe-4.0.3/work
>>> Preparing source in /var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3 ...
 * Applying nrpe-3.2.1-eliminate-systemd-pid.patch ...                                                                         [ ok ]
 * Applying nrpe-4.0.2-disable-tcpd.patch ...                                                                                  [ ok ]
 * Running eautoreconf in '/var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3' ...
 * Running 'autoconf --force' ...                                                                                              [ ok ]
 * Running 'autoheader' ...                                                                                                    [ !! ]
 * Running elibtoolize in: nrpe-4.0.3/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3 ...
 * econf: updating nrpe-4.0.3/build-aux/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nrpe-4.0.3/build-aux/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating nrpe-4.0.3/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating nrpe-4.0.3/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --libexecdir=/usr/lib64/nagios/plugins --localstatedir=/var/lib/nagios --sysconfdir=/etc/nagios --with-nrpe-user=nagios --with-nrpe-group=nagios --with-piddir=/run --with-opsys=unknown --with-dist-type=unknown --with-init-type=unknown --with-inetd-type=unknown --disable-command-args --enable-ssl --disable-tcpd
checking for a BSD-compatible install... /var/tmp/portage/._portage_reinstall_.qi4jlaec/bin/ebuild-helpers/xattr/install -c
checking what the operating system is ... unknown
linux
checking what the distribution type is ... unknown
gentoo
checking what init system is being used ... unknown
unknown
checking what inetd is being used ... unknown
checking for which paths to use ... default
checking for which init file to use ... unknown
checking for which inetd files to use ... unknown
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to enable C11 features... none needed
checking whether make sets $(MAKE)... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for ctype.h... yes
checking for dirent.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for getopt.h... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking for netdb.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... yes
checking for tcpd.h... no
checking for unistd.h... (cached) yes
checking for arpa/inet.h... yes
checking for netinet/in.h... yes
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for paths.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking size of int... 4
checking size of short... 2
checking size of long... 8
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for struct sockaddr_storage... yes
checking for seteuid... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking check_for_tcpd=no... checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for strtok_r... yes
checking for initgroups... yes
checking for closesocket... no
checking for sigaction... yes
checking for scandir... yes
checking for socklen_t... yes
checking for type of socket size... size_t
checking for Kerberos include files... configure: WARNING: could not find include files
checking for x86_64-pc-linux-gnu-pkg-config... x86_64-pc-linux-gnu-pkg-config
checking whether compiling and linking against SSL works... yes
checking for openssl... /usr/bin/openssl

*** Generating DH Parameters for SSL/TLS ***
dhparam: Unknown option: -C
dhparam: Use -help for summary.
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating nrpe.spec
config.status: creating uninstall
config.status: creating sample-config/nrpe.cfg
config.status: creating startup/bsd-init
config.status: creating startup/debian-init
config.status: creating startup/default-init
config.status: creating startup/default-inetd
config.status: creating startup/default-service
config.status: creating startup/default-socket
config.status: creating startup/default-socket-svc
config.status: creating startup/default-xinetd
config.status: creating startup/mac-init.plist
config.status: creating startup/mac-inetd.plist
config.status: creating startup/newbsd-init
config.status: creating startup/openbsd-init
config.status: creating startup/openrc-conf
config.status: creating startup/openrc-init
config.status: creating startup/solaris-init.xml
config.status: creating startup/solaris-inetd.xml
config.status: creating startup/tmpfile.conf
config.status: creating startup/upstart-init
config.status: creating startup/rh-upstart-init
config.status: creating include/common.h
config.status: creating include/config.h


*** Configuration summary for nrpe 4.0.3 2020-04-28 ***:

 General Options:
 -------------------------
 NRPE port:    5666
 NRPE user:    nagios
 NRPE group:   nagios
 Nagios user:  nagios
 Nagios group: nagios


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the NRPE daemon and client
or type 'make' to get a list of make options.

>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3 ...
make -j1 all 
cd ./src/; make
make[1]: Entering directory '/var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3/src'
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -mtune=native  -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -Wl,-O1 -Wl,--as-needed   -lssl -lcrypto  -lnsl   
./nrpe.c: In function ‘init_ssl’:
./nrpe.c:287:9: warning: ‘ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  287 |         ENGINE_load_builtin_engines();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:36,
                 from ./nrpe.c:38:
/usr/include/openssl/engine.h:358:28: note: declared here
  358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./nrpe.c:288:9: warning: ‘RAND_set_rand_engine’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  288 |         RAND_set_rand_engine(NULL);
      |         ^~~~~~~~~~~~~~~~~~~~
In file included from ../include/common.h:35:
/usr/include/openssl/rand.h:52:27: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_engine(ENGINE *engine);
      |                           ^~~~~~~~~~~~~~~~~~~~
./nrpe.c:289:9: warning: ‘ENGINE_register_all_complete’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  289 |         ENGINE_register_all_complete();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/engine.h:415:27: note: declared here
  415 | OSSL_DEPRECATEDIN_3_0 int ENGINE_register_all_complete(void);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./nrpe.c:450:25: warning: ‘ERR_get_error_line_data’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  450 |                         while ((x = ERR_get_error_line_data(NULL, NULL, NULL, NULL)) != 0) {
      |                         ^~~~~
In file included from ../include/common.h:34:
/usr/include/openssl/err.h:425:15: note: declared here
  425 | unsigned long ERR_get_error_line_data(const char **file, int *line,
      |               ^~~~~~~~~~~~~~~~~~~~~~~
./nrpe.c:474:22: warning: implicit declaration of function ‘get_dh2048’ [-Wimplicit-function-declaration]
  474 |                 dh = get_dh2048();
      |                      ^~~~~~~~~~
./nrpe.c:474:20: warning: assignment to ‘DH *’ {aka ‘struct dh_st *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  474 |                 dh = get_dh2048();
      |                    ^
./nrpe.c:476:17: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  476 |                 DH_free(dh);
      |                 ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ../include/common.h:32:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
./nrpe.c: In function ‘handle_conn_ssl’:
./nrpe.c:2031:25: warning: ‘ERR_get_error_line_data’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2031 |                         while ((x = ERR_get_error_line_data(NULL, NULL, NULL, NULL)) != 0) {
      |                         ^~~~~
/usr/include/openssl/err.h:425:15: note: declared here
  425 | unsigned long ERR_get_error_line_data(const char **file, int *line,
      |               ^~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-analyzer/nrpe-4.0.3/temp/ccJ88okd.o: in function `init_ssl':
nrpe.c:(.text+0x6aa): undefined reference to `get_dh2048'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48: nrpe] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3/src'
make: *** [Makefile:65: all] Error 2
 * ERROR: net-analyzer/nrpe-4.0.3::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/nrpe-4.0.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/nrpe-4.0.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/nrpe-4.0.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/nrpe-4.0.3/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3'
 * S: '/var/tmp/portage/net-analyzer/nrpe-4.0.3/work/nrpe-4.0.3'

>>> Failed to emerge net-analyzer/nrpe-4.0.3, Log file:

>>>  '/var/tmp/portage/net-analyzer/nrpe-4.0.3/temp/build.log'


And the github issue is https://github.com/NagiosEnterprises/nrpe/issues/258
Comment 2 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-06-23 04:50:37 UTC
x86 done
Comment 3 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-06-23 06:10:09 UTC
sparc done
Comment 4 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-06-23 07:50:47 UTC
ppc64 done
Comment 5 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-06-23 07:50:49 UTC
amd64 done

all arches done