View Single Post
Old 07-16-2015, 09:18 PM   #12
fastrobot
Connoisseur
fastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to beholdfastrobot is a marvel to behold
 
Posts: 53
Karma: 11844
Join Date: Jun 2014
Location: All over the place...
Device: KOBO AuraHD and GLO
Thanks!, NiJuLe,

I am compiling with Ncurses6.0 pre-release, because I need the SGR mouse interface (Xterm 1006 mode) that was just added -- so the binaries may not be the best option for me as I need it to link against a new version of NCurses.... and I'm not sure I can just replace Ncurses 5.9 without recompile.

But looking at the gory details in your link, there were essentially six switches and three environment variables different in how you compiled python as compared to how I did it; namely -fwrapv, --enable-unicode=ucs4, --with-libc="", --with-system-ffi, --with-system-expat, and --with-fpectl

and for system variables, you defined these extras.

export _PYTHON_HOST_PLATFORM="linux-arm"
export ac_cv_path_PKG_CONFIG="pkg-config"
export ac_cv_buggy_getaddrinfo=no

I don't have a system expat in the Kobo, so I left that switch off -- but changed all the others and removed the debugging switches I had put in (as those cause the init symbol to disappear -- and why, I have no clue... )

I'm not sure which one was the root of all evil in my earlier problems, but when I made those changes and exported environment variables for all the ac_cv variables instead of passing them to .config directly, the segfaulting problem went away even without applying any of the patches you had in your file.

I now have a plain vanilla unpatched python 2.7.10 that doesn't segfault, and the Init symbol is correctly defined. So I'm pretty darn happy. Thanks. You probably saved me a week of messing around... I was going to upgrade my system python from 2.7.5 to 2.7.10... but I doubt I need to.

Last edited by fastrobot; 07-17-2015 at 03:20 AM.
fastrobot is offline   Reply With Quote