Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld - linker from libcurl.so to libnghttp2.so.14 failed - libnghttp2.so.14 not found #1797

Closed
DennisDNguy opened this issue Sep 13, 2022 · 3 comments

Comments

@DennisDNguy
Copy link

DennisDNguy commented Sep 13, 2022

Hi Everyone,
I'm trying to build my application that required libcurl.so. I get following error when linking the libnghttp2.so.14 to libcurl.so library.
I'm using openWRT v22030 linux on Microchip ATSAMA5D27-SOM1.

The error message is:
/home/dnguyen/owrt22030_wlsom1/openwrt/staging_dir/toolchain-arm_cortex-a5+vfpv4_gcc-11.2.0_musl_eabi/bin/../lib/gcc/arm-openwrt-linux-muslgnueabi/11.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: warning: libnghttp2.so.14, needed by /home/dnguyen/owrt22030_wlsom1/openwrt/staging_dir/target-arm_cortex-a5+vfpv4_musl_eabi/usr/lib/libcurl.so, not found (try using -rpath or -rpath-link)

Both libcurl.so and libnghttp2.so.14 libraries are resided at the same directory.
/home/dnguyen/owrt22030_wlsom1/openwrt/staging_dir/target-arm_cortex-a5+vfpv4_musl_eabi/usr/lib/libcurl.so
/home/dnguyen/owrt22030_wlsom1/openwrt/staging_dir/target-arm_cortex-a5+vfpv4_musl_eabi/usr/lib/libnghttp2.so.14

Appreciate your advice to solve the issue.

@DennisDNguy
Copy link
Author

DennisDNguy commented Sep 15, 2022

I using this linker:
../openwrt/staging_dir/toolchain-arm_cortex-a5+vfpv4_gcc-11.2.0_musl_eabi/arm-openwrt-linux-muslgnueabi/bin/ld
Does anyone know why the linker fail.

@DennisDNguy
Copy link
Author

This issue could be similar to: openwrt/openwrt#10302
The SHA256sum hash number could be wrong.
Could you please help to verify the SHA256sum?

@DennisDNguy
Copy link
Author

Added -lnghttp2 before -lcurl in Makefile solved the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant