[eside-ghost] Compilacion erronea
CALRISSIAN
CALRISSIAN en teleline.es
Mie Nov 19 11:37:03 CET 2003
Epa peña.
Veamos; tengo un problema al compilar un proyecto sobre linux en el que
estoy trabajando. El caso, es que necesito utilizar la STL, y al hacer
un #include <list> me da un error de conflicting types.
El proyecto esta desarrollado con "Reading specs from
/usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)"
El tema raro, es que en casa, estoy casi completamente seguro que no me
daba el error este, pero aqui en la 105 peta por todos los lados. No se
si sera por la version del compilador o algo ( en casa tengo Sid, pero
no he actualizado el compilador en un tiempo, y en la 105 la version del
compilador es relativamente nueva.
Os adjunto el error, por si algun jarto se iluman :P
El proyecto necesita incluir cabeceras del kernel para saber el formato
de un ELF ( Executable and Linking Format ).
Gracias por adelantado
Jon Fernandez "antilles"
antilles en 105L41:~/programacion/idElf$ make
make all-recursive
make[1]: Entering directory `/home/antilles/programacion/idElf'
Making all in include
make[2]: Entering directory `/home/antilles/programacion/idElf/include'
make[2]: No se hace nada para `all'.
make[2]: Leaving directory `/home/antilles/programacion/idElf/include'
Making all in src
make[2]: Entering directory `/home/antilles/programacion/idElf/src'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -c
elfSectionList.cpp
In file included from /usr/include/stdlib.h:416,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:50,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/list:30,
from ../include/elfSectionList.h:5,
from elfSectionList.cpp:1:
/usr/include/sys/types.h:208: warning: `__BIT_TYPES_DEFINED__' redefined
/usr/include/linux/types.h:106: warning: this is the location of the
previous definition
In file included from /usr/include/sys/select.h:31,
from /usr/include/sys/types.h:216,
from /usr/include/stdlib.h:416,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:50,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/list:30,
from ../include/elfSectionList.h:5,
from elfSectionList.cpp:1:
/usr/include/bits/select.h:35: warning: `__FD_ZERO' redefined
/usr/include/asm/posix_types.h:78: warning: this is the location of the
previous definition
/usr/include/bits/select.h:41: warning: `__FD_SET' redefined
/usr/include/asm/posix_types.h:54: warning: this is the location of the
previous definition
/usr/include/bits/select.h:46: warning: `__FD_CLR' redefined
/usr/include/asm/posix_types.h:59: warning: this is the location of the
previous definition
/usr/include/bits/select.h:55: warning: `__FD_ISSET' redefined
/usr/include/asm/posix_types.h:67: warning: this is the location of the
previous definition
In file included from /usr/include/stdlib.h:416,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:50,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/list:30,
from ../include/elfSectionList.h:5,
from elfSectionList.cpp:1:
/usr/include/sys/types.h:62: conflicting types for `typedef __dev_t dev_t'
/usr/include/linux/types.h:23: previous declaration as `typedef
__kernel_dev_t dev_t'
/usr/include/sys/types.h:67: conflicting types for `typedef __gid_t gid_t'
/usr/include/linux/types.h:52: previous declaration as `typedef
__kernel_gid_t gid_t'
/usr/include/sys/types.h:72: conflicting types for `typedef __mode_t mode_t'
/usr/include/linux/types.h:25: previous declaration as `typedef
__kernel_mode_t mode_t'
/usr/include/sys/types.h:77: conflicting types for `typedef __nlink_t
nlink_t'
/usr/include/linux/types.h:26: previous declaration as `typedef
__kernel_nlink_t nlink_t'
/usr/include/sys/types.h:82: conflicting types for `typedef __uid_t uid_t'
/usr/include/linux/types.h:51: previous declaration as `typedef
__kernel_uid_t uid_t'
In file included from /usr/include/sys/types.h:216,
from /usr/include/stdlib.h:416,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_algobase.h:50,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/list:30,
from ../include/elfSectionList.h:5,
from elfSectionList.cpp:1:
/usr/include/sys/select.h:78: conflicting types for `typedef struct
fd_set fd_set'
/usr/include/linux/types.h:22: previous declaration as `typedef struct
__kernel_fd_set fd_set'
make[2]: *** [elfSectionList.o] Error 1
make[2]: Leaving directory `/home/antilles/programacion/idElf/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/antilles/programacion/idElf'
make: *** [all-recursive-am] Error 2
antilles en 105L41:~/programacion/idElf$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)