cupcake在ubuntu9.10下编译出错信息

1./home/jeff/bin/build_android.sh: 13: Syntax error: "(" unexpected

#!/bin/sh -->  #!/bin/bash

 

2.frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone)。 停止。

build/tools/findleaves.sh

#find "${@:0:$nargs}" $findargs -type f -name "$filename" -print |

find "${@:1:$nargs-1}" $findargs -type f -name "$filename" -print |

 

3.frameworks/base/tools/aidl/AST.cpp:155: error: ‘fprintf’ was not declared in this scope

 sudo apt-get install gcc-4.3 g++-4.3

jeff@jeff-desktop:/usr/bin$ sudo rm gcc

jeff@jeff-desktop:/usr/bin$ sudo ln -s gcc-4.3 gcc

jeff@jeff-desktop:/usr/bin$ ls -l gcc*

lrwxrwxrwx 1 root root      7 2010-02-23 12:15 gcc -> gcc-4.3

-rwxr-xr-x 1 root root 208128 2009-10-04 12:51 gcc-4.3

-rwxr-xr-x 1 root root 220484 2010-01-10 23:56 gcc-4.4

jeff@jeff-desktop:/usr/bin$ sudo rm g++

jeff@jeff-desktop:/usr/bin$ sudo ln -s g++-4.3 g++

jeff@jeff-desktop:/usr/bin$ ls -l g++*

lrwxrwxrwx 1 root root      7 2010-02-23 12:16 g++ -> g++-4.3

-rwxr-xr-x 1 root root 212224 2009-10-04 12:49 g++-4.3

-rwxr-xr-x 1 root root 220484 2010-01-10 23:53 g++-4.4

jeff@jeff-desktop:/usr/bin$ 

 

4.external/qemu/sockets.c: In function ‘sock_address_init_resolve’:

external/qemu/sockets.c:637: error: ‘EAI_NODATA’ undeclared (first use in this function)

external/qemu/sockets.c:637: error: (Each undeclared identifier is reported only once

external/qemu/sockets.c:637: error: for each function it appears in.)

make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/sockets.o] 错误 1

external/qemu/Makefile.android

ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86)

#  MY_CFLAGS += -Wa,--32

   MY_CFLAGS += -Wa,--32 -D_GNU_SOURCE

endif

or below:

external/qemu/sockets.c

   /* case EAI_NODATA: */

      case EAI_NONAME:

err = ENOENT;

break;

5.target Generated: libext <= 

/bin/bash: external/iptables/extensions/create_initext: Permission denied

make: *** [out/target/product/smdk6410/obj/STATIC_LIBRARIES/libext_intermediates/extensions/gen_initext.c] 错误 126

make: *** 正在删除文件“out/target/product/smdk6410/obj/STATIC_LIBRARIES/libext_intermediates/extensions/gen_initext.c”

sudo chmod 777 external/iptables/extensions/create_initext

你可能感兴趣的:(function,gcc,Module,ubuntu,each,2010)