unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Robert Dazi <robert.dazi@yahoo.fr>
To: "guile-devel@gnu.org" <guile-devel@gnu.org>
Subject: [ Porting Guile on Android 4.4 ]
Date: Fri, 16 Jun 2017 15:44:16 +0000 (UTC)	[thread overview]
Message-ID: <134615905.19718584.1497627856676@mail.yahoo.com> (raw)
In-Reply-To: 134615905.19718584.1497627856676.ref@mail.yahoo.com

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

Hello, I tried to port Guile 2.2.1 on Android 4.4. As you might know, Android is not GNU/Linux and many functions (and even types such as localeconv) are missing or not acting as expected (either because the Linux headers have been ripped off or because Bionic lacks those features).That means the libraries needed some rewriting, and Guile too. Here some issues :   - the 'configure' script generated by autoconf uses the PREFIX variable to find libltdl, whereas it is better to ask the user for that path.    - Bionic doesn't implement well locales (and won't), setlocale is an empty function returning NULL   - Because the encoding format is unknown, init_random raises an error, but init_random is called before init_throw so since the static variable for throwing is set to an unknown state (on my device it is set to 0), it leads to a segfault. (By the way, setting LC_ALL to UTF-8 fixes the encoding issue if init_throw called before init_random).
Eventually, I've got a (seemingly working) rpl by commenting out the 'setlocale' line within top-repl.scm. 
Thanksfully,

[-- Attachment #2: Type: text/html, Size: 1890 bytes --]

       reply	other threads:[~2017-06-16 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <134615905.19718584.1497627856676.ref@mail.yahoo.com>
2017-06-16 15:44 ` Robert Dazi [this message]
2017-06-17 15:33   ` [ Porting Guile on Android 4.4 ] Christopher Allan Webber
2017-06-17 15:59   ` Nala Ginrut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=134615905.19718584.1497627856676@mail.yahoo.com \
    --to=robert.dazi@yahoo.fr \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).