[guardian-dev] Problems compiling gnupg-for-android and Lil' Debi
Josh Branning
lovell.joshyyy at gmail.com
Thu Aug 23 10:44:23 EDT 2012
Hello, I am getting some errors compiling gnupg-for-android and Lil' Debi:
_________________________________________________________________________________________________
When compiling Lil' Debi, at the 'make -C external assets' stage I get:
_________________________________________________________________________________________________
6:27: error: sys/sysmacros.h: No such file or directory
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:15:19: error: ctype.h: No such file or directory
include/libbb.h:16:20: error: dirent.h: No such file or directory
include/libbb.h:17:19: error: errno.h: No such file or directory
include/libbb.h:18:19: error: fcntl.h: No such file or directory
include/libbb.h:19:22: error: inttypes.h: No such file or directory
include/libbb.h:20:19: error: netdb.h: No such file or directory
include/libbb.h:21:20: error: setjmp.h: No such file or directory
include/libbb.h:22:20: error: signal.h: No such file or directory
include/libbb.h:31:20: error: stdlib.h: No such file or directory
include/libbb.h:34:20: error: string.h: No such file or directory
include/libbb.h:37:43: error: libgen.h: No such file or directory
include/libbb.h:40:22: error: sys/poll.h: No such file or directory
include/libbb.h:41:23: error: sys/ioctl.h: No such file or directory
include/libbb.h:42:22: error: sys/mman.h: No such file or directory
include/libbb.h:43:24: error: sys/socket.h: No such file or directory
include/libbb.h:44:22: error: sys/stat.h: No such file or directory
include/libbb.h:45:22: error: sys/time.h: No such file or directory
include/libbb.h:50:22: error: sys/wait.h: No such file or directory
include/libbb.h:51:21: error: termios.h: No such file or directory
include/libbb.h:52:18: error: time.h: No such file or directory
include/libbb.h:53:23: error: sys/param.h: No such file or directory
include/libbb.h:54:17: error: pwd.h: No such file or directory
include/libbb.h:55:17: error: grp.h: No such file or directory
include/libbb.h:69:21: error: mntent.h: No such file or directory
include/libbb.h:72:25: error: sys/statfs.h: No such file or directory
include/libbb.h:116:24: error: arpa/inet.h: No such file or directory
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:303: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'bb_bswap_64'
include/libbb.h:320: error: expected ')' before 'mode'
include/libbb.h:354: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'recurse_flags_t'
include/libbb.h:356: warning: 'struct stat' declared inside parameter list
include/libbb.h:356: warning: its scope is only this definition or
declaration, which is probably not what you want
include/libbb.h:357: warning: 'struct stat' declared inside parameter list
include/libbb.h:396: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
include/libbb.h:397: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
include/libbb.h:424: error: 'SIGHUP' undeclared here (not in a function)
include/libbb.h:425: error: 'SIGINT' undeclared here (not in a function)
include/libbb.h:426: error: 'SIGTERM' undeclared here (not in a function)
include/libbb.h:427: error: 'SIGPIPE' undeclared here (not in a function)
include/libbb.h:428: error: 'SIGQUIT' undeclared here (not in a function)
include/libbb.h:429: error: 'SIGABRT' undeclared here (not in a function)
include/libbb.h:430: error: 'SIGALRM' undeclared here (not in a function)
include/libbb.h:431: error: 'SIGVTALRM' undeclared here (not in a function)
include/libbb.h:432: error: 'SIGXCPU' undeclared here (not in a function)
include/libbb.h:433: error: 'SIGXFSZ' undeclared here (not in a function)
include/libbb.h:434: error: 'SIGUSR1' undeclared here (not in a function)
include/libbb.h:435: error: 'SIGUSR2' undeclared here (not in a function)
include/libbb.h:452: warning: 'struct sigaction' declared inside
parameter list
include/libbb.h:460: error: expected ')' before 'gid'
include/libbb.h:461: error: expected ')' before 'uid'
include/libbb.h:468: warning: 'struct stat' declared inside parameter list
include/libbb.h:469: warning: 'struct stat' declared inside parameter list
include/libbb.h:495: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'socktype_t'
include/libbb.h:496: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'family_t'
include/libbb.h:499: error: 'SOCK_STREAM' undeclared here (not in a
function)
include/libbb.h:500: error: 'SOCK_DGRAM' undeclared here (not in a function)
include/libbb.h:501: error: 'SOCK_RDM' undeclared here (not in a function)
include/libbb.h:502: error: 'SOCK_SEQPACKET' undeclared here (not in a
function)
include/libbb.h:503: error: 'SOCK_RAW' undeclared here (not in a function)
include/libbb.h:506: error: 'AF_UNSPEC' undeclared here (not in a function)
include/libbb.h:507: error: 'AF_INET' undeclared here (not in a function)
include/libbb.h:508: error: 'AF_INET6' undeclared here (not in a function)
include/libbb.h:509: error: 'AF_UNIX' undeclared here (not in a function)
include/libbb.h:522: warning: 'struct tm' declared inside parameter list
include/libbb.h:523: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'validate_tm_time'
include/libbb.h:527: warning: 'struct sockaddr' declared inside
parameter list
include/libbb.h:529: warning: 'struct sockaddr' declared inside
parameter list
include/libbb.h:531: warning: 'struct sockaddr' declared inside
parameter list
include/libbb.h:546: error: field 'sa' has incomplete type
include/libbb.h:547: error: field 'sin' has incomplete type
include/libbb.h:557: error: field 'sa' has incomplete type
include/libbb.h:558: error: field 'sin' has incomplete type
include/libbb.h:640: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'inet_cksum'
include/libbb.h:795: error: expected declaration specifiers or '...'
before 'nfds_t'
include/libbb.h:795: warning: 'struct pollfd' declared inside parameter list
include/libbb.h:826: error: expected ')' before '*' token
In file included from include/libbb.h:833,
from include/busybox.h:8,
from applets/applets.c:9:
include/xatonum.h:104: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'BUG_xatou32_unimplemented'
include/xatonum.h:105: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xatou32'
include/xatonum.h:161: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'BUG_bb_strtou32_unimplemented'
include/xatonum.h:163: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'bb_strtou32'
include/xatonum.h:172: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'bb_strtoi32'
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:846: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xatou16'
include/libbb.h:858: error: expected specifier-qualifier-list before 'uid_t'
include/libbb.h:869: error: expected ')' before 'uid'
include/libbb.h:870: error: expected ')' before 'gid'
include/libbb.h:871: error: expected ')' before 'uid'
include/libbb.h:872: error: expected ')' before 'gid'
include/libbb.h:873: error: expected ')' before 'uid'
include/libbb.h:874: error: expected ')' before 'gid'
include/libbb.h:875: error: expected ')' before 'uid'
include/libbb.h:876: error: expected ')' before 'gid'
include/libbb.h:878: error: expected ')' before 'uid'
include/libbb.h:879: error: expected ')' before 'gid'
include/libbb.h:882: error: 'uid_t' undeclared here (not in a function)
include/libbb.h:929: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xfork'
include/libbb.h:933: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'spawn'
include/libbb.h:934: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xspawn'
include/libbb.h:936: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'safe_waitpid'
include/libbb.h:937: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'wait_any_nohang'
include/libbb.h:946: error: expected ')' before 'pid'
include/libbb.h:1017: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'option_mask32'
include/libbb.h:1018: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'getopt32'
include/libbb.h:1062: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'xfunc_error_retval'
include/libbb.h:1063: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'die_jmp'
include/libbb.h:1159: warning: 'struct mntent' declared inside parameter
list
include/libbb.h:1163: error: expected ')' before 'speed'
include/libbb.h:1164: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'tty_value_to_baud'
include/libbb.h:1186: error: expected declaration specifiers or '...'
before 'mode_t'
In file included from include/busybox.h:8,
from applets/applets.c:9:
include/libbb.h:1334: warning: 'struct termios' declared inside
parameter list
include/libbb.h:1351: warning: 'struct stat' declared inside parameter list
include/libbb.h:1352: warning: 'struct stat' declared inside parameter list
include/libbb.h:1428: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'read_key'
include/libbb.h:1517: error: expected ')' before 'pid'
include/libbb.h:1521: error: expected specifier-qualifier-list before 'DIR'
include/libbb.h:1599: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
include/libbb.h:1600: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
include/libbb.h:1626: error: expected specifier-qualifier-list before
'uint8_t'
include/libbb.h:1634: error: expected specifier-qualifier-list before
'uint64_t'
include/libbb.h:1651: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
include/libbb.h:1652: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
include/libbb.h:1653: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'crc32_block_endian1'
include/libbb.h:1654: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'crc32_block_endian0'
In file included from applets/applets.c:9:
include/busybox.h:18: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'applet_nameofs'
include/busybox.h:19: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'applet_install_loc'
make[2]: *** [applets/applets.o] Error 1
make[1]: *** [applets_dir] Error 2
make[1]: Leaving directory `/home/josh/lildebi/lildebi/external/busybox'
make: ***
[/home/josh/lildebi/lildebi/external/../external/busybox/busybox] Error 2
make: Leaving directory `/home/josh/lildebi/lildebi/external'
_________________________________________________________________________________________________
When compiling gnupg-for-android, at the 'make -C external/
gnupg-install' stage I get:
_________________________________________________________________________________________________
libtool: link:
/home/josh/android-ndk-linux/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
--sysroot=/home/josh/android-ndk-linux/platforms/android-8/arch-arm
-DSTANDALONE -DANDROID
-I/home/josh/lildebi/gnupg-for-android/external/../external/data/data/info.guardianproject.gpg/app_opt/include
-g -fvisibility=hidden -Wall -Wcast-align -Wshadow -Wstrict-prototypes
-Wformat -Wno-format-y2k -Wformat-security -W -Wextra
-Wbad-function-cast -Wwrite-strings -Wdeclaration-after-statement
-Wno-missing-field-initializers -Wno-sign-compare -Wpointer-arith -o
hmac256 hmac256-hmac256.o
-L/home/josh/lildebi/gnupg-for-android/external/../external/data/data/info.guardianproject.gpg/app_opt/lib
make[3]: Leaving directory
`/home/josh/lildebi/gnupg-for-android/external/libgcrypt/src'
Making all in doc
make[3]: Entering directory
`/home/josh/lildebi/gnupg-for-android/external/libgcrypt/doc'
fig2dev -L eps `test -f 'libgcrypt-modules.fig' || echo
'./'`libgcrypt-modules.fig libgcrypt-modules.eps
/bin/bash: fig2dev: command not found
make[3]: *** [libgcrypt-modules.eps] Error 127
make[3]: Leaving directory
`/home/josh/lildebi/gnupg-for-android/external/libgcrypt/doc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/josh/lildebi/gnupg-for-android/external/libgcrypt'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/josh/lildebi/gnupg-for-android/external/libgcrypt'
make: *** [libgcrypt-build-stamp] Error 2
make: Leaving directory `/home/josh/lildebi/gnupg-for-android/external'
_________________________________________________________________________________________________
Any help with this would be very much appreciated.
Josh
More information about the Guardian-dev
mailing list