From: "cron2 (Code Review)" Date: Tue, 17 Sep 2024 13:12:04 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <33625af17667f4664d3191437f7b003eb61683e9-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="t7aafw2Fk/0="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: configure: Handle libnl-genl and libcap-ng consistent with other libs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --t7aafw2Fk/0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/724?usp=3Demail ) Change subject: configure: Handle libnl-genl and libcap-ng consistent with = other libs ...................................................................... Patch Set 3: Code-Review-1 (3 comments) Patchset: PS3: Feature-ACK, but it does not work for me. I applied this against 14d2db6cd41fb6 on Ubuntu 20.04, did `autoreconf -vif= ` then `configure`, `make`, and it fails for me with ``` gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../sr= c/compat -I/usr/include/lzo -DPLUGIN_LIBDIR=3D\"/usr/local/lib/openvp= n/plugins\" -Wall -Wno-stringop-truncation -g -O2 -std=3Dc11 -MT options.o= -MD -MP -MF $depbase.Tpo -c -o options.o options.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from dco_internal.h:31, from dco.h:31, from tun.h:43, from socket.h:37, from ssl.h:38, from options.c:45: dco_linux.h:31:10: fatal error: netlink/socket.h: No such file or directory 31 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. ``` because the LIBNL_GENL_CFLAGS do not show up on the gcc command line... File configure.ac: http://gerrit.openvpn.net/c/openvpn/+/724/comment/546e2b93_7afac6b6 : PS3, Line 1495: AC_SUBST([OPTIONAL_LIBNL_GENL_LIBS]) so what are these needed for? I see that the generated `src/openvpn/Makefi= le` has both ``` LIBNL_GENL_CFLAGS =3D -I/usr/include/libnl3 LIBNL_GENL_LIBS =3D -lnl-genl-3 -lnl-3 ``` and ``` OPTIONAL_LIBNL_GENL_CFLAGS =3D -I/usr/include/libnl3 OPTIONAL_LIBNL_GENL_LIBS =3D -lnl-genl-3 -lnl-3 ``` so this seems slightly redundant... http://gerrit.openvpn.net/c/openvpn/+/724/comment/97ee1a30_d7a7fbe2 : PS3, Line 1545: TEST_CFLAGS=3D"${TEST_CFLAGS} -I\$(top_srcdir)/include ${CM= OCKA_CFLAGS}" This is `TEST_*` only, but shouldn't we have these for `AM_CFLAGS` and `ope= nvpn_LDADD` as well? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/724?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I39a6f58b11b922f5dbd3e55a5bc8574eda8a83fe Gerrit-Change-Number: 724 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 17 Sep 2024 13:12:04 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --t7aafw2Fk/0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 3:Code-Review -1=

Vi= ew Change

3 comments:

  • Patchset:

    • Patch Set #3:

      Feature-ACK, but it does not work for me.

      =

      I applied this a= gainst 14d2db6cd41fb6 on Ubuntu 20.04, did `autoreconf -vif` then `configur= e`, `make`, and it fails for me with

      ```
      gcc -DHAVE_CONFIG_H -I. -I../..= -I../../include -I../../include -I../../src/compat -I/usr/include/lzo = -DPLUGIN_LIBDIR=3D\"/usr/local/lib/openvpn/plugins\" -Wall -W= no-stringop-truncation -g -O2 -std=3Dc11 -MT options.o -MD -MP -MF $depbase= .Tpo -c -o options.o options.c &&\
      mv -f $depbase.Tpo $depbase.P= o
      In file included from dco_internal.h:31,
      from dco.= h:31,
      from tun.h:43,
      from socket.h:= 37,
      from ssl.h:38,
      from options.c:4= 5:
      dco_linux.h:31:10: fatal error: netlink/socket.h: No such file or dir= ectory
      31 | #include <netlink/socket.h>
      | ^~~= ~~~~~~~~~~~~~~~
      compilation terminated.
      ```
      because the LIBNL_GENL= _CFLAGS do not show up on the gcc command line...
  • File configure.ac:

    • Patch Set #3, Line 1495: AC_SUBST([OPTIONAL_LIBNL_GENL_LIBS])

      so what= are these needed for? I see that the generated `src/openvpn/Makefile` has= both

      ```
      = LIBNL_GENL_CFLAGS =3D -I/usr/include/libnl3
      LIBNL_GENL_LIBS =3D -lnl-gen= l-3 -lnl-3
      ```
      and
      ```
      OPTIONAL_LIBNL_GENL_CFLAGS =3D -I/usr/in= clude/libnl3
      OPTIONAL_LIBNL_GENL_LIBS =3D -lnl-genl-3 -lnl-3
      ```
      s= o this seems slightly redundant...

    • Patch Set #3, Line 1545= : TEST_CFLAGS=3D"$= {TEST_CFLAGS} -I\$(top_srcdir)/include ${CMOCKA_CFLAGS}"

      This is `TEST_*` on= ly, but shouldn't we have these for `AM_CFLAGS` and `openvpn_LDADD` as = well?

To view, visit change 724. To unsubscribe, or fo= r help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I39a6f58b11b922f5dbd3e55a5bc= 8574eda8a83fe
Gerrit-Change-Number: 724
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 17 Sep 2024 13:12:04= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--t7aafw2Fk/0=--