whenever i try to compile the samsung stock 4.4.2 kernel i m getting this error
CC arch/arm/mach-msm/board-8930-display.o
arch/arm/mach-msm/board-8930-display.c: In function 'mipi_dsi2lvds_cdp_panel_power':
arch/arm/mach-msm/board-8930-display.c:577:3: error: implicit declaration of function 'msm_xo_get' [-Werror=implicit-function-declaration]
arch/arm/mach-msm/board-8930-display.c:577:26: error: 'MSM_XO_TCXO_A1' undeclared (first use in this function)
arch/arm/mach-msm/board-8930-display.c:577:26: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/board-8930-display.c:663:3: error: implicit declaration of function 'msm_xo_mode_vote' [-Werror=implicit-function-declaration]
arch/arm/mach-msm/board-8930-display.c:663:31: error: 'MSM_XO_MODE_ON' undeclared (first use in this function)
arch/arm/mach-msm/board-8930-display.c:671:31: error: 'MSM_XO_MODE_OFF' undeclared (first use in this function)
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/board-8930-display.o] Error 1
make: *** [arch/arm/mach-msm] Error 2 }
this is the lines the terminal pointed to in board-8930-display.c
rfa_clock = msm_xo_get (MSM_XO_TCXO_A1, id); /create a handle for Aq buffer of XO/
msm_xo_mode_vote(rfa_clock, MSM_XO_MODE_ON); /Vote to turn ON the clock buffer/
3.msm_xo_mode_vote(rfa_clock, MSM_XO_MODE_OFF); /Vote to turn OFF the clock buffer/
how can this be fixed ?
Related
I am trying to compile an android kernel and am getting this error:
mediatek/platform/mt6589/kernel/drivers/power/mt6320_battery.c: In function' BattThermistorConverTemp':
mediatek/platform/mt6589/kernel/drivers/power/mt6320_battery.c:1361:14: error: 'Batt_Temperature_Table' undeclared (first use in this function)
if(Res>= Batt_Temperature_Table[0].TemperatureR)
^
mediatek/platform/mt6589/kernel/drivers/power/mt6320_battery.c:1361:14: note: each undeclared identifier is reported only once for each function it appears in
CC [M] mediatek/platform/mt6589/kernel/drivers/masp/asf/core/alg_aes_so.o
CC [M] mediatek/platform/mt6589/kernel/drivers/dual_ccci/asf/core/sec_ops.o
make[2]: ** *[mediatek/platform/mt6589/kernel/drivers/power/mt6320_battery.o] Error 1
make[1]: ** *[mediatek/platform/mt6589/kernel/drivers/power] Error 2
make[1]: ** *Waiting for unfinished jobs....
Here is the code:
mt6320_battery.c: http://pastebin.com/thGQLNS9
mt6320_battery.h: http://pastebin.com/tfekgst6
I don't see anything wrong with the code. Please Help!
Thanks!
i am new in android ndk and i m making connection of java and c/c++ code and at last moment when i use ndk-build command then i got this error.
please help me to clear this problem.
I am working on ubuntu 12.04. and i got same error on both linux and windows and on windows i use using cygwin.
Error-
/home/saicomputer/android-ndk-r8e/build/core/add-application.mk:128: Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml
Compile thumb : myjni <= native.c
jni/native.c: In function 'Java_com_example_demo_MainActivity_hello':
jni/native.c:4:3: error: parameter name omitted
jni/native.c:4:3: error: parameter name omitted
jni/native.c:5:10: error: 'env' undeclared (first use in this function)
jni/native.c:5:10: note: each undeclared identifier is reported only once for each function it appears in
jni/native.c: In function 'Java_com_example_demo_MainActivity_add':
jni/native.c:9:3: error: parameter name omitted
jni/native.c:9:3: error: parameter name omitted
jni/native.c:9:3: error: parameter name omitted
jni/native.c:9:3: error: parameter name omitted
jni/native.c:10:9: error: 'value1' undeclared (first use in this function)
jni/native.c:10:18: error: 'value2' undeclared (first use in this function)
make: *** [obj/local/armeabi/objs/myjni/native.o] Error 1
please help me out to overcome this problem.
thanks.
I am trying to compile OpenSSH using the Android NDK, but failing.
My attempt consists of the following steps:
cross-compile OpenSSL for Android and install headers / libraries to /home/me/arm
grab OpenSSH 6.2p1 from here
extract the archive and run ./configure:
./configure --prefix=/home/me/arm \
--host=arm-linux-androideabi \
--with-ssl-dir=/home/me/arm
...which resulted in the following error:
getrrsetbyname.c:166:2: error: unknown type name 'HEADER'
modify the ./configure command to include:
ac_cv_search_getrrsetbyname=yes
...which fixed the one problem but still aborted with another error:
/usr/include/linux/un.h:17:8: error: redefinition of 'struct sockaddr_un'
modify the ./configure command again to include:
ac_cv_header_sys_un_h=yes
...which got me even further but still aborted with an error:
channels.c: In function 'channel_prepare_select':
channels.c:2143:2: warning: implicit declaration of function 'howmany'
[-Wimplicit-function-declaration]
channels.c:2145:45: error: 'fd_mask' undeclared (first use in this function)
Now I'm stuck. I've cracked open Android's sys/select.h and discovered that fd_mask isn't defined anywhere. I also was unable to find a ./configure option to work around this. There's also the issue with howmany() being undefined.
What changes do I need to make to get the program to compile?
Edit: I've managed to get a little bit further now. I've added the following line to ./configure to get past the "undefined fd_mask" error:
--with-cflags=-Dfd_mask=int
I then received the following error:
error: 'struct passwd' has no member named 'pw_gecos'
Android's passwd struct does not have a pw_gecos member. This one was impossible to correct without creating an actual patch for the source code. The patch is here.
I am now stuck with the following error:
dns.c: In function 'dns_result_totext':
dns.c:56:7: error: 'ERRSET_SUCCESS' undeclared (first use in this function)
dns.c:56:7: note: each undeclared identifier is reported only once for each
function it appears in
dns.c:58:7: error: 'ERRSET_NOMEMORY' undeclared (first use in this function)
...
Edit: I've made some modifications to the patch above that eliminate quite a few of the errors so far. I've also added ldns. The configure command now looks like this:
patch -p0 <openssh.patch;
autoconf;
./configure --prefix=/home/me/arm \
--host=arm-linux-androideabi \
--with-ldns=/home/me/arm \
--with-ssl-dir=/home/me/arm \
ac_cv_header_sys_un_h=yes
...and here is the new patch. The errors I get now are:
loginrec.c: In function 'construct_utmp':
loginrec.c:665:17: error: 'DEAD_PROCESS' undeclared (first use in this function)
loginrec.c:665:17: note: each undeclared identifier is reported only once for
each function it appears in
loginrec.c: At top level:
loginrec.c:727:45: warning: 'struct utmpx' declared inside parameter list
[enabled by default]
something i should mention that i add fuse support to the kernel,and it prompt such error duing make:
CC drivers/char/goldfish_tty.o
drivers/char/goldfish_tty.c: In function 'goldfish_tty_probe':
drivers/char/goldfish_tty.c:233: error: 'IO_START' undeclared (first use in this function)
drivers/char/goldfish_tty.c:233: error: (Each undeclared identifier is reported only once
drivers/char/goldfish_tty.c:233: error: for each function it appears in.)
make[2]: * [drivers/char/goldfish_tty.o] Error 1
make[1]: [drivers/char] Error 2
make: ** [drivers] Error 2
I am having some difficulty in a power file, and I can't see to resolve the issue. I am very new to programming, since I haven't done it since high school with VB. I am helping someone out with a android kernel development under 2.6.39 and most things are going well except we (and by that I mean me) are stuck on this
Error
CC arch/arm/mach-tegra/board-ventana-power.o
arch/arm/mach-tegra/board-ventana-power.c:110: error: variable 'sm0_config' has initializer but incomplete type
arch/arm/mach-tegra/board-ventana-power.c:111: error: unknown field 'sm_pwm_mode' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:111: error: 'PWM_DEFAULT_VALUE' undeclared here (not in a function)
arch/arm/mach-tegra/board-ventana-power.c:111: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:111: warning: (near initialization for 'sm0_config')
arch/arm/mach-tegra/board-ventana-power.c:112: error: unknown field 'slew_rate' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:112: error: 'SLEW_RATE_3520UV_PER_SEC' undeclared here (not in a function)
arch/arm/mach-tegra/board-ventana-power.c:112: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:112: warning: (near initialization for 'sm0_config')
arch/arm/mach-tegra/board-ventana-power.c:115: error: variable 'sm1_config' has initializer but incomplete type
arch/arm/mach-tegra/board-ventana-power.c:120: error: unknown field 'sm_pwm_mode' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:120: error: 'PWM_ONLY' undeclared here (not in a function)
arch/arm/mach-tegra/board-ventana-power.c:120: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:120: warning: (near initialization for 'sm1_config')
arch/arm/mach-tegra/board-ventana-power.c:121: error: unknown field 'slew_rate' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:121: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:121: warning: (near initialization for 'sm1_config')
arch/arm/mach-tegra/board-ventana-power.c:161: error: unknown field 'start' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:161: error: extra brace group at end of initializer
arch/arm/mach-tegra/board-ventana-power.c:161: error: (near initialization for 'rtc_data')
arch/arm/mach-tegra/board-ventana-power.c:165: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:165: warning: (near initialization for 'rtc_data')
arch/arm/mach-tegra/board-ventana-power.c:166: error: unknown field 'cl_sel' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:166: error: 'TPS6586X_RTC_CL_SEL_1_5PF' undeclared here (not in a function)
arch/arm/mach-tegra/board-ventana-power.c:167: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:167: warning: (near initialization for 'rtc_data')
arch/arm/mach-tegra/board-ventana-power.c:198: error: 'TPS6586X_INT_BASE' undeclared here (not in a function)
arch/arm/mach-tegra/board-ventana-power.c:201: error: 'TPS6586X_GPIO_BASE' undeclared here (not in a function)
arch/arm/mach-tegra/board-ventana-power.c:212: warning: 'enum suspend_stage' declared inside parameter list
arch/arm/mach-tegra/board-ventana-power.c:212: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-tegra/board-ventana-power.c:212: error: parameter 2 ('stg') has incomplete type
arch/arm/mach-tegra/board-ventana-power.c: In function 'ventana_board_suspend':
arch/arm/mach-tegra/board-ventana-power.c:214: error: 'TEGRA_SUSPEND_BEFORE_CPU' undeclared (first use in this function)
arch/arm/mach-tegra/board-ventana-power.c:214: error: (Each undeclared identifier is reported only once
arch/arm/mach-tegra/board-ventana-power.c:214: error: for each function it appears in.)
arch/arm/mach-tegra/board-ventana-power.c:215: error: implicit declaration of function 'tegra_console_uart_suspend'
arch/arm/mach-tegra/board-ventana-power.c: At top level:
arch/arm/mach-tegra/board-ventana-power.c:218: warning: 'enum resume_stage' declared inside parameter list
arch/arm/mach-tegra/board-ventana-power.c:218: error: parameter 2 ('stg') has incomplete type
arch/arm/mach-tegra/board-ventana-power.c: In function 'ventana_board_resume':
arch/arm/mach-tegra/board-ventana-power.c:220: error: 'TEGRA_RESUME_AFTER_CPU' undeclared (first use in this function)
arch/arm/mach-tegra/board-ventana-power.c:221: error: implicit declaration of function 'tegra_console_uart_resume'
arch/arm/mach-tegra/board-ventana-power.c: At top level:
arch/arm/mach-tegra/board-ventana-power.c:236: error: unknown field 'board_suspend' specified in initializer
#'error_mark' not supported by pp_c_direct_abstract_declarator#)'arch/arm/mach-tegra/board-ventana-power.c:236: error: incompatible types when initializing type 'enum tegra_suspend_mode' using type
arch/arm/mach-tegra/board-ventana-power.c:237: error: unknown field 'board_resume' specified in initializer
arch/arm/mach-tegra/board-ventana-power.c:237: warning: excess elements in struct initializer
arch/arm/mach-tegra/board-ventana-power.c:237: warning: (near initialization for 'ventana_suspend_data')
arch/arm/mach-tegra/board-ventana-power.c: In function 'ventana_regulator_init':
arch/arm/mach-tegra/board-ventana-power.c:249: error: implicit declaration of function 'tegra_spare_fuse'
arch/arm/mach-tegra/board-ventana-power.c: At top level:
arch/arm/mach-tegra/board-ventana-power.c:273: error: 'AC_PRESENT_GPIO' undeclared here (not in a function)
make[1]: *** [arch/arm/mach-tegra/board-ventana-power.o] Error 1
make: *** [arch/arm/mach-tegra] Error 2
And here is the code
http://pastebin.com/0V752tu7