linux-atm emake failed [SOLVED]

почитал http://gentoo-wiki.com/Safe_Cflags
поправил CFLAGS="-march=k8 -O2 -pipe"
в процессе пересборки всей системы наткнулся на ошибку... что делать ума не приложу

***********
creating atmarp
gcc -DHAVE_CONFIG_H -I. -I. -I../..     -I../../src/include -march=k8 -O2 -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prot
otypes -c atmarpd.c
gcc -DHAVE_CONFIG_H -I. -I. -I../..     -I../../src/include -march=k8 -O2 -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prot
otypes -c arp.c
gcc -DHAVE_CONFIG_H -I. -I. -I../..     -I../../src/include -march=k8 -O2 -pipe -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prot
otypes -c io.c
In file included from /usr/include/linux/netdevice.h:29,
                 from /usr/include/linux/if_arp.h:27,
                 from io.c:25:
/usr/include/linux/if.h:118: error: redefinition of 'struct ifmap'
/usr/include/linux/if.h:154: error: redefinition of 'struct ifreq'
/usr/include/linux/if.h:204: error: redefinition of 'struct ifconf'
io.c: In function 'accept_new':
io.c:281: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
io.c:296: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
io.c: In function 'get_local':
io.c:618: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
make[3]: *** [io.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1-r1/work/linux-atm-2.4.1/src/arpd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1-r1/work/linux-atm-2.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1-r1/work/linux-atm-2.4.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: net-dialup/linux-atm-2.4.1-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 608:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Регистрируйтесь в оффициальной багзилле и ищите там. Возможно, поможет установка кейворда ~ для этого пакета.
---
Поискал в багзилле. Предлагают костыль, но, видимо, работающий. Вот он:

Add "sys-kernel/linux-headers ~x86" to "/etc/portage/package.keywords"

Only put "x86" in there if you are using an Intel processor, alternatively you
might be using an AMD chip with 64 bit support in which case you would put
~amd64 in there instead.

Then "emerge -u --oneshot linux-headers && emerge linux-atm"

This will upgrade linux-headers and install linux-atm.

Then remove "sys-kernel/linux-headers ~x86" from
"/etc/portage/package.keywords".

and "emerge -u --oneshot linux-headers".

This will downgrade linux-headers back to stable but you will still have
linux-atm installed.

You don't need to recompile or upgrade your kernel or gcc or anything like
that.

I'm assuming this hasn't been fixed yet because linux-headers-2.6.19 should be
stable any day now. Still it would've been nice for a dev to have said this or
for an announcement on the forums or in newsletter.

Incidentally devs there is exactly the same problem with stable 64 bit
linux-headers.

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".