Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130929215754.GN20515@brightrain.aerifal.cx>
Date: Sun, 29 Sep 2013 17:57:54 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: GLOB_BRACE

On Sun, Sep 29, 2013 at 05:51:16PM -0400, Anthony G. Basile wrote:
> On 09/27/2013 09:06 AM, Daniel Cegiełka wrote:
> >2013/9/27 Anthony G. Basile <basile@...nsource.dyc.edu>:
> >
> >>Also openrc
> >>doesn't build on musl and its still required for some fundamental gentoo
> >>pieces, even though it competes with systemd.
> >
> >Could you describe compilation errors (temp/build.log)? Try patches...
> >
> >Daniel
> >
> 
> sysvinit was easy to fix, there was just a missing #include
> <sys/ttydefaults.h>.
> 
> openrc-0.11.8 is dying on the following:
> 
> x86_64-gentoo-linux-musl-gcc -I../includes -D_BSD_SOURCE
> -D_XOPEN_SOURCE=700  -DHAVE_TERMCAP -MM libeinfo.c > .depend
> make[2]: Leaving directory `/var/tmp/portage/sys-apps/openrc-0.11.8/work/openrc-0.11.8/src/libeinfo'
> make[2]: Entering directory `/var/tmp/portage/sys-apps/openrc-0.11.8/work/openrc-0.11.8/src/libeinfo'
> x86_64-gentoo-linux-musl-gcc -fPIC -DPIC -I../includes -D_BSD_SOURCE
> -D_XOPEN_SOURCE=700  -DHAVE_TERMCAP -Os -pipe -fomit-frame-pointer
> -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2
> -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn
> -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings
> -Wcast-align -Wcast-qual -Wpointer-arith
> -Wdeclaration-after-statement -Wsequence-point   -c libeinfo.c -o
> libeinfo.So
> In file included from libeinfo.c:53:0:
> einfo.h:54:1: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'typedef'
> einfo.h:65:1: warning: parameter names (without types) in function
> declaration [enabled by default]
> einfo.h:124:20: error: unknown type name 'ECOLOR'
> einfo.h:143:1: warning: data definition has no type or storage class
> [enabled by default]
> einfo.h:143:1: warning: type defaults to 'int' in declaration of
> '__END_DECLS' [enabled by default]
> In file included from libeinfo.c:54:0:
> 
> 
> which can be fixed by commentin out __BEGIN_DECLS and __END_DECLS.

Or, if the header is intended to be usable from C++, by adding the
correct #ifdef __cplusplus / extern "C" { / #endif, etc. blocks.

> It then dies on
> 
> make[2]: Leaving directory `/var/tmp/portage/sys-apps/openrc-0.11.8/work/openrc-0.11.8/src/librc'
> make[2]: Entering directory `/var/tmp/portage/sys-apps/openrc-0.11.8/work/openrc-0.11.8/src/librc'
> cc -O2 -g -std=c99 -Wall -Wextra -Wimplicit -Wshadow -Wformat=2
> -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn
> -Wmissing-format-attribute -Wnested-externs -Winline -Wwrite-strings
> -Wcast-align -Wcast-qual -Wpointer-arith
> -Wdeclaration-after-statement -Wsequence-point   -I../includes
> -D_BSD_SOURCE -D_XOPEN_SOURCE=700  -c librc.c -o librc.o
> In file included from librc.h:67:0,
>                  from librc.c:33:
> rc.h:30:23: fatal error: sys/queue.h: No such file or directory
> compilation terminated.

sys/queue.h is a library in a header file. You can obtain a copy of it
from a glibc system (it's BSD licensed) or a number of other systems.
It's fully self-contained in the header file and there's no reason for
it to be part of libc.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.