Skip to contentSkip to conversation

package/nghttp2: add host variant

PATCH In review Joseph Kogut 2 participants 6 messages Apr 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/nghttp2: add host variant

---
 package/nghttp2/nghttp2.mk | 1 +
 1 file changed, 1 insertion(+)
package/nghttp2/nghttp2.mk +1 -0
index 9190fa30d6..5f46f24431 100644
@@ -21,3 +21,4 @@ endef
 NGHTTP2_POST_INSTALL_TARGET_HOOKS += NGHTTP2_INSTALL_CLEAN_HOOK
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
Signature · 6 lines
2.36.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/libcurl: add host-nghttp2 to host deps

This fixes building host-libcurl, which otherwise would fail with undefined references to nghttp2 symbols.

/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_pack_settings_payload' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_http2_strerror' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_request' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_rst_stream' <snip>
collect2: error: ld returned 1 exit status

---
 package/libcurl/libcurl.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/libcurl/libcurl.mk +1 -1
index 97857954db..d5805a1d32 100644
@@ -173,7 +173,7 @@ endef
 LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
 endif
 
-HOST_LIBCURL_DEPENDENCIES = host-openssl
+HOST_LIBCURL_DEPENDENCIES = host-openssl host-nghttp2
 HOST_LIBCURL_CONF_OPTS = \
 	--disable-manual \
 	--disable-ntlm-wb \
Signature · 6 lines
2.36.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/libcurl: add host-nghttp2 to host deps

Quoted 7 lines · Joseph Kogut

This fixes building host-libcurl, which otherwise would fail with undefined references to nghttp2 symbols.

/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_pack_settings_payload' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_http2_strerror' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_request' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_rst_stream'

I guess this happens because it somehow finds libnghttp2 installed on the host
but then fails to link with it? In any case, we don't actually need host-libcurl to be built with nghttp2 I think. So just pass --without-nghttp2.

Regards,
Arnout

Quoted 13 lines

<snip>
collect2: error: ld returned 1 exit status

---
  package/libcurl/libcurl.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/libcurl/libcurl.mk +0 -0
index 97857954db..d5805a1d32 100644

package/libcurl/libcurl.mk endef · line 179

Quoted 8 lines
package/libcurl/libcurl.mk +1 -1
@@ -173,7 +173,7 @@ endef
  LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
  endif
 
-HOST_LIBCURL_DEPENDENCIES = host-openssl
+HOST_LIBCURL_DEPENDENCIES = host-openssl host-nghttp2
  HOST_LIBCURL_CONF_OPTS = \
  	--disable-manual \
  	--disable-ntlm-wb \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/libcurl: add host-nghttp2 to host deps

Quoted 7 lines · Arnout Vandecappelle
Quoted 3 lines · Joseph Kogut

This fixes building host-libcurl, which otherwise would fail with undefined references to nghttp2 symbols.

Quoted 9 lines
Quoted 4 lines

/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_pack_settings_payload' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_http2_strerror' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_request' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_rst_stream'

I guess this happens because it somehow finds libnghttp2 installed on the host
but then fails to link with it? In any case, we don't actually need host-libcurl to be built with nghttp2 I think. So just pass --without-nghttp2.

It seems so. I think either providing the library or disabling it will work fine, I just didn't want to assume what other users need here. I'll respin with that config, thanks for the review.

Quoted 20 lines

Regards,
Arnout

Quoted 16 lines

<snip>
collect2: error: ld returned 1 exit status

---
  package/libcurl/libcurl.mk | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/libcurl/libcurl.mk +0 -0
index 97857954db..d5805a1d32 100644
@@ -173,7 +173,7 @@ endef
  LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
  endif
 
Quoted 5 lines

package/libcurl/libcurl.mk endef · line 179

Quoted 5 lines
package/libcurl/libcurl.mk +1 -1
-HOST_LIBCURL_DEPENDENCIES = host-openssl
+HOST_LIBCURL_DEPENDENCIES = host-openssl host-nghttp2
  HOST_LIBCURL_CONF_OPTS = \
      --disable-manual \
      --disable-ntlm-wb \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

Re: [Buildroot] [PATCH 2/2] package/libcurl: add host-nghttp2 to host deps

Quoted 13 lines · Joseph Kogut
Quoted 12 lines · Arnout Vandecappelle
Quoted 7 lines · Joseph Kogut

This fixes building host-libcurl, which otherwise would fail with undefined references to nghttp2 symbols.

/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_pack_settings_payload' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_http2_strerror' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_request' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_rst_stream'

Quoted 8 lines
Quoted 4 lines

I guess this happens because it somehow finds libnghttp2 installed on the host
but then fails to link with it? In any case, we don't actually need host-libcurl to be built with nghttp2 I think. So just pass --without-nghttp2.

It seems so. I think either providing the library or disabling it will work fine, I just didn't want to assume what other users need here. I'll respin with that config, thanks for the review.

Actually, host-libcurl was only added for host-cargo. When host-cargo was
removed, we should have removed host-libcurl as well.

So the even better solution would be to simply revert commit
736e0fc5d6103300fb5d6b0cde5e22ce978b8a80.

How did you even run in to this error? There should be no reason to build
host-libcurl...

Regards,
Arnout

Quoted 21 lines
Quoted 21 lines

Regards,
Arnout

Quoted 16 lines

<snip>
collect2: error: ld returned 1 exit status

---
   package/libcurl/libcurl.mk | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
package/libcurl/libcurl.mk +0 -0
index 97857954db..d5805a1d32 100644
@@ -173,7 +173,7 @@ endef
   LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
   endif
 
Quoted 5 lines
Quoted 5 lines

package/libcurl/libcurl.mk endef · line 179

Quoted 5 lines
package/libcurl/libcurl.mk +1 -1
-HOST_LIBCURL_DEPENDENCIES = host-openssl
+HOST_LIBCURL_DEPENDENCIES = host-openssl host-nghttp2
   HOST_LIBCURL_CONF_OPTS = \
       --disable-manual \
       --disable-ntlm-wb \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

Re: [Buildroot] [PATCH 2/2] package/libcurl: add host-nghttp2 to host deps

Quoted 26 lines · Arnout Vandecappelle
Quoted 13 lines · Joseph Kogut
Quoted 12 lines · Arnout Vandecappelle
Quoted 7 lines · Joseph Kogut

This fixes building host-libcurl, which otherwise would fail with undefined references to nghttp2 symbols.

/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_pack_settings_payload' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_http2_strerror' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_request' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to nghttp2_submit_rst_stream'

Quoted 8 lines
Quoted 4 lines

I guess this happens because it somehow finds libnghttp2 installed on the host
but then fails to link with it? In any case, we don't actually need host-libcurl to be built with nghttp2 I think. So just pass --without-nghttp2.

It seems so. I think either providing the library or disabling it will work fine, I just didn't want to assume what other users need here. I'll respin with that config, thanks for the review.

Quoted 9 lines

Actually, host-libcurl was only added for host-cargo. When host-cargo was
removed, we should have removed host-libcurl as well.

So the even better solution would be to simply revert commit
736e0fc5d6103300fb5d6b0cde5e22ce978b8a80.

How did you even run in to this error? There should be no reason to build
host-libcurl...

I have an external package that makes an HTTP query to populate a config file. I'm not sure if there's a better way to do this, if you have any thoughts, I'm all ears.

Quoted 24 lines

Regards,
Arnout

Quoted 21 lines
Quoted 21 lines

Regards,
Arnout

Quoted 16 lines

<snip>
collect2: error: ld returned 1 exit status

---
   package/libcurl/libcurl.mk | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
package/libcurl/libcurl.mk +0 -0
index 97857954db..d5805a1d32 100644
@@ -173,7 +173,7 @@ endef
   LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
   endif
 
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

package/libcurl/libcurl.mk endef · line 179

Quoted 5 lines
package/libcurl/libcurl.mk +1 -1
-HOST_LIBCURL_DEPENDENCIES = host-openssl
+HOST_LIBCURL_DEPENDENCIES = host-openssl host-nghttp2
   HOST_LIBCURL_CONF_OPTS = \
       --disable-manual \
       --disable-ntlm-wb \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot