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