Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nagios plugins breaking in Freebsd 13.1 Release #128

Open
djadk84 opened this issue Feb 11, 2024 · 1 comment
Open

Nagios plugins breaking in Freebsd 13.1 Release #128

djadk84 opened this issue Feb 11, 2024 · 1 comment

Comments

@djadk84
Copy link

djadk84 commented Feb 11, 2024

I'm building pkgsrc in a FreeBSD server but the Nagios plugins keep failing.

cat ../../CVS/Tag 
Tpkgsrc-2023Q4
net/nagios-plugins
# uname -a
FreeBSD server1 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
# cat /etc/os-release 
NAME=FreeBSD
VERSION="13.2-RELEASE"
VERSION_ID="13.2"
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 13.2-RELEASE"
CPE_NAME="cpe:/o:freebsd:freebsd:13.2"
HOME_URL="https://FreeBSD.org/"
BUG_REPORT_URL="https://bugs.FreeBSD.org/"
5 warnings generated.
mv -f .deps/check_http.Tpo .deps/check_http.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang -DNP_VERSION='""' -O2 -I/usr/include -I/usr/pkg/include  -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L. -o check_http check_http.o libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lssl -lcrypto libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lssl -lcrypto   -L/usr/pkg/lib -lintl -L/usr/pkg/lib -liconv -R/usr/pkg/lib -lpthread -ldl 
libtool: link: clang -DNP_VERSION=\"\" -O2 -I/usr/include -I/usr/pkg/include -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o check_http check_http.o  -L/usr/lib -L/usr/pkg/lib -L. libnpcommon.a ../lib/libnagiosplug.a ../gl/libgnu.a -lssl -lcrypto /usr/pkg/lib/libintl.so /usr/pkg/lib/libiconv.so -lpthread -ldl -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkg/lib
clang -DLOCALEDIR=\"/usr/pkg/share/nagios/locale\" -DHAVE_CONFIG_H -I. -I..  -I.. -I../lib -I../gl -I../intl -I/usr/include -I/usr/include -I/usr/pkg/include -D_THREAD_SAFE -DNP_VERSION='""' -O2 -I/usr/include -I/usr/pkg/include -MT check_load.o -MD -MP -MF .deps/check_load.Tpo -c -o check_load.o check_load.c
In file included from check_load.c:36:
In file included from ./runcmd.h:29:
In file included from ./utils.h:17:
In file included from ../lib/utils_base.h:5:
In file included from ../gl/sha1.h:37:
../gl/gl_openssl.h:79:10: warning: 'SHA1_Init' is deprecated [-Wdeprecated-declarations]
{ (void) OPENSSL_FN (_Init) ((_gl_CTX *) ctx); }
         ^
../gl/gl_openssl.h:74:28: note: expanded from macro 'OPENSSL_FN'
#define OPENSSL_FN(suffix) _GLCRYPTO_CONCAT (_GLCRYPTO_PREFIX, suffix)
                           ^
../gl/gl_openssl.h:34:42: note: expanded from macro '_GLCRYPTO_CONCAT'
#define _GLCRYPTO_CONCAT(prefix, suffix) _GLCRYPTO_CONCAT_ (prefix, suffix)
                                         ^
../gl/gl_openssl.h:33:43: note: expanded from macro '_GLCRYPTO_CONCAT_'
#define _GLCRYPTO_CONCAT_(prefix, suffix) prefix##suffix
                                          ^
<scratch space>:7:1: note: expanded from here
SHA1_Init
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/sha.h:49:1: note: 'SHA1_Init' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:193:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from check_load.c:36:
In file included from ./runcmd.h:29:
In file included from ./utils.h:17:
In file included from ../lib/utils_base.h:5:
In file included from ../gl/sha1.h:37:
../gl/gl_openssl.h:85:3: warning: 'SHA1_Update' is deprecated [-Wdeprecated-declarations]
{ OPENSSL_FN (_Update) ((_gl_CTX *) ctx, buf, len); }
  ^
../gl/gl_openssl.h:74:28: note: expanded from macro 'OPENSSL_FN'
#define OPENSSL_FN(suffix) _GLCRYPTO_CONCAT (_GLCRYPTO_PREFIX, suffix)
                           ^
