Opened 10 years ago
Closed 9 years ago
#3713 closed defect (invalid)
Make for Android
Reported by: | bad_access | Owned by: | |
---|---|---|---|
Priority: | critical | Component: | General |
Severity: | high | Keywords: | |
Cc: | Sensitive: | no |
Description
I want make latest oscam build for android device..
I use android-ndk-r9d NDK for android and oscam SVN 9659.
But cannot compile, have any error... (If try oscam SVN 8339 build success)
module-webif-lib.c: In function 'get_stats_linux':
module-webif-lib.c:655:2: warning: implicit declaration of function 'sysinfo' [-Wimplicit-function-declaration]
....
oscam-cache.c:41:2: error: unknown type name 'pthread_rwlock_t'
oscam-cache.c:61:1: error: unknown type name 'pthread_rwlock_t'
oscam-cache.c: In function 'init_cache':
oscam-cache.c:67:2: warning: implicit declaration of function 'pthread_rwlock_init' [-Wimplicit-function-declaration]
oscam-cache.c: In function 'check_is_pushed':
oscam-cache.c:85:2: warning: implicit declaration of function 'pthread_rwlock_rdlock' [-Wimplicit-function-declaration]
oscam-cache.c:94:3: warning: implicit declaration of function 'pthread_rwlock_unlock' [-Wimplicit-function-declaration]
oscam-cache.c:95:3: warning: implicit declaration of function 'pthread_rwlock_wrlock' [-Wimplicit-function-declaration]
oscam-cache.c: In function 'cleanup_cache':
oscam-cache.c:419:6: warning: implicit declaration of function 'pthread_rwlock_destroy' [-Wimplicit-function-declaration]
oscam-cache.c: At top level:
oscam-cache.c:467:1: error: unknown type name 'pthread_rwlock_t'
make[1]: * [build/arm-linux-androideabi/oscam-cache.o] Error 1
make: * [all] Error 2
Change History (6)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
I try with r9C but see same error.
root@debian:/var/cardserver/oscam-svn# make --no-print-directory LIB_RT= LIB_PTHREAD= CROSS=/tmp/android/bin/arm-linux-androideabi- +------------------------------------------------------------------------------- | OSCam ver: 1.20-unstable_svn rev: 9659 target: arm-linux-androideabi | Tools: | CROSS = /tmp/android/bin/arm-linux-androideabi- | CC = /tmp/android/bin/arm-linux-androideabi-gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = | LDFLAGS = -Wl,--gc-sections | LIBS = -ldl | UseFlags = | Config: | Addons : WEBIF TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX WEBIF_LIVELOG WEBIF_JQUERY | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER | Compiler : arm-linux-androideabi-gcc (GCC) 4.6 20120106 (prerelease) | Binary : Distribution/oscam-1.20-unstable_svn9659-arm-linux-androideabi +------------------------------------------------------------------------------- CC oscam-cache.c oscam-cache.c:41:2: error: unknown type name 'pthread_rwlock_t' oscam-cache.c:61:1: error: unknown type name 'pthread_rwlock_t' oscam-cache.c: In function 'init_cache': oscam-cache.c:67:2: warning: implicit declaration of function 'pthread_rwlock_init' [-Wimplicit-function-declaration] oscam-cache.c: In function 'check_is_pushed': oscam-cache.c:85:2: warning: implicit declaration of function 'pthread_rwlock_rdlock' [-Wimplicit-function-declaration] oscam-cache.c:94:3: warning: implicit declaration of function 'pthread_rwlock_unlock' [-Wimplicit-function-declaration] oscam-cache.c:95:3: warning: implicit declaration of function 'pthread_rwlock_wrlock' [-Wimplicit-function-declaration] oscam-cache.c: In function 'cleanup_cache': oscam-cache.c:419:6: warning: implicit declaration of function 'pthread_rwlock_destroy' [-Wimplicit-function-declaration] oscam-cache.c: At top level: oscam-cache.c:467:1: error: unknown type name 'pthread_rwlock_t' make[1]: *** [build/arm-linux-androideabi/oscam-cache.o] Error 1 make: *** [all] Error 2
comment:3 by , 10 years ago
Please check your NDK installation. I'm testing with r9c and everything works, I can't reproduce this.
pthread_rwlock_t *should* be defined in pthread.h (POSIX rules). pthread.h is included in globals.h, globals.h is included in oscam-cache.c, so everything should be working.
If your NDK misses pthread_rwlock_t definition there is little we can do, you should complain to the NDK authors, there is no bug in Oscam.
comment:4 by , 10 years ago
comment:5 by , 10 years ago
I use this command for make toolchains.
build/tools/make-standalone-toolchain.sh --toolchain=arm-linux-androideabi-4.6 --arch=arm --platform=android-15 --install-dir=/tmp/android
And now compile oscam without any problem.
comment:6 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Looks OK to me using defconfig: