Bug 273353 - security/ncrack poudriere-devel build fails in configure phase with reason "Too old or buggy zlib version"
Summary: security/ncrack poudriere-devel build fails in configure phase with reason "T...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Stefan Eßer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-26 02:55 UTC by g.hjkl
Modified: 2023-09-27 20:28 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (se)


Attachments
ncrack buil log (30.97 KB, text/plain)
2023-08-26 02:55 UTC, g.hjkl
no flags Details
poudriere conf file (655 bytes, text/plain)
2023-08-26 02:56 UTC, g.hjkl
no flags Details
poudriere make.conf (493 bytes, text/plain)
2023-08-26 02:58 UTC, g.hjkl
no flags Details
poudriere src.conf (431 bytes, text/plain)
2023-08-26 02:58 UTC, g.hjkl
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description g.hjkl 2023-08-26 02:55:27 UTC
Created attachment 244345 [details]
ncrack buil log

uname -a: 
FreeBSD 15.0-CURRENT amd64 1500000 main-n265046-7dfade49da87 VLOCAL amd64

configure: error: *** zlib too old - check config.log ***
Your reported zlib version has known security problems.  It's possible your
vendor has fixed these problems without changing the version number.  If you
are sure this is the case, you can disable the check by running
"./configure --without-zlib-version-check".
If you are in doubt, upgrade zlib to version 1.2.3 or greater.
See http://www.gzip.org/zlib/ for details.
configure: error: ./configure failed for opensshlib
===>  Script "configure" failed unexpectedly.
Please report the problem to se@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/security/ncrack/work/ncrack-0.7/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/security/ncrack
=>> Cleaning up wrkdir
===>  Cleaning for ncrack-0.7
build of security/ncrack | ncrack-0.7 ended at Sat Aug 26 03:43:28 BST 2023
build time: 00:00:06
!!! build failure encountered !!!
Comment 1 g.hjkl 2023-08-26 02:56:43 UTC
Created attachment 244346 [details]
poudriere conf file
Comment 2 g.hjkl 2023-08-26 02:58:22 UTC
Created attachment 244347 [details]
poudriere make.conf
Comment 3 g.hjkl 2023-08-26 02:58:52 UTC
Created attachment 244348 [details]
poudriere src.conf
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2023-08-26 08:24:48 UTC
Probably better to track master branch for now and also import this PR on top https://github.com/nmap/ncrack/pull/127 .
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2023-08-26 08:29:50 UTC
https://src.fedoraproject.org/rpms/ncrack/tree/rawhide
https://sources.debian.org/patches/ncrack/0.7+debian-4/
A few more patches we might want to import and/or maybe already fixed in master branch
Comment 6 Bruce Becker 2023-09-27 20:28:02 UTC
this fixes it

--- configure.ac        2023-09-27 11:11:16.910429000 -0400	
+++ configure.ac        2023-09-27 11:11:16.910429000 -0400	
@@ -1464,13 +1464,13 @@ 
        [[
        int a=0, b=0, c=0, d=0, n, v;
        n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
-       if (n != 3 && n != 4)
+       if ((n < 2) || (n > 4))
                exit(1);
        v = a*1000000 + b*10000 + c*100 + d;
        fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
        /* 1.1.4 is OK */
-       if (a == 1 && b == 1 && c >= 4)
+       if ((a == 1) && (b == 1) && (c >= 4))
                exit(0);
        /* 1.2.3 and up are OK */