android build failure: `./syscfg/lock-obj-pub.linux-androideabi.h': No such file or directory

Hans-Christoph Steiner hans at guardianproject.info
Tue Jan 28 20:09:52 CET 2014



On 01/28/2014 01:25 PM, Werner Koch wrote:
> On Tue, 28 Jan 2014 18:37, hans at guardianproject.info said:
> 
>> make[3]: [gpg-error.h] Error 1 (ignored)
>> ./mkheader linux-androideabi arm-unknown-linux-androideabi  ./gpg-error.h.in \
>>                    1.13-beta19 0x010d00 >gpg-error.h
>> ./gpg-error.h.in:289: error including
>> `./syscfg/lock-obj-pub.linux-androideabi.h': No such file or directory
> 
> Please apply this patch:
> 
> diff --git a/src/mkheader.c b/src/mkheader.c
> index 43e7fd8..ae29213 100644
> --- a/src/mkheader.c
> +++ b/src/mkheader.c
> @@ -165,6 +165,7 @@ mk_include_name (const char *name, const char *repl)
>          *p++ = *s;
>      }
>    *p = 0;
> +  fprintf (stderr,"note: incname is '%s'\n", incfname);
>    return incfname;
>  }
>  
> 
> and try again.   According to your log mkheader is run correctly and
> thus should first try to include the new file.  With the pacth we can
> better control that.

cc -g -O0 -I. -I. -o mkheader ./mkheader.c
rm lock-obj-pub.native.h 2>/dev/null
make[3]: [gpg-error.h] Error 1 (ignored)
./mkheader linux-androideabi arm-unknown-linux-androideabi  ./gpg-error.h.in \
                   1.13-beta19 0x010d00 >gpg-error.h
note: incname is './err-sources.h.in'
note: incname is './err-codes.h.in'
note: incname is './errnos.in'
note: incname is './lock-obj-pub.native.h'
note: incname is './syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h'
note: incname is './syscfg/lock-obj-pub.linux-androideabi.h'
./gpg-error.h.in:289: error including
`./syscfg/lock-obj-pub.linux-androideabi.h': No such file or directory



> You did re-built libgpg-error from scratch, right?

This is built and tested by a fully automated jenkins build system that runs
'git clean' at the beginning of the process.

For the record, these kinds of build hacks are easy to do on UNIX systems, but
can be extraordinarily painful on Android, which is far from UNIX.  A big part
of the GPG Android porting effort was dealing with these kinds of things.

.hc

-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81



More information about the Gnupg-devel mailing list