../gl/gl_openssl.h:34:42: note: expanded from macro '_GLCRYPTO_CONCAT'
#define _GLCRYPTO_CONCAT(prefix, suffix) _GLCRYPTO_CONCAT_ (prefix, suffix)
                                         ^
../gl/gl_openssl.h:33:43: note: expanded from macro '_GLCRYPTO_CONCAT_'
#define _GLCRYPTO_CONCAT_(prefix, suffix) prefix##suffix
                                          ^
<scratch space>:16:1: note: expanded from here
SHA1_Update
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/sha.h:50:1: note: 'SHA1_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:193:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from check_load.c:36:
In file included from ./runcmd.h:29:
In file included from ./utils.h:17:
In file included from ../lib/utils_base.h:5:
In file included from ../gl/sha1.h:37:
../gl/gl_openssl.h:94:3: warning: 'SHA1_Final' is deprecated [-Wdeprecated-declarations]
{ OPENSSL_FN (_Final) ((unsigned char *) res, (_gl_CTX *) ctx); return res; }
  ^
../gl/gl_openssl.h:74:28: note: expanded from macro 'OPENSSL_FN'
#define OPENSSL_FN(suffix) _GLCRYPTO_CONCAT (_GLCRYPTO_PREFIX, suffix)
                           ^
../gl/gl_openssl.h:34:42: note: expanded from macro '_GLCRYPTO_CONCAT'
#define _GLCRYPTO_CONCAT(prefix, suffix) _GLCRYPTO_CONCAT_ (prefix, suffix)
                                         ^
../gl/gl_openssl.h:33:43: note: expanded from macro '_GLCRYPTO_CONCAT_'
#define _GLCRYPTO_CONCAT_(prefix, suffix) prefix##suffix
                                          ^
<scratch space>:31:1: note: expanded from here
SHA1_Final
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/sha.h:51:1: note: 'SHA1_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:193:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from check_load.c:36:
In file included from ./runcmd.h:29:
In file included from ./utils.h:17:
In file included from ../lib/utils_base.h:5:
In file included from ../gl/sha1.h:37:
../gl/gl_openssl.h:105:3: warning: 'SHA1_Final' is deprecated [-Wdeprecated-declarations]
  OPENSSL_FN (_Final) ((unsigned char *) res, &tmp_ctx);
  ^
../gl/gl_openssl.h:74:28: note: expanded from macro 'OPENSSL_FN'
#define OPENSSL_FN(suffix) _GLCRYPTO_CONCAT (_GLCRYPTO_PREFIX, suffix)
                           ^
../gl/gl_openssl.h:34:42: note: expanded from macro '_GLCRYPTO_CONCAT'
#define _GLCRYPTO_CONCAT(prefix, suffix) _GLCRYPTO_CONCAT_ (prefix, suffix)
                                         ^
../gl/gl_openssl.h:33:43: note: expanded from macro '_GLCRYPTO_CONCAT_'
#define _GLCRYPTO_CONCAT_(prefix, suffix) prefix##suffix
                                          ^
