On 09/25/2009 07:08 PM, Hung Dang wrote:
Nikos Chantziaras wrote:
On 09/25/2009 03:22 AM, Hung Dang wrote:
walt wrote:
On 09/24/2009 02:06 PM, Hung Dang wrote:
Hi all,
I get the following errors when compiling net-misc/dhcpcd-5.1.1. Do
you
know which package net/if_dl.h and net80211/ieee80211_ioctl.h are
belong to?
if-bsd.c:37:23: error: net/if_dl.h: No such file or directory
if-bsd.c:43:40: error: net80211/ieee80211_ioctl.h: No such file or
directory
[...]
This is a AMD64 system.
[...]
If this is an AMD64 system, then something has gone totally haywire;
the errors you posted indicate that dhcpcd thinks it's being compiled
on BSD. "if-bsd.c" is a source file that does not get compiled on
Linux; "if-linux.c" does.
Can you post your "emerge --info"? Maybe someone can spot something
wrong in it.
[...] Please find the output of emerge --info in the attached file.
Again, my system only has problem with dhcpcd 5.1.* and it can compile
dhcpcd 5.0.6 without any problem.
Our configuration is very similar; same GCC and glibc, same binutils,
same baselayout and openrc, etc. I can't see anything wrong. I even
tried it by setting all my USE flags the same way as you, but still I
can't reproduce the problem.
Does it compile OK if you do it manually?
(you don't have to be root)
cd ~
tar -xjf /usr/portage/distfiles/dhcpcd-5.1.1.tar.bz2
cd dhcpcd-5.1.1
./configure (ignore the errors from _arc4random/_closefrom/_strlcpy)
make
What output do you get from that? It should begin with:
Configuring dhcpcd for ... linux
Looking for compiler ... gcc
The crucial part is "for ... linux".