Ubuntu cross-compilation: error: two or more data types in declaration specifiers

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Mar 3 15:03:47 EET 2011


2011/3/3 Antonis Christofides <anthony at itia.ntua.gr>:
> Προσπαθώ σε ένα i386 Ubuntu 10.04 να compile ένα kernel για powerpc.
> Ακολουθώ αυτές τις οδηγίες: http://wiki.debian.org/BuildingCrossCompilers
>
> Όταν προσπαθώ να build το binutils με το εξής:
> fakeroot debian/rules binary-cross
>
> τότε παίρνω το εξής αποτέλεσμα:
>
> [snip]
> make[3]: Entering directory
> `/home/anthony/cross-toolchain/binutils-2.20.1/builddir-powerpc-linux-gnu/libiberty'
> if [ x"-fpic" != x ]; then \
> gcc -c -DHAVE_CONFIG_H -g -O2 -Wno-format-security -I.
> -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat
> -Wstrict-prototypes -pedantic -fpic ../../libiberty/regex.c -o pic/regex.o;
> \
> else true; fi
> In file included from /usr/include/stdlib.h:320,
> from ../../libiberty/regex.c:128:
> /usr/include/sys/types.h:100: error: two or more data types in declaration
> specifiers
> make[3]: *** [regex.o] Error 1

Τι έχει όμως η αντίστοιχη γραμμή.  Σε μένα (Ubuntu 10.04 LTS) έχει τα
εξής, αλλά μπορεί να διαφέρει από έκδοση σε έκδοση:

     99 #ifndef __pid_t_defined
    100 typedef __pid_t pid_t;
    101 # define __pid_t_defined
    102 #endif



More information about the Linux-greek-users mailing list