porting gnupg to Android, is pth required?

Hans-Christoph Steiner hans at guardianproject.info
Fri Jan 27 18:26:59 CET 2012


On 01/27/2012 09:42 AM, Werner Koch wrote:
> On Fri, 27 Jan 2012 14:55, hans at guardianproject.info said:
> 
>> I got past the stdint.h problem, but am now onto the pthread. I guess
> 
> Please try the latest npth - I changed quite some things in the
> configuration.

Just tried the latest in master, and there is a new problem.  I'm
working on this all day today, ping me on jabber or
irc://irc.freenode.net/guardianproject (_hc) if you would to work on
this or help setting up the Android NDK cross-building environment.  Its
really straightforward to setup on Debian, Ubuntu, and Mac OS X,
especially compared to other cross-compilers I've worked with.

Here's the build error:

/bin/sh ../libtool --tag=CC   --mode=compile
/usr/local/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
--sysroot=/usr/local/android-ndk/platforms/android-9/arch-arm
-DHAVE_CONFIG_H -I. -I..     -DANDROID
-I/media/share/code/guardianproject/gnupg-for-android/external/include
-MT npth.lo -MD -MP -MF .deps/npth.Tpo -c -o npth.lo npth.c
libtool: compile:
/usr/local/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc
--sysroot=/usr/local/android-ndk/platforms/android-9/arch-arm
-DHAVE_CONFIG_H -I. -I.. -DANDROID
-I/media/share/code/guardianproject/gnupg-for-android/external/include
-MT npth.lo -MD -MP -MF .deps/npth.Tpo -c npth.c  -fPIC -DPIC -o
.libs/npth.o
In file included from npth.c:40:
npth.h:300: error: expected declaration specifiers or '...' before 'fd_set'
npth.h:300: error: expected declaration specifiers or '...' before 'fd_set'
npth.h:300: error: expected declaration specifiers or '...' before 'fd_set'
npth.h:302: error: expected declaration specifiers or '...' before 'fd_set'
npth.h:302: error: expected declaration specifiers or '...' before 'fd_set'
npth.h:302: error: expected declaration specifiers or '...' before 'fd_set'
npth.c:433: error: expected declaration specifiers or '...' before 'fd_set'
npth.c:433: error: expected declaration specifiers or '...' before 'fd_set'
npth.c:433: error: expected declaration specifiers or '...' before 'fd_set'
npth.c: In function 'npth_select':
npth.c:439: error: 'rfds' undeclared (first use in this function)
npth.c:439: error: (Each undeclared identifier is reported only once
npth.c:439: error: for each function it appears in.)
npth.c:439: error: 'wfds' undeclared (first use in this function)
npth.c:439: error: 'efds' undeclared (first use in this function)
npth.c: At top level:
npth.c:446: error: expected declaration specifiers or '...' before 'fd_set'
npth.c:446: error: expected declaration specifiers or '...' before 'fd_set'
npth.c:446: error: expected declaration specifiers or '...' before 'fd_set'
npth.c: In function 'npth_pselect':
npth.c:452: error: 'rfds' undeclared (first use in this function)
npth.c:452: error: 'wfds' undeclared (first use in this function)
npth.c:452: error: 'efds' undeclared (first use in this function)
make[3]: *** [npth.lo] Error 1




More information about the Gnupg-devel mailing list