You probably have solved it. I just encountered the same problem. It turns out bionic has a file with the same name "util.h". It confuses the compiler.
bionic/libc/include/util.h Archer On Mar 18, 2:57 am, bourne <[email protected]> wrote: > Hi everybody > > I am trying to portIperf(opensource performance measurement tool for > wireless Lan) in Android, but i am facing some problems. > i have put the source in external folder asiperfand then i have > written an Android.mk foriperf. My makefile looks like this... > > LOCAL_PATH := $(call my-dir) > > L_DEFS := -DHAVE_CONFIG_H > L_CFLAGS := $(L_DEFS) > #L_USE_CPU_SOURCE := netcpu_none.c > > INCLUDES += external/iperf/compat/ > INCLUDES += external/iperf/src/ > INCLUDES += external/iperf/include/ > INCLUDES += external/iperf/ > #INCLUDES += bionic/libc/include/ > #INCLUDES += external/src/dongle/ > > OBJS += compat/Thread.c \ > compat/error.c \ > compat/delay.cpp \ > compat/gettimeofday.c \ > compat/inet_ntop.c \ > compat/inet_pton.c \ > compat/signal.c \ > compat/snprintf.c \ > compat/string.c \ > src/Extractor.c \ > src/Locale.c \ > src/service.c \ > src/Launch.cpp \ > src/Client.cpp \ > src/List.cpp \ > src/Listener.cpp \ > src/PerfSocket.cpp \ > src/ReportCSV.c \ > src/ReportDefault.c \ > src/ReportDefault.c \ > src/Reporter.c \ > src/Server.cpp \ > src/Settings.cpp \ > src/SocketAddr.c \ > src/gnu_getopt.c \ > src/gnu_getopt_long.c \ > src/sockets.c \ > src/stdio.c \ > src/tcp_window_size.c \ > src/main.cpp > > iperf_SOURCES := $(OBJS) > #netserver_SOURCES := netserver.c $(L_COMMON_SRC) $(L_USE_CPU_SOURCE) > > #include $(CLEAR_VARS) > #LOCAL_MODULE :=iperf > #LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) > ##LOCAL_MODULE_TAGS := tests eng > #LOCAL_SHARED_LIBRARIES := libc libm libcutils libnetutils > #LOCAL_CFLAGS := $(L_CFLAGS) > #LOCAL_C_INCLUDES := $(INCLUDES) > #LOCAL_SRC_FILES := $(OBJS_COMPAT) > #include $(BUILD_EXECUTABLE) > include $(CLEAR_VARS) > LOCAL_MODULE :=iperf > LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) > #LOCAL_MODULE_TAGS := tests eng > LOCAL_SHARED_LIBRARIES := libc libm libcutils libnetutils > LOCAL_CFLAGS := $(L_CFLAGS) > LOCAL_C_INCLUDES := $(INCLUDES) > LOCAL_SRC_FILES := $(iperf_SOURCES) > include $(BUILD_EXECUTABLE) > > **************************************************** > > But it stops the compilation by giving a error like this... > external/iperf/compat/signal.c:136: error: expected '=', ',', ';', > 'asm' or '__attribute__' before 'my_signal' > > its making .o for all the files in compat folder except signal.c , > only signal.d is created! > > ***************************************************** > > iperfcode can be downloaded easily from opensource code repo! > > Can anyone suggest me what to do to build the tool? > > regards > Bourne --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
