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

build fails with undefined reference to symbol pthread_rwlock_rwlock #18

Closed
grawity opened this issue Mar 8, 2016 · 1 comment
Closed

Comments

@grawity
Copy link

grawity commented Mar 8, 2016

Continuing from #15 since non-contributors cannot reopen a closed task and the thing still doesn't build. As mentioned in the last comment,

libdpe is using the function the linker is complaining about; see the calls to rwlock_wrlock() which are translated via preprocessor defines to pthread_rwlock_wrlock().

Indeed, libdpe/lock.h has this:

#define RWLOCK_CALL(call) \
    ({ int _err = pthread_rwlock_ ## call; assert_perror(_err); })
[...]
#define rwlock_wrlock(lock) RWLOCK_CALL(wrlock (&lock))

So it very much looks like pesign is trying to use the function directly, and so should -lpthread directly.

And yes, I see that libdpe/Makefile has LIBS=pthread. That seems to work fine for the shared library (libdpe.so), but pesign itself uses the static library (libdpe.a) and I don't believe static libs even have a place to record this kind of information?

@vathpela
Copy link
Contributor

Fixed in 0.112, thanks.

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

2 participants