View previous topic :: View next topic |
Author |
Message |
Gotterdammerung l33t
Joined: 11 Feb 2004 Posts: 627 Location: Rio de Janeiro, Brazil
|
Posted: Wed May 12, 2004 1:50 pm Post subject: erro de compilação |
|
|
eu fui tentar fazer um emerge -e world, e encontrei o seguinte erro:
Code: |
In file included from sys-linux.c:56:
/usr/include/net/if.h:79:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/route.h:26,
from /usr/src/linux/include/net/route.h:33,
from sys-linux.c:58:
/usr/src/linux/include/linux/if.h:92: error: redefinition of `struct ifmap'
/usr/src/linux/include/linux/if.h:128: error: redefinition of `struct ifreq'
/usr/src/linux/include/linux/if.h:178: error: redefinition of `struct ifconf'
In file included from sys-linux.c:58:
/usr/src/linux/include/net/route.h:38:2: warning: #warning This file is not supposed to be used outside of kernel.
In file included from sys-linux.c:58:
/usr/src/linux/include/net/route.h:54: error: field `dst' has incomplete type
/usr/src/linux/include/net/route.h:117: error: syntax error before "old_gw"
/usr/src/linux/include/net/route.h:123: warning: `struct sock' declared inside parameter list
/usr/src/linux/include/net/route.h:123: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/src/linux/include/net/route.h:124: error: syntax error before "u32"
/usr/src/linux/include/net/route.h:128: error: syntax error before "addr"
/usr/src/linux/include/net/route.h:131: error: syntax error before '*' token
/usr/src/linux/include/net/route.h:132: warning: `struct netlink_callback' declared inside parameter list
/usr/src/linux/include/net/route.h:144: error: syntax error before "tos"
/usr/src/linux/include/net/route.h: In function `rt_tos2priority':
/usr/src/linux/include/net/route.h:146: error: `tos' undeclared (first use in this function)
/usr/src/linux/include/net/route.h: At top level:
/usr/src/linux/include/net/route.h:149: error: syntax error before "u32"
/usr/src/linux/include/net/route.h: In function `ip_route_connect':
/usr/src/linux/include/net/route.h:153: error: `oif' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:154: error: `dst' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:155: error: `src' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:156: error: `tos' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:157: error: `protocol' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:159: error: `sport' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:160: error: `dport' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:164: error: `rp' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:172: error: `sk' undeclared (first use in this function)
/usr/src/linux/include/net/route.h: At top level:
/usr/src/linux/include/net/route.h:175: error: syntax error before "u16"
/usr/src/linux/include/net/route.h: In function `ip_route_newports':
/usr/src/linux/include/net/route.h:178: error: `sport' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:178: error: `rp' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:179: error: `dport' undeclared (first use in this function)
/usr/src/linux/include/net/route.h:187: error: `sk' undeclared (first use in this function)
In file included from sys-linux.c:67:
/usr/include/netinet/in.h: At top level:
/usr/include/netinet/in.h:35: error: syntax error before numeric constant
/usr/include/netinet/in.h:57: error: syntax error before numeric constant
/usr/include/netinet/in.h:69: error: syntax error before numeric constant
/usr/include/netinet/in.h:194: error: redefinition of `struct in6_addr'
/usr/include/netinet/in.h:234: error: redefinition of `struct sockaddr_in6'
/usr/include/netinet/in.h:244: error: redefinition of `struct ipv6_mreq'
In file included from sys-linux.c:73:
pppd.h:437: error: `info' redeclared as different kind of symbol
/usr/src/linux/include/net/dst.h:79: error: previous declaration of `info'
pppd.h:440: error: `error' redeclared as different kind of symbol
/usr/src/linux/include/net/dst.h:63: error: previous declaration of `error'
pppd.h:511: error: `output' redeclared as different kind of symbol
/usr/src/linux/include/net/dst.h:70: error: previous declaration of `output'
/usr/src/linux/include/net/dst.h:77: error: storage size of `rcu_head' isn't known
make[1]: ** [sys-linux.o] Erro 1
make[1]: ** Esperando que outros processos terminem.
make[1]: Leaving directory `/var/tmp/portage/ppp-2.4.1-r14/work/ppp-2.4.1.pppoe4/pppd'
make: ** [all] Erro 2
!!! ERROR: net-dialup/ppp-2.4.1-r14 failed.
!!! Function src_compile, Line 86, Exitcode 2
!!! (no error message)
|
alguém tem alguma idéia de como fazer para corrigir isso ou, pelo menos, passar por cima e continuar o emerge?
meus dados de compilação:
Code: |
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe -I /usr/src/linux/include"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -I /usr/src/linux/include"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb cdr cmipci crypt cups dvd encode esd foomaticdb gdbm gif gpm gtk gtk2 hardened imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
|
_________________ A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes |
|
Back to top |
|
|
jbrazio Apprentice
Joined: 13 Dec 2002 Posts: 232 Location: .pt
|
Posted: Mon May 17, 2004 2:21 am Post subject: |
|
|
Chegas-te a resolver esta questão ? Era para fazer o meu primeiro emerge -e world num sistema 1.4 e agora estou de pé atrás.. _________________ "Assim como falham as palavras quando querem exprimir qualquer
pensamento, assim falham os pensamentos quando querem exprimir
qualquer realidade." -- Fernando Pessoa |
|
Back to top |
|
|
Kobal Guru
Joined: 12 Feb 2004 Posts: 323 Location: Brasil / Brazil / Brésil / Brasilien / el Brasil
|
Posted: Mon May 17, 2004 3:44 am Post subject: |
|
|
Pra que serve o emerge -e world ?
Eu cheguei a testar ate desanimei.
bash-2.05b# >>> emerge (1 of 187) sys-devel/gnuconfig-20040214 |
|
Back to top |
|
|
Gotterdammerung l33t
Joined: 11 Feb 2004 Posts: 627 Location: Rio de Janeiro, Brazil
|
Posted: Mon May 17, 2004 3:23 pm Post subject: |
|
|
O emerge -e world serve para recompilar todos os pacotes do sistema, tornando-o ainda mais otimizado para o seu hardware.
No meu caso, eu não cheguei a resolver os erros, mas consegui passar por eles usando, após o erro, o comando emerge --resume --skipfirst, que continuava a compilação ignorando o último erro.
É necessário observar que, caso você execute (na mesma sessão) um outro comando emerge entre esses dois, o histórico da compilação vai se perder, e para recompilar tudo, você vai ser que reiniciar o processo.
Assim, para evitar dores de cabeça, recomendo fazer algo do tipo: emerge -e world; emerge --resume --skipfirst; emerge --resume --skipfirst; emerge --resume --skipfirst
Isso deve resolver o problema. _________________ A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes |
|
Back to top |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Tue May 18, 2004 8:36 am Post subject: |
|
|
Scitale: estás com o systema como ~x86? Já me aconteceu apanhar alguns packages com problemas e falhar a meio de um emerge -e world, não é comum mas já me aconteceu. Tenta verificar se pelo https://bugs.gentoo.org existe algum work around.
Tó _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
Gotterdammerung l33t
Joined: 11 Feb 2004 Posts: 627 Location: Rio de Janeiro, Brazil
|
Posted: Tue May 18, 2004 12:27 pm Post subject: |
|
|
To wrote: | Scitale: estás com o systema como ~x86? Já me aconteceu apanhar alguns packages com problemas e falhar a meio de um emerge -e world, não é comum mas já me aconteceu. Tenta verificar se pelo https://bugs.gentoo.org existe algum work around.
Tó |
Somente os pacotes abaixo estão com ~x86. Deve ser viadagem do Linux...
Code: | media-video/nvidia-kernel ~x86
media-video/nvidia-glx ~x86
x11-base/xorg-x11 ~x86
x11-misc/superkaramba ~x86
x11-misc/karamba ~x86
x11-terms/xterm ~x86
sys-apps/utempter ~x86
media-libs/win32codecs ~x86
net-misc/rsync ~x86
x11-misc/xnview ~x86
media-video/kaffeine ~x86 |
_________________ A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes |
|
Back to top |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Tue May 18, 2004 2:51 pm Post subject: |
|
|
Experimenta fazer um emerge sync e depois um emerge -e system antes de fazeres o emerge -e world. Se não funcionar assim é mesmo bug e devias reporta-lo.
Tó _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
Gotterdammerung l33t
Joined: 11 Feb 2004 Posts: 627 Location: Rio de Janeiro, Brazil
|
Posted: Wed May 19, 2004 8:42 pm Post subject: |
|
|
To wrote: | Experimenta fazer um emerge sync e depois um emerge -e system antes de fazeres o emerge -e world. Se não funcionar assim é mesmo bug e devias reporta-lo.
Tó |
Tó, eu fiz o emerge sync, mas acabei encontrando problemas em fazer o emerge do sash. Esse problema eu corrigi alterando o ebuild. No make da função src_compile eu acrescentei a diretiva -i, aí deu certo. _________________ A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes |
|
Back to top |
|
|
|