[Galaxy S Advance I9070 General] iiD4x:
Help [MENTION=5093942]KINGbabasula[/MENTION]

Install: /home/d4x/mahdiR/out/target/product/janice/system/xbin/rawbu
Install: /home/d4x/mahdiR/out/target/product/janice/system/xbin/showmap
target Strip: recovery (/home/d4x/mahdiR/out/target/product/janice/obj/EXECUTABLES/recovery_intermediates/recovery)
Copying: /home/d4x/mahdiR/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-honeycomb-mr2_intermediates/emma_out/lib/classes-jarjar.jar
target SharedLib: libmemtrack (/home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libmemtrack_intermediates/LINKED/libmemtrack.so)
target SharedLib: libutils (/home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so)
target SharedLib: libhardware_legacy (/home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/LINKED/libhardware_legacy.so)
/home/d4x/mahdiR/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: /home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/../../device/samsung/janice/vibrator/vibrator.o: multiple definition of 'vibrator_on'
/home/d4x/mahdiR/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: /home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/vibrator/vibrator.o: previous definition here
/home/d4x/mahdiR/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: error: /home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/../../device/samsung/janice/vibrator/vibrator.o: multiple definition of 'vibrator_off'
/home/d4x/mahdiR/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: /home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/vibrator/vibrator.o: previous definition here
hardware/libhardware_legacy/vibrator/vibrator.c:76: error: undefined reference to 'sendit'
hardware/libhardware_legacy/vibrator/vibrator.c:81: error: undefined reference to 'sendit'
collect2: error: ld returned 1 exit status
make: *** [/home/d4x/mahdiR/out/target/product/janice/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/LINKED/libhardware_legacy.so] Error 1
make: *** Waiting for unfinished jobs....
external/busybox/debianutils/mktemp.c:96: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Solved + sorry :D

the fix : Go to /hardware/libhardware_legacy/vibrator open Android.mk

make it like this

# Copyright 2006 The Android Open Source Project

## Must point to a source file that implements the sendit() function
ifneq ($(BOARD_HAS_VIBRATOR_IMPLEMENTATION),)
LOCAL_SRC_FILES += $(BOARD_HAS_VIBRATOR_IMPLEMENTATION)
LOCAL_CFLAGS += -DUSE_ALTERNATIVE_VIBRATOR
else
LOCAL_SRC_FILES += vibrator/vibrator.c
endif