build: Fix build with latest tree
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 build: Fix build with latest tree
From: Luiz Augusto von Dentz <[email protected]>
Latest ell tree has introduced useful.h and main-private.h which are required to build:
ell/cert-crypto.c:35:10: fatal error: useful.h: No such file or directory
35 | #include "useful.h"
| ^~~~~~~~~~ ... --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile.am +3 -1
@@ -135,7 +135,9 @@ ell_headers = ell/util.h \ ell/asn1-private.h \ ell/cert-private.h \ ell/pem-private.h \ - ell/uuid.h + ell/uuid.h \ + ell/useful.h \ + ell/main-private.h ell_sources = ell/private.h ell/missing.h \ ell/util.c \
Signature · 1 line
2.30.2
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=449519
---Test result---
##############################
Test: CheckPatch - PASS
##############################
Test: CheckGitLint - PASS
##############################
Test: CheckBuild - PASS
##############################
Test: MakeCheck - PASS
---
Regards,
Linux Bluetooth
Marcel Holtmann
maintainerHi Luiz,
Quoted 17 lines
Latest ell tree has introduced
useful.handmain-private.hwhich are required to build:
ell/cert-crypto.c:35:10: fatal error:useful.h: No such file or directory
35 | #include "useful.h"| ^~~~~~~~~~ ... --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Makefile.am +0
-0
Makefile.am ell_headers = ell/util.h \ · line 141
Quoted 8 lines
Makefile.am +3
-1@@ -135,7 +135,9 @@ ell_headers = ell/util.h \ ell/asn1-private.h \ ell/cert-private.h \ ell/pem-private.h \ - ell/uuid.h + ell/uuid.h \ + ell/useful.h \ + ell/main-private.h
this is the wrong fix. It will break in the tarballs. ELL will not install ell/useful.h ever. So every tarball needs to ensure that ell/useful.h is included. Which means you need to follow the fix from iwd here.
Regards
Marcel
Luiz Augusto von Dentz
maintainerHi Marcel,
Quoted 15 lines · Marcel Holtmann
Hi Luiz,
Quoted 12 lines
Latest ell tree has introduced
useful.handmain-private.hwhich are required to build:
ell/cert-crypto.c:35:10: fatal error:useful.h: No such file or directory
35 | #include "useful.h"| ^~~~~~~~~~ ... --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 15 lines
Makefile.am ell_headers = ell/util.h \ · line 141
Quoted 13 lines
Makefile.am +3
-1@@ -135,7 +135,9 @@ ell_headers = ell/util.h \ ell/asn1-private.h \ ell/cert-private.h \ ell/pem-private.h \ - ell/uuid.h + ell/uuid.h \ + ell/useful.h \ + ell/main-private.hthis is the wrong fix. It will break in the tarballs. ELL will not install
ell/useful.hever. So every tarball needs to ensure thatell/useful.his included. Which means you need to follow the fix from iwd here.
Are you talking about this:
Shall we use the same mechanism to link the headers?
Quoted 4 lines
Regards
Marcel
Signature · 1 line
Luiz Augusto von Dentz
Luiz Augusto von Dentz
maintainerHi Marcel,
Quoted 35 lines · Luiz Augusto von Dentz
Hi Marcel,
Quoted 15 lines · Marcel Holtmann
Hi Luiz,
Quoted 12 lines
Latest ell tree has introduced
useful.handmain-private.hwhich are required to build:
ell/cert-crypto.c:35:10: fatal error:useful.h: No such file or directory
35 | #include "useful.h"| ^~~~~~~~~~ ... --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Quoted 15 lines
Makefile.am ell_headers = ell/util.h \ · line 141
Quoted 13 lines
Makefile.am +3
-1@@ -135,7 +135,9 @@ ell_headers = ell/util.h \ ell/asn1-private.h \ ell/cert-private.h \ ell/pem-private.h \ - ell/uuid.h + ell/uuid.h \ + ell/useful.h \ + ell/main-private.hthis is the wrong fix. It will break in the tarballs. ELL will not install
ell/useful.hever. So every tarball needs to ensure thatell/useful.his included. Which means you need to follow the fix from iwd here.
Quoted 5 lines
Are you talking about this:
Shall we use the same mechanism to link the headers?
I tried with distcheck to see what would be included in the tarball, both useful.h and main-private.h do appear to be included, perhaps you are saying that when we use non-built-in/shared ell (--enable-external-ell) those headers are not installed, but I guess in that case we don't need the private header as we won't be using the built-in sources, or I'm missing something. That said perhaps this is different in case of iwd as it seems to be using useful.h directly:
Signature · 1 line
Luiz Augusto von Dentz
Marcel Holtmann
maintainerHi Luiz,
Quoted 42 lines
Quoted 28 lines
Quoted 12 lines
Quoted 12 lines
Latest ell tree has introduced
useful.handmain-private.hwhich are required to build:
ell/cert-crypto.c:35:10: fatal error:useful.h: No such file or directory
35 | #include "useful.h"| ^~~~~~~~~~ ... --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Quoted 15 lines
Makefile.am ell_headers = ell/util.h \ · line 141
Quoted 13 lines
Makefile.am +3
-1@@ -135,7 +135,9 @@ ell_headers = ell/util.h \ ell/asn1-private.h \ ell/cert-private.h \ ell/pem-private.h \ - ell/uuid.h + ell/uuid.h \ + ell/useful.h \ + ell/main-private.hthis is the wrong fix. It will break in the tarballs. ELL will not install
ell/useful.hever. So every tarball needs to ensure thatell/useful.his included. Which means you need to follow the fix from iwd here.Quoted 5 lines
Are you talking about this:
Shall we use the same mechanism to link the headers?
I tried with distcheck to see what would be included in the tarball, both
useful.handmain-private.hdo appear to be included, perhaps you are saying that when we use non-built-in/shared ell (--enable-external-ell) those headers are not installed, but I guess in that case we don't need the private header as we won't be using the built-in sources, or I'm missing something. That said perhaps this is different in case of iwd as it seems to be usinguseful.hdirectly:
Quoted 1 line
for the build case --enable-external-ell you need need ell/useful.h linked or provided in the tarball. All other headers are not needed in that case. See my iwd commit that does exactly that.
Regards
Marcel