gnunet_fuse: ld error when building 22.03 with glibc
Open
Nobody has claimed this yet.
release/22.03
stale
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @dangowrt
Environment:
branch openwrt-22.03 with packages commit id eaefde9a4a6aa649df6ea2152b09d641eca007c3
build x86-64 with glibc
Description:
here is the error log
/build/owrt/staging_dir/toolchain-x86_64_gcc-11.2.0_glibc/lib/gcc/x86_64-openwrt-linux-gnu/11.2.0/../../../../x86_64-openwrt-linux-gnu/bin/ld: gnunet_fuse-mutex.o: in function `GNUNET_mutex_create':
mutex.c:(.text+0x39): undefined reference to `pthread_mutexattr_setkind_np'
/build/owrt/staging_dir/toolchain-x86_64_gcc-11.2.0_glibc/lib/gcc/x86_64-openwrt-linux-gnu/11.2.0/../../../../x86_64-openwrt-linux-gnu/bin/ld: mutex.c:(.text+0xaa): undefined reference to `pthread_mutexattr_setkind_np'
collect2: error: ld returned 1 exit status
make[8]: *** [Makefile:449: gnunet-fuse] Error 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the gnunet_fuse build on branch openwrt-22.03 with packages commit eaefde9a4a6aa649df6ea2152b09d641eca007c, x86-64, and glibc. Inspect the gnunet_fuse build around Makefile:449 and the reported mutex.c link failure; done means the package builds without the undefined pthread_mutexattr_setkind_np references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100