CounterpartyXCP/counterblockd — pull request #64 by Ignat99 (2014-10-09 16:05:03+00:00)
Title: [FEATURE] Exeperimental launch on python3.4

List of some trouble and fix for that:

In file included from gevent/gevent.core.c:237:0:
gevent/libev.h: In function ‘gevent_ev_default_loop’:
gevent/libev.h:22:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
cc1: some warnings being treated as errors

SyntaxError: invalid syntax

pip install cython git+git://github.com/surfly/gevent.git#egg=gevent
sudo pip3.4 install cython git+git://github.com/abourget/gevent-socketio.git#egg=gevent-socketio

>>> from urllib.parse import urlparse

http://stackoverflow.com/questions/20139382/mimetools-message-to-python-3-email-message-message

#from mimetools import Message

import email
stream = io.StringIO()
rxString = data.decode("utf-8").split('\r\n', 1)[1]
stream.write(rxString)
headers = email.message_from_string(rxString)

boost_1_56_0.tar.bz2 - Standart system for bild is not good:

http://stackoverflow.com/questions/7195959/hello-world-with-boost-python-and-python-3-2
http://stackoverflow.com/questions/25188861/libboost-python3-so-1-56-0-undefined-symbol-pyclass-type
http://w3facility.info/question/hello-world-with-boost-python-and-python-3-2/
http://stackoverflow.com/questions/19865757/importerror-usr-lib-libboost-python-so-1-54-0-undefined-symbol-pyclass-type

http://comments.gmane.org/gmane.linux.arch.general/32474

> [ty donna ~]$ ldd -r /usr/lib/libboost_python.so
> linux-vdso.so.1 => (0x00007fffc81ff000)
> libutil.so.1 => /lib/libutil.so.1 (0x00007fece9112000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x00007fece8ef5000)
> libdl.so.2 => /lib/libdl.so.2 (0x00007fece8cf0000)
> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fece89e6000)
> libm.so.6 => /lib/libm.so.6 (0x00007fece8764000)
> libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fece854d000)
> libc.so.6 => /lib/libc.so.6 (0x00007fece81f1000)
> /lib/ld-linux-x86-64.so.2 (0x00007fece9596000)

==================== haw build ======
./b2 --toolset=gcc cxxflags='-g -O2 -std=gnu++0x -march=core2 -mtune=core2 -msse -msse2 -mssse3 -msse4 -Xlinker -export-dynamic -pthread -Wl,-O1 -Wl,-Bsymbolic-functions, -z,relro -lcfitsio -lhealpix_cxx -lcxxsupport -lpsht -lfftpack -lc_utils -lgomp -lnrnoc -lnrniv -livoc -loc-lneuron_gnu -lscopmath -lsparse13 -lsundials -lnrnmpi -lmemacs -lmeschach -livos -lreadline -lncurses -lm -lc -lgss_s -lstdc++ -lpthread -lutil -lnux-vdso -lpython2.7' --with-python --buildid=2

./bootstrap.sh --with-python=/usr/bin/python3.4 --prefix=/usr/local

./b2 --toolset=gcc cxxflags='-g -O2 -std=gnu++0x -march=core2 -mtune=core2 -msse -msse2 -mssse3 -msse4 -Xlinker -export-dynamic -pthread -Wl,-O1 -Wl,-Bsymbolic-functions, -z,relro -lcfitsio -lhealpix_cxx -lcxxsupport -lpsht -lfftpack -lc_utils -lgomp -lnrnoc -lnrniv -livoc -loc-lneuron_gnu -lscopmath -lsparse13 -lsundials -lnrnmpi -lmemacs -lmeschach -livos -lreadline -lncurses -lm -lc -lgss_s -lstdc++ -lpthread -lutil -lnux-vdso -lpython2.7' --with-python --buildid=2

./b2 variant=release address-model=32 threading=multi optimization=speed link=shared runtime-link=shared --toolset=gcc cxxflags='-Xlinker -export-dynamic' --with-python --buildid=2

========================================= or ====

cd ../../../.. && ./bootstrap.sh --with-python=/usr/bin/python3.4 --prefix=/usr/local && cd libs/python/example/quickstart

../../../../bjam variant=release address-model=32 threading=multi optimization=speed link=shared runtime-link=shared --toolset=gcc cxxflags='-Xlinker -export-dynamic' --with-python --verbose-test --build

===============================
ln -s /usr/lib/libpython3.4m.so.1.0 /usr/lib/libpython3.4
nano +50,35 ../../../../boost/python/detail/wrap_python.hpp

https://github.com/TooTallNate/node-dlopen/blob/master/src/binding.cc
https://svn.boost.org/trac/boost/query?status=!closed&page=14&desc=1&order=summary&row=description

But most of problem inside:

gevent geventhttpclient gevent-socketio gevent-websocket greenlet