* [Drbd-dev] [BUG] drbdadm_parser.c:1968:63: error: 'glob_t' has no member named 'gl_flags'
@ 2022-11-07 12:08 Milan P. Stanić
2022-11-14 8:52 ` Roland Kammerer
0 siblings, 1 reply; 3+ messages in thread
From: Milan P. Stanić @ 2022-11-07 12:08 UTC (permalink / raw)
To: drbd-dev
Hi,
[ Please Cc to me, I'm not subscribed to this mailing list ]
I'm trying to build drbd-tools 9.22.0 on Alpine Linux which is based on
musl libc (and not glibc).
Build fail with this error:
-----------------------------
drbdadm_parser.c: In function 'include_stmt':
drbdadm_parser.c:1968:63: error: 'glob_t' has no member named 'gl_flags'
1968 | } else if (errno == ENOENT && glob_buf.gl_flags & GLOB_MAGCHAR) {
| ^
drbdadm_parser.c:1968:75: error: 'GLOB_MAGCHAR' undeclared (first use in this function)
1968 | } else if (errno == ENOENT && glob_buf.gl_flags & GLOB_MAGCHAR) {
| ^~~~~~~~~~~~
drbdadm_parser.c:1968:75: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [<builtin>: drbdadm_parser.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/mps/aports/main/drbd-utils/src/drbd-utils-9.22.0/user/v9'
make: *** [Makefile:90: tools] Error 2
>>> ERROR: drbd-utils: build failed
-----------------------------
Musl libc glob.h doesn't have gl_flags nor GLOB_MAGCHAR because it is
non standard glibc extension.
I reverted https://github.com/LINBIT/drbd-utils/commit/4a1b590090bf676cdfb10c198505b95b9eeb3120
commit and then drbd-tools builds fine.
Not sure is this revert safe to push drbd-utils in next Alpine release
(which planned for next week) or there is better fix.
TIA
--
Kind regards
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Drbd-dev] [BUG] drbdadm_parser.c:1968:63: error: 'glob_t' has no member named 'gl_flags'
2022-11-07 12:08 [Drbd-dev] [BUG] drbdadm_parser.c:1968:63: error: 'glob_t' has no member named 'gl_flags' Milan P. Stanić
@ 2022-11-14 8:52 ` Roland Kammerer
2022-11-14 18:01 ` Milan P. Stanić
0 siblings, 1 reply; 3+ messages in thread
From: Roland Kammerer @ 2022-11-14 8:52 UTC (permalink / raw)
To: drbd-dev; +Cc: Milan P. Stanić
On Mon, Nov 07, 2022 at 01:08:14PM +0100, Milan P. Stanić wrote:
> Hi,
>
> [ Please Cc to me, I'm not subscribed to this mailing list ]
>
> I'm trying to build drbd-tools 9.22.0 on Alpine Linux which is based on
> musl libc (and not glibc).
>
> [...]
>
> Musl libc glob.h doesn't have gl_flags nor GLOB_MAGCHAR because it is
> non standard glibc extension.
thanks for reporting, this should be fixed in
https://github.com/LINBIT/drbd-utils/commit/33d5e8f7066116bd0a706c7cdda4950895164d34
> I reverted https://github.com/LINBIT/drbd-utils/commit/4a1b590090bf676cdfb10c198505b95b9eeb3120
> commit and then drbd-tools builds fine.
>
> Not sure is this revert safe to push drbd-utils in next Alpine release
> (which planned for next week) or there is better fix.
I think reverting for now is perfectly fine, this deserved a fix, but I
don't think it actually happened in the wild that often... Or you pick
the proposed fix, which would be a good test for us as well. Currently
I'm not sure when the next official release will be done, current gut
feeling is not enough interesting things people would wait for has have
happened.
Regards, rck
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Drbd-dev] [BUG] drbdadm_parser.c:1968:63: error: 'glob_t' has no member named 'gl_flags'
2022-11-14 8:52 ` Roland Kammerer
@ 2022-11-14 18:01 ` Milan P. Stanić
0 siblings, 0 replies; 3+ messages in thread
From: Milan P. Stanić @ 2022-11-14 18:01 UTC (permalink / raw)
To: Roland Kammerer; +Cc: drbd-dev
Hi,
[ Please Cc to me, I'm not subscribed to this mailing list ]
On Mon, 2022-11-14 at 09:52, Roland Kammerer wrote:
> On Mon, Nov 07, 2022 at 01:08:14PM +0100, Milan P. Stanić wrote:
> > Hi,
> >
> > [ Please Cc to me, I'm not subscribed to this mailing list ]
> >
> > I'm trying to build drbd-tools 9.22.0 on Alpine Linux which is based on
> > musl libc (and not glibc).
> >
> > [...]
> >
> > Musl libc glob.h doesn't have gl_flags nor GLOB_MAGCHAR because it is
> > non standard glibc extension.
>
> thanks for reporting, this should be fixed in
> https://github.com/LINBIT/drbd-utils/commit/33d5e8f7066116bd0a706c7cdda4950895164d34
>
> > I reverted https://github.com/LINBIT/drbd-utils/commit/4a1b590090bf676cdfb10c198505b95b9eeb3120
> > commit and then drbd-tools builds fine.
> >
> > Not sure is this revert safe to push drbd-utils in next Alpine release
> > (which planned for next week) or there is better fix.
>
> I think reverting for now is perfectly fine, this deserved a fix, but I
> don't think it actually happened in the wild that often... Or you pick
> the proposed fix, which would be a good test for us as well. Currently
I picked above commit and build with it passed fine.
Thank you for fix.
> I'm not sure when the next official release will be done, current gut
> feeling is not enough interesting things people would wait for has have
> happened.
--
Kind regards
>
> Regards, rck
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-14 18:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-07 12:08 [Drbd-dev] [BUG] drbdadm_parser.c:1968:63: error: 'glob_t' has no member named 'gl_flags' Milan P. Stanić
2022-11-14 8:52 ` Roland Kammerer
2022-11-14 18:01 ` Milan P. Stanić
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox