openwrt / openwrt/packages

gnunet_fuse: ld error when building 22.03 with glibc

Open
#19,157 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.