[guardian-dev] Building Android GPG on OS X
Hans-Christoph Steiner
hans at guardianproject.info
Wed Apr 9 15:55:53 EDT 2014
I've never seen this one... doesn't ring a bell. libkbsa pretty much always
just built for me. I'm on Ubuntu/precise, and our build server is Debian/wheezy.
.hc
On 04/08/2014 07:42 PM, Tim Bray wrote:
> haha, of course that’s ASN.1 not assembler. I’ve hated ASN.1 for longer
> than most of you have been alive.
>
>
> On Tue, Apr 8, 2014 at 4:28 PM, Tim Bray <tbray at textuality.com> wrote:
>
>> Per advice, I installed Ubuntu on VirtualBox, and the GPG build got
>> muuuuuuuuch further.
>>
>> Now, this is weird... it’s getting assembler syntax errors building
>> libksba, on asn1-gentables.c
>>
>> things like ./tmttv2.asn:6: parse error
>>
>> A bit of digging fails to reveal anything obvious; before I dive deeper,
>> anyone seen this before?
>>
>> Command line is
>>
>> cc -I. -DBUILD_GENTOOLS -o asn1-gentables \
>> ./asn1-gentables.c \
>> `test -f 'asn1-parse.c' || echo './'`asn1-parse.c \
>> ./asn1-func.c \
>> ./gen-help.c
>>
>>
>>
>> On Thu, Apr 3, 2014 at 9:10 AM, Tim Bray <tbray at textuality.com> wrote:
>>
>>>
>>> ¡Hola!
>>>
>>>
>>> T
>>>
>>> h
>>>
>>> e
>>>
>>>
>>> p
>>>
>>> r
>>>
>>> o
>>>
>>> b
>>>
>>> l
>>>
>>> e
>>>
>>> m
>>>
>>>
>>> is in the subject line.
>>> I don’t really understand GNU AutoHell but have wrestled it enough
>>> times.
>>> Hey, I’ve never built an NDK project before either, so this should be
>>> entertaining.
>>>
>>>
>>> I’m going to grind away
>>>
>>> at this until I get a build or horribly stuck, but if anybody’s got any
>>> general
>>>
>>> advice, or alternatively thinks trying to build this on OS X is silly,
>>> would be happy to hear about
>>>
>>> that
>>> .
>>>
>>>
>>> Diary this far, because there are some action items
>>> for myself or whoever.
>>>
>>>
>>> 1.
>>> git clone & git submodule, OK
>>>
>>> 2. make -C external/ distclean clean-assets
>>> Problem: external/Makefile has wrong NDK location
>>> Solution: Edit external/Makefile to fix NDK_BASE
>>> ACTION: Make AutoHell fix that up
>>>
>>> 3. make -C external/ distclean clean-assets
>>> lots of errors about this directory or that not having a distclean
>>> target. Ignore them
>>>
>>> 4. make -C external/
>>> Problem: OS X autoconf & automake are out of date
>>> Solution: brew install
>>>
>>> 5. make -C external/
>>> Problem: gettext not found
>>> ... SubProblem: brew doesn’t seem to have a useful recipe
>>> Solution: Install gettext from gnu.org
>>> ACTION: Make a better gettext recipe for brew
>>>
>>> 6. make -C external/
>>> [it's working in external/libgpg-error]
>>> parallel-tests: error:
>>>
>>> r
>>>
>>> equired file './t
>>>
>>> est-driver' not found
>>> parallel-tests: 'auto
>>>
>>> make --add-mi
>>>
>>> ssing' can install 'test-driver'
>>> SOLUTION: like it says, automake --add-missing
>>> ACTION: Make AutoHell run automake --add-missing if required
>>>
>>> Then redo make distclean etc for a clean start
>>>
>>> 7. make -C external/
>>> Yay, it made the makefile for libgpg-error-1.13-beta5
>>> PROBLEM:
>>> ls -l libgpg-error/libtool
>>> -rwxr-xr-x 1 twbray staff 298243 Apr 3 08:57 libgpg-error/libtool
>>> # brute force and ignorance to make libtool comply with android style
>>> sed -i 's,^fast_install=.*,fast_install=needless,' libgpg-error/libtool
>>> sed: 1: "libgpg-error/libtool": extra characters at the end of l command
>>> make: *** [libgpg-error/Makefile] Error 1
>>>
>>>
>>> [time for a shower, more later]
>>>
>>>
>>>
>>
>
>
>
> _______________________________________________
> Guardian-dev mailing list
>
> Post: Guardian-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
>
> To Unsubscribe
> Send email to: Guardian-dev-unsubscribe at lists.mayfirst.org
> Or visit: https://lists.mayfirst.org/mailman/options/guardian-dev/hans%40guardianproject.info
>
> You are subscribed as: hans at guardianproject.info
>
--
PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81
More information about the Guardian-dev
mailing list