<scratch space>:48:1: note: expanded from here
SHA1_Final
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/sha.h:51:1: note: 'SHA1_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:193:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/pkgsrc/net/nagios-plugins/work/.buildlink/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
check_load.c:145:23: warning: relational comparison result unused [-Wunused-comparison]
        for (i = 0, j = 0; i < len, j < len; i++, j++) {
                           ~~^~~~~
check_load.c:362:44: error: use of undeclared identifier 'procjid'
        sscanf (* (char * const *) p1, PS_FORMAT, PS_VARLIST);
                                                  ^
../config.h:1999:58: note: expanded from macro 'PS_VARLIST'
#define PS_VARLIST procstat,&procuid,&procpid,&procppid,&procjid,&procvsz,&procrss,&procpcpu,procprog,&pos
                                                         ^
check_load.c:364:44: error: use of undeclared identifier 'procjid'
        sscanf (* (char * const *) p2, PS_FORMAT, PS_VARLIST);
                                                  ^
../config.h:1999:58: note: expanded from macro 'PS_VARLIST'
#define PS_VARLIST procstat,&procuid,&procpid,&procppid,&procjid,&procvsz,&procrss,&procpcpu,procprog,&pos
                                                  ^
5 warnings and 2 errors generated.
gmake[2]: *** [Makefile:2274: check_load.o] Error 1
gmake[2]: Leaving directory '/usr/pkgsrc/net/nagios-plugins/work/nagios-plugins-2.4.3/plugins'
gmake[1]: *** [Makefile:1587: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/net/nagios-plugins/work/nagios-plugins-2.4.3'
gmake: *** [Makefile:1511: all] Error 2
*** Error code 2
Stop.
bmake[1]: stopped in /usr/pkgsrc/net/nagios-plugins
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/net/nagios-plugins
@bsiegert
Copy link
Contributor

This sounds like an OpenSSL incompatibility. Is this using builtin OpenSSL or from pkgsrc?

If this is using builtin, try setting

PREFER_PKGSRC=openssl

in your mk.conf.

netbsd-srcmastr pushed a commit that referenced this issue Jun 28, 2024
Changelog:
### GMime 3.2.15

* Fixed the g_mime_object_get_header API definition to note that it can return null
* Fixed a memory leak in address_parse() (issue #159)
* Added custom header folding logic for the Newsgroups: header (issue #162)
* Fixed a configure issue regarding ac_cv_sys_file_offset_bits (issue #158)
* Fixed an infinite loop in the Content-Type and Content-Disposition parameter
  serialization logic (issue #165)

### GMime 3.2.14

* Avoid clearing the header list of a GMimeMessage when adding addresses to an address header. (issue #129)
* Added the internet_address_list_append_parse() prototype definition to internet-address.h. (issue #128)
* Use gtk-doc ulink syntax in doc comments instead of `<a href=...>`. (issue #131)
* Fixed rfc2047 token decoding logic for base64 encodings. (issue #133)
* Properly handle GDateTime UTC offsets with non-zero seconds. (issue #134)
* Improved introspection data for bindings such as Vala.
* Improved address name quoting.
* Added a GNotifyDestroy to the GMimeParserOptions callback.
* Fixed the URL linkifier logic to properly handle links without a '/' before the query string.
* Fixed the URL linkifier logic to handle domains that start with numbers. (issue #152)
* Reverted base64 decoder optimizations from 3.2.10 and 3.2.11 to support chunked base64. (issue #150)

### GMime 3.2.13

* Optimized parsing of messages with lots of address headers. (issue #126)

### GMime 3.2.12

* Fixed a memory leak in g_mime_gpgme_get_decrypt_result().

* Updated vapigen.m4, introspection.m4, and gpgme.m4 to improve cross-platform builds.

* Add and use ax_lib_socket_nsl.m4 so that systems that do not require linkage with libnsl
  are not forced to link with it unnecessesarily.

* Changed the build system to no longer use dolt (which is obsolete).

### GMime 3.2.11

* Fixed a bug in the base64 decoder. D'oh!

### GMime 3.2.10

* Improved performance of base64 encoder by ~5%.

* Improved performance of base64 decoder by ~25%.

* Unref the autocrypt header after adding it to the list. (issue #118)

* Work around a bug in g_time_zone_new_offset() by using identifiers instead. (issue #120)

### GMime 3.2.9

* g_mime_multipart_signed_verify() now allows type/subtype and type/x-subtype signature parts. (issue #115)

* Fixed header folding logic to avoid folding the first line of a header value. (issue #112 and issue #113)

* Fixed bugs discovered by static analysis. (issue #110)

* Fixed GMimeStreamPipe to set errno to ESPIPE for seek/tell/length methods.

* Fixed GMimeCertificates to prefer gpgme_user_id_t's address field over the email field. (issue #102)

### GMime 3.2.8

* Various fixes to Vala (and other?) language bindings. (issue #96 and issue #101)

* Enabled build for PPC64LE architecture (issue #100)

* Added g_mime_object_write_content_to_stream() (issue #97)

* Fixed parameter list parsing logic to not report a warning when everything is valid.

* Fixed the parser to handle MIME parts without headers -or- content of any kind.
netbsd-srcmastr pushed a commit that referenced this issue Aug 12, 2024
1.65 -- 2024-08-06
	[BUGFIXES]
	 * Update exotic names test to avoid single quote package separator
	   (GH #128)
	 * Don't loop forever in uniqnum.t (GH #130)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants