From: Isaac Dunham <idunham@lavabit.com>
To: musl@lists.openwall.com
Subject: Re: musl vs wireless-tools
Date: Fri, 20 Apr 2012 09:23:11 -0700 [thread overview]
Message-ID: <20120420092311.494115ac@newbook> (raw)
In-Reply-To: <20120420153918.GD14673@brightrain.aerifal.cx>
[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]
On Fri, 20 Apr 2012 11:39:18 -0400
Rich Felker <dalias@aerifal.cx> wrote:
> On Fri, Apr 20, 2012 at 08:33:11AM -0700, Isaac Dunham wrote:
> > wireless-tools (version 30-pre9 from Ubuntu's repos tested) appears
> > to _hate_ musl...
> > I have yet to figure out exactly where the problem is.
> > Part of it seems to be __* macros; one of the headers
> >
> > Note-Ignore the "missing" headers other than those under linux/
> > I just ran a script that tested whether all headers could be found
> > in the musl include dir; the other headers (rfkill.h, etc) are
> > included in the sources.
> >
> > It looks like some of it may be use of linux/ headers instead of
> > sys/ headers, from checking the patches.
>
> asm/* and asm-generic/* are linux headers. If you've installed the
> linux kernel headers, all should be fine. Personally I install them
> under an alternate path and only add -I for this path when building
> programs that actually have a reason to be looking at Linux headers..
Getting farther...
But still not working.
Here it looks like musl-gcc may be forgetting the -lm I gave it.
Isaac Dunham
[-- Attachment #2: make.errs --]
[-- Type: application/octet-stream, Size: 865 bytes --]
musl-gcc -Os -W -Wall -Wstrict-prototypes -I. -DIW_USES_ITS_OWN_DOGFOOD -I/opt/musl/linux-headers/include -D_GNU_SOURCE -MMD -fPIC -c -o iwlib.so iwlib.c
musl-gcc -shared -o libiw.so.30 -Wl,-soname,libiw.so.30 -lm -lc iwlib.so
musl-gcc -Os -W -Wall -Wstrict-prototypes -I. -DIW_USES_ITS_OWN_DOGFOOD -I/opt/musl/linux-headers/include -D_GNU_SOURCE -MMD -c iwconfig.c
musl-gcc -Os -W -Wall -Wstrict-prototypes -I. -DIW_USES_ITS_OWN_DOGFOOD -I/opt/musl/linux-headers/include -D_GNU_SOURCE -MMD -o iwconfig iwconfig.o libiw.so.30
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000008048c68
libiw.so.30: undefined reference to `ceil'
libiw.so.30: undefined reference to `floor'
libiw.so.30: undefined reference to `pow'
libiw.so.30: undefined reference to `log10'
collect2: ld returned 1 exit status
make: *** [iwconfig] Error 1
next prev parent reply other threads:[~2012-04-20 16:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 15:33 Isaac Dunham
2012-04-20 15:39 ` Rich Felker
2012-04-20 16:23 ` Isaac Dunham [this message]
2012-04-20 16:41 ` Rich Felker
2012-04-20 17:00 ` Isaac Dunham
2012-04-20 19:05 ` Isaac Dunham
2012-04-21 22:56 ` Isaac Dunham
2012-04-22 5:40 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120420092311.494115ac@newbook \
--to=idunham@lavabit.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).