[Nut-upsdev] Getting distcheck-light error on SSL

Jim Klimov jimklimov+nut at gmail.com
Tue Oct 1 08:38:59 BST 2024


Looking at `Makefile.am`, the `DISTCHECK_LIGHT_FLAGS = --with-all=auto
--with-ssl=auto --with-doc=auto --with-pynut=app --with-nut_monitor=force`
already should make SSL optional, if they are indeed taken into account.
The recipes are regularly tested with several unrelated implementations of
Make, so are expected to work across the board (even if causing some syntax
to be... coarse).

The implementation in `configure.ac` e.g.
https://github.com/networkupstools/nut/blob/1560afe330d09479370f3ed25e3289392c7aebc5/configure.ac#L2087-L2120
(may have bugs like any other code, but) aims to only issue a warning if
nothing was found and `nut_with_ssl != yes` exactly.

So I guess the first thing to check is what `configure` arguments are
actually logged in the `config.log` file under the dist build directory
(the base name is version-based).

Jim


On Tue, Oct 1, 2024 at 9:28 AM Jim Klimov <jimklimov+nut at gmail.com> wrote:

> Hello,
>
>   First of all, great to hear you plan to "do some driver work", that's
> always welcome :)
>
>   As for "neither ... found", you are probably missing development library
> packages with headers and pkg-config info, e.g. `libssl-dev libnss3-dev`
> (Debian-ish) or `openssl-devel nss-devel` (RedHat-ish).
>
>   As
> https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests
> page (could also help in your quest, if your starting point were packaged
> NUT and so user accounts, some configs and permissions, etc. are already in
> place) says,
>
> > The
> https://github.com/networkupstools/nut/blob/master/docs/config-prereqs.txt
> document (also as a rendered page on NUT website
> <https://networkupstools.org/docs/user-manual.chunked/_build_prerequisites_to_make_nut_from_scratch_on_various_operating_systems.html>)
> details tools and dependencies that were added on NUT CI build
> environments, which now cover many operating systems. This should provide a
> decent starting point for the build on yours (PRs to update the document
> are welcome!)
>
>   That said, `make distcheck-light` aims to pass on systems without
> everything plus a kitchen sink installed (primarily without documentation
> tools though - they have a huge footprint, carrying in X11 and TeX to
> render PDF), so maybe its definition in `/Makefile.am` misses a
> `--with-ssl=auto` bit. Gotta revise that (or can be monkey-patched locally
> in your system at least).
>
> Hope this helps,
> Jim Klimov
>
>
>
> On Tue, Oct 1, 2024 at 9:05 AM William R. Elliot <bill at wreassoc.com>
> wrote:
>
>> Hello all,
>>
>> I am setting up a linux VM to do some driver work in NUT. After
>> running autogen.sh and configure successfully (I think) but before
>> making any changes I wanted to make sure I could run 'make
>> distcheck-light' and get a successful result.
>>
>> Unfortunately, the make stops with an error because "Neither Mozilla
>> NSS nor OpenSSL was found...". What is needed to get past this error?
>> Is there a way to disable the SSL check when running make? Am I
>> missing a package?
>>
>> Thank you,
>>
>> Bill
>>
>>
>> --
>> This email has been checked for viruses by AVG antivirus software.
>> www.avg.com
>>
>> _______________________________________________
>> Nut-upsdev mailing list
>> Nut-upsdev at alioth-lists.debian.net
>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsdev/attachments/20241001/a2f6c5ca/attachment.htm>


More information about the Nut-upsdev mailing list