Attention is currently required from: flichtenheld, plaisthos.

cron2 has posted comments on this change. ( 
http://gerrit.openvpn.net/c/openvpn/+/556?usp=email )

Change subject: configure: Try to detect LZO with pkg-config
......................................................................


Patch Set 7: Code-Review+2

(2 comments)

Patchset:

PS6:
> close... […]
I think the pc is broken... everything LZO itself includes uses 
<lzo/lzoconf.h>... but it's the same (`Cflags: -I${includedir}/lzo`) on 
gentoo... where it just happens to work because `/usr/include` is in the 
include path anyway.  Gah.


Patchset:

PS7:
Tested on FreeBSD 14, "configure with no option" -> succeeds & builds fine (LZO 
in /usr/local/..., make using `-I/usr/local/include/lzo -I/usr/local/include` 
because that's where cmocka and lz4 are living).  Disabling LZ4 makes 
compilation succeed with only `-I/usr/local/include/lzo`.  This is good :-)

All the buildbots still succeed, which means this hasn't broken explicitly 
setting "whatever we used before".

oi2024 has lzo in `/usr/include/`, so, boring case.

obsd75 has lzo in `/usr/local/include/lzo`, patched configure works, compile 
works.  With `--disable-lz4` there is no mention of `-I/usr/local/include` 
anymore, and it still succeeds ;-)

nbsd81 has `/usr/pkg/include/lzo/` and the patched configure finds it fine, and 
then barfs on

```
configure:18379: checking for lzo1x.h
configure:18379: gcc -c -g -O2 -std=c99 -I/usr/pkg/include/lzo  conftest.c >&5
In file included from conftest.c:136:0:
/usr/pkg/include/lzo/lzodefs.h:1035:6: error: #error "unexpected configuration -
 check your compiler defines"
 #    error "unexpected configuration - check your compiler defines"
      ^
```

which is something weird about UINT_MAX testing against LZO_0xffffffffL.  Not 
sure how to fix that.  It does not break on the buildbot as that one has a 
symlink from `/usr/include/lzo -> /usr/pkg/include/lzo` (to apease older source 
trees) - with that, the configure change works fine.  Without, it bombs.  I 
would still tend to progress the patch, unless someone has a good idea how to 
tackle this...



--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/556?usp=email
To unsubscribe, or for help writing mail filters, visit 
http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1c038dc4ec80d3499582d81eee61fee74f26e693
Gerrit-Change-Number: 556
Gerrit-PatchSet: 7
Gerrit-Owner: flichtenheld <fr...@lichtenheld.com>
Gerrit-Reviewer: cron2 <g...@greenie.muc.de>
Gerrit-Reviewer: plaisthos <arne-open...@rfc2549.org>
Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net>
Gerrit-Attention: plaisthos <arne-open...@rfc2549.org>
Gerrit-Attention: flichtenheld <fr...@lichtenheld.com>
Gerrit-Comment-Date: Wed, 26 Jun 2024 12:29:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: cron2 <g...@greenie.muc.de>
Gerrit-MessageType: comment
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to