02-11-2016, 07:35 PM | #61 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Note: That there are (for instance) two builds of kTerm, one uses the old libraries, one uses the new libraries. baf posted that he had linked the libraries in, staticly. Something may have gone wrong in that process. To debug: Set the environment variable: LD_DEBUG=all (all possible information) LD_DEBUG=help (other possible settings) |
|
02-12-2016, 04:49 AM | #62 | |
Junior Member
Posts: 8
Karma: 62
Join Date: Feb 2016
Location: Germany
Device: kindle PW2 9017
|
Quote:
I attached the complete output (stdout and stderr incl. debug info). Maybe a trained eye can make something out of it. (my previous text, not so promising: ) Spoiler:
update: Now I also attached my gdb output. some interesting lines: Code:
... Reading symbols from /lib/libpthread.so.0...Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libpthread.so.0] ... Reading symbols from /lib/libgcc_s.so.1...Error while reading shared library symbols: Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /lib/libgcc_s.so.1] ... Core was generated by `./gargoyle'. Program terminated with signal 11, Segmentation fault. #0 0x40e84dd4 in png_set_longjmp_fn () from /usr/lib/libpng16.so.16 (gdb) bt full #0 0x40e84dd4 in png_set_longjmp_fn () from /usr/lib/libpng16.so.16 No symbol table info available. #1 0x411bc08c in ?? () from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so No symbol table info available. Last edited by jue; 02-12-2016 at 05:49 AM. |
|
Advert | |
|
02-12-2016, 05:50 AM | #63 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
did you get anything before the line numbered 1 in the archive?
at the command line, Run: /lib/libc.so.6 copy and paste the **entire** output here. Yes, it is an executable. You may have to mark it executable (Lab126's build system evidently blindly removes the execute bit on anything lib*). Remember to do the remount rw - remount ro dance in order to run the chmod command. Last edited by knc1; 02-12-2016 at 06:17 AM. |
02-12-2016, 06:29 AM | #64 |
Junior Member
Posts: 8
Karma: 62
Join Date: Feb 2016
Location: Germany
Device: kindle PW2 9017
|
No, I didn't get anything before and didn't edit anything I attached. I was wondering myself why the output started with 5620.
The /lib/libc.so.6 output looks fine (directed stdout and stderr to file, nothing removed): Code:
GNU C Library (EGLIBC) stable release version 2.19, by Roland McGrath et al. Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.8.3 20140401 (prerelease). Compiled on a Linux 2.6.35 system on 2014-09-03. Available extensions: crypt add-on version 2.1 by Michael Glad and others Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B libc ABIs: UNIQUE For bug reporting instructions, please see: <http://www.eglibc.org/issues/>. |
02-12-2016, 08:01 AM | #65 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The libc is 2.19, which **should** have all symbols required since the highest the program needs is 2.17. **but** The Kindle is running the specialized Ubuntu fork of glibc, eglibc. (The two projects have since been merged together.) So there is a possiblity of a mis-match, depending what baf built against. You could do a 'readelf -a ...' on the files he built, but that would, at most, only tell us exactly what is wrong. The conclusion is the same - the attempt at a static build has errors in it. fail this build and let baf re-build it. |
|
Advert | |
|
02-12-2016, 09:42 AM | #66 | |
Junior Member
Posts: 8
Karma: 62
Join Date: Feb 2016
Location: Germany
Device: kindle PW2 9017
|
Quote:
Thanks a lot for your help so far, knc1! |
|
02-12-2016, 09:53 AM | #67 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
PS: What firmware version on your PW-2? |
|
02-12-2016, 10:08 AM | #68 |
Connoisseur
Posts: 66
Karma: 200233
Join Date: Aug 2013
Device: Kindle Paperwhite
|
Hi, I built baf's port of gargoyle (many thanks for the kindle port!) for use with my PW3 and firmware 5.7.2 (including git, glulxe and bocfel interpreters updated to the latest versions). This could work for you, too, if you use the same OS version.
|
02-12-2016, 11:28 AM | #69 | |
Junior Member
Posts: 8
Karma: 62
Join Date: Feb 2016
Location: Germany
Device: kindle PW2 9017
|
Quote:
My firmware version is 5.6.5. pete330, your build works on my Kindle, too, thank you! |
|
02-12-2016, 11:38 AM | #70 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Elf is Elf is Elf is Elf ....
Here is the problem: Tag_ABI_HardFP_use: SP and DP It was built for hardware floating point and the stock Kindles are software floating point. One of the ways to spell: segfault (I do have posted a thread on running hard float on Kindles, but this application was not intended to run under that add-in. ) |
02-12-2016, 01:15 PM | #71 |
Evangelist
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Thanks to all for feedback.
I messed something with static linking. The problematic function (png_set_longjmp_fn) is not present in libpng12 which I staticly linked. Code:
Program terminated with signal 11, Segmentation fault. #0 0x40e84dd4 in png_set_longjmp_fn () from /usr/lib/libpng16.so.16 As we have working, updated package from Pete330 (thanks!) I will give up now. I assume it also works for 5.6.5 firmware. Could someone check that? @Pete330 I hope you don't mind if I share your package on my website. |
02-12-2016, 02:12 PM | #72 |
Connoisseur
Posts: 66
Karma: 200233
Join Date: Aug 2013
Device: Kindle Paperwhite
|
Hi baf, I don't mind at all. Thanks for providing the webspace!
|
02-12-2016, 04:00 PM | #73 | |
Junior Member
Posts: 8
Karma: 62
Join Date: Feb 2016
Location: Germany
Device: kindle PW2 9017
|
Quote:
I am very happy this could be solved! Now everyone can find gargoyle in the "helpful list of Extensions for KUAL" and from there arrive directly at the working build. Thanks baf, pete330, knc1 and eschwartz, you guys are great! |
|
07-07-2016, 06:12 PM | #74 |
Connoisseur
Posts: 66
Karma: 200233
Join Date: Aug 2013
Device: Kindle Paperwhite
|
Anyone interested in the most current version of gargoyle with an early version of TADS 3.1.3 integration (code from this branch: https://github.com/cspiegel/garglk/t...3-tads-upgrade), let me know. I have a version running on my PW3.
|
07-10-2016, 02:21 PM | #75 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2016
Device: Kindle Voyage
|
I haven't tried any graphical games, yet, but I wanted to mention that the "5.6.5" version runs without problems on the Voyage.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Book (Kindle/Nook/Ellora's Cave/AllRomanceeBooks) - Curse of the Gargoyle | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 8 | 10-18-2011 02:59 AM |
Interactive Fiction with Gargoyle for the Iliad | Adam B. | iRex | 68 | 09-01-2011 04:49 AM |
Gargoyle, an interactive fiction player, is ported to Open Inkpot | hrashk | OpenInkpot | 7 | 06-22-2011 10:31 PM |
PRS-650 Music Player | kcdownunder | Sony Reader | 2 | 10-23-2010 03:34 PM |
Classic Audio Player | ssbkt | Barnes & Noble NOOK | 1 | 12-18-2009 11:00 AM |