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

Ships lock.m4 with missing dependencies #46

Open
rossburton opened this issue Nov 19, 2019 · 5 comments
Open

Ships lock.m4 with missing dependencies #46

rossburton opened this issue Nov 19, 2019 · 5 comments

Comments

@rossburton
Copy link

m4/lock.m4 uses gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER but nothing provides that function. For some reason this is only causing problems when I build parted, maybe that function ends up being pulled into most builds?

@rossburton
Copy link
Author

@xhebox
Copy link
Collaborator

xhebox commented Nov 21, 2019

i can not reproduce the issue. i built parted-3.3 with './configure' and 'autoreconf'. could you provide more details about the failure?

EDIT: btw, i'm using musl-libc, maybe that's the cause.

@rossburton
Copy link
Author

Maybe thats the difference, yes.

You can verify this easily enough without actually building anything. m4/lock.m4 uses gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER but nothing in gettext-tiny defines that, and the gl_ prefix indicates it's part of gnulib. Ergo, unless you have that macro provided by something else, it's undefined.

@xhebox
Copy link
Collaborator

xhebox commented Nov 30, 2019

@rossburton after some survey, here's my thought:
this file belongs to gnulib. and gettext should not ship with it(the gnu gettext does not include it too).

there must be some steps missing in your building process. when generating './configure', autotools should copy pthread_rwlock_rdlock.m4 into that directory.

it should be a wont fix problem, or it's not a bug of gettext-tiny. close the issue, if you are satisfied with the answer.

EDIT: you can check by touching a newconfigure.ac:

AM_GNU_GETTEXT_VERSION(0.18.2)

then use autopoint from gnu to see that.

@rofl0r
Copy link
Member

rofl0r commented Nov 30, 2019

this file belongs to gnulib. and gettext should not ship with it(the gnu gettext does not include it too).

well, we copied gnulib m4 files into place to make autopoint work:
20c2491

so it's well possible that a file was overlooked, in which case we should add the missing one, but from roughly the same point in time of when gnulib files were imported so the stuff matches.

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

3 participants