Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

termux/android: pycares appears to install successfully, fails upon import #78

Closed
iegubkin opened this issue Dec 8, 2018 · 3 comments
Closed

Comments

@iegubkin
Copy link

iegubkin commented Dec 8, 2018

Using termux 0.65 on android 8.1.0 pycares appears to build successfully

potter-> pip -v install pycares
Created temporary directory: /data/data/com.termux/files/usr/tmp/pip-ephem-wheel-cache-le5ztkzb
Created temporary directory: /data/data/com.termux/files/usr/tmp/pip-req-tracker-thwzlszv
Created requirements tracker '/data/data/com.termux/files/usr/tmp/pip-req-tracker-thwzlszv'
Created temporary directory: /data/data/com.termux/files/usr/tmp/pip-install-a2tvnnsd
Collecting pycares
  1 location(s) to search for versions of pycares:
  * https://pypi.org/simple/pycares/
  Getting page https://pypi.org/simple/pycares/
  Looking up "https://pypi.org/simple/pycares/" in the cache
  Request header has "max_age" as 0, cache bypassed
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/pycares/ HTTP/1.1" 304 0
  Analyzing links from page https://pypi.org/simple/pycares/
    Found link https://files.pythonhosted.org/packages/56/82/7c74adc06b67a95fad5438af8d8e566cf0cb3ea13e1aaa5343b78512ccd4/pycares-0.1.0.tar.gz#sha256=8d305cd7ab5acaadfcf8bd6e68e2095183c0f548675d6b736a9f5ea8e32301d9 (from https://pypi.org/simple/pycares/), version: 0.1.0
    Found link https://files.pythonhosted.org/packages/f3/a7/2260a936e8831397227c99181bb2b99e9fb9983bc9b393b9bf687439c243/pycares-0.2.0.tar.gz#sha256=7558bcb35a49a0f74606fce627579a2adf9756c812730797f50b26533d6253da (from https://pypi.org/simple/pycares/), version: 0.2.0
    Found link https://files.pythonhosted.org/packages/ae/f5/a893b7f81e3ad1e0ec99dfce17292ac0fdd99973ec5bb10498c49a785219/pycares-0.3.0.tar.gz#sha256=c1f58b05bdd1220faa39d4269bd511e94129dd8e81132eb2aecf182bd4406700 (from https://pypi.org/simple/pycares/), version: 0.3.0
    Found link https://files.pythonhosted.org/packages/4a/a9/c37df2be32458aacbe1b229a54123090c510fc3072446becd01d675f4e48/pycares-0.4.0.tar.gz#sha256=81e237ebaea01dcf466bf3334c7263c5d8b379ec009ab81c753791e94b4d0bbd (from https://pypi.org/simple/pycares/), version: 0.4.0
    Found link https://files.pythonhosted.org/packages/19/77/73e95e9bdbe3cbc500614756687e7b40ec77ad36df1d527c014e705bf74d/pycares-0.5.0.tar.gz#sha256=170421ab68fb3ad580ada6d35503ed0f02fd96d760b2d2df71c978310cd5b934 (from https://pypi.org/simple/pycares/), version: 0.5.0
    Found link https://files.pythonhosted.org/packages/a8/71/ba1fc2026f8c1b5444303934df397f55052d932c1a99401c9c9d0335760e/pycares-0.6.0.tar.gz#sha256=9747eeffeb1509ea946febf886a317f70d8d37a154574c4754e455bc45ebc69c (from https://pypi.org/simple/pycares/), version: 0.6.0
    Found link https://files.pythonhosted.org/packages/72/4c/580a992b5351a1ce7549c8d1ca735276ff3ad17209ffcb745e31c48cedc0/pycares-0.6.1.tar.gz#sha256=b4ef2c057309de9cfc9c31ec6ab3dfc6f7ee409f116ee6e4d7b94afc9398807f (from https://pypi.org/simple/pycares/), version: 0.6.1
    Found link https://files.pythonhosted.org/packages/53/68/a7718b904920c75c74b90aa9239af042a3adc57fed5c7f18294f82aac1ee/pycares-0.6.2.tar.gz#sha256=c368a2fd93afead91b2fd3980870ea4d4f906ebbcb0acb884a666cc5b90d23a9 (from https://pypi.org/simple/pycares/), version: 0.6.2
    Found link https://files.pythonhosted.org/packages/e4/ae/65b46d1aeb8dd84895608867ffc0fcbfd35efa027fb9b4115c3f7b7d0686/pycares-0.6.3.tar.gz#sha256=b9f839866103541077b9a87d615458a975e26b936ec9fe1ba37f3d9b43786a96 (from https://pypi.org/simple/pycares/), version: 0.6.3
    Found link https://files.pythonhosted.org/packages/f2/8c/109152fbe0ac18f612697ac0a2233033bd1ba036731aa8fda52b71c90f38/pycares-0.7.0.tar.gz#sha256=74bff2abcb97786cb0fd1cf220873b63c33d20c37a2c46427515ce63641c9982 (from https://pypi.org/simple/pycares/), version: 0.7.0
    Found link https://files.pythonhosted.org/packages/46/27/7ee723ed870b8aed8e0dbb72ecd210879753fd166984933d7d4c9c39c305/pycares-1.0.0.tar.gz#sha256=a18341ea030e2cc0743acdf4aa72302bdf6b820938b36ce4bd76e43faa2276a3 (from https://pypi.org/simple/pycares/), version: 1.0.0
    Found link https://files.pythonhosted.org/packages/e1/77/c37849bef3c30cb4e5bcabe3857a83e598c6965a240beecab9dea03daa99/pycares-2.0.0.tar.gz#sha256=b132a0b4846dc89b813ec331e2d1b3d29e11697978b2e602269aeb202e6e1f66 (from https://pypi.org/simple/pycares/), version: 2.0.0
    Found link https://files.pythonhosted.org/packages/a2/7a/ff1701b55ef96615fb018bff935a014d76d7daa43d32a1b00bdcef028f97/pycares-2.0.1.tar.gz#sha256=3a684c09b753e143d86190b57d71bd82d24492062d11d6ab6acc21349d2da34d (from https://pypi.org/simple/pycares/), version: 2.0.1
    Found link https://files.pythonhosted.org/packages/b0/18/0ef4bbfe426c1ce44161de78c77b110fb3e3454e89c0f1c547a713d20efa/pycares-2.1.0.tar.gz#sha256=449ad785ecb594ae063c0c86537ef97513385117a2eb172f747ad2a29221e898 (from https://pypi.org/simple/pycares/), version: 2.1.0
    Found link https://files.pythonhosted.org/packages/df/68/44eb34ac59512d7f1901df228433c5e2341a21406348d8bed4b0fbc7cfbb/pycares-2.1.1.tar.gz#sha256=17f06ecc2f7f5950922891dfe179a14382e34d620919c17f18957c6cd319ef43 (from https://pypi.org/simple/pycares/), version: 2.1.1
    Found link https://files.pythonhosted.org/packages/b3/ba/6d59e91566902471d00e3efd477e37d8f4507e3c443a3c354c7622b8c09d/pycares-2.2.0.tar.gz#sha256=d0e53e2aa46867e2493d3858a70ffdec92699c03990aadc7223cf13384f61791 (from https://pypi.org/simple/pycares/), version: 2.2.0
    Found link https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz#sha256=36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40 (from https://pypi.org/simple/pycares/), version: 2.3.0
  Using version 2.3.0 (newest of versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 1.0.0, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.2.0, 2.3.0)
  Created temporary directory: /data/data/com.termux/files/usr/tmp/pip-unpack-t135uxzv
  Looking up "https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz" in the cache
  Current age based on date: 67108
  Ignoring unknown cache-control directive: immutable
  Freshness lifetime from max-age: 365000000
  The response is "fresh", returning cached response
  365000000 > 67108
  Using cached https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz
  Downloading from URL https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz#sha256=36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40 (from https://pypi.org/simple/pycares/)
  Added pycares from https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz#sha256=36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40 to build tracker '/data/data/com.termux/files/usr/tmp/pip-req-tracker-thwzlszv'
  Running setup.py (path:/data/data/com.termux/files/usr/tmp/pip-install-a2tvnnsd/pycares/setup.py) egg_info for package pycares
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/pycares.egg-info
    writing pip-egg-info/pycares.egg-info/PKG-INFO
    writing dependency_links to pip-egg-info/pycares.egg-info/dependency_links.txt
    writing top-level names to pip-egg-info/pycares.egg-info/top_level.txt
    writing manifest file 'pip-egg-info/pycares.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/pycares.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
    warning: no previously-included files matching '*.[ao]' found under directory '*'
    warning: no previously-included files matching '*.so' found under directory '*'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'pip-egg-info/pycares.egg-info/SOURCES.txt'
  Source in /data/data/com.termux/files/usr/tmp/pip-install-a2tvnnsd/pycares has version 2.3.0, which satisfies requirement pycares from https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz#sha256=36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40
  Removed pycares from https://files.pythonhosted.org/packages/89/5c/3a7e1a52d6abb52b9ca1a56d2df699936e89d8b98f75cfd60d03363e7c10/pycares-2.3.0.tar.gz#sha256=36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40 from build tracker '/data/data/com.termux/files/usr/tmp/pip-req-tracker-thwzlszv'
Installing collected packages: pycares
  Created temporary directory: /data/data/com.termux/files/usr/tmp/pip-record-q_x6juge
  Running setup.py install for pycares ...     Running command /data/data/com.termux/files/usr/bin/python -u -c "import setuptools, tokenize;__file__='/data/data/com.termux/files/usr/tmp/pip-install-a2tvnnsd/pycares/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /data/data/com.termux/files/usr/tmp/pip-record-q_x6juge/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.7
    creating build/lib.linux-aarch64-3.7/pycares
    copying pycares/__init__.py -> build/lib.linux-aarch64-3.7/pycares
    copying pycares/__main__.py -> build/lib.linux-aarch64-3.7/pycares
    copying pycares/errno.py -> build/lib.linux-aarch64-3.7/pycares
    copying pycares/_version.py -> build/lib.linux-aarch64-3.7/pycares
    running build_ext
    building 'pycares._core' extension
    creating build/temp.linux-aarch64-3.7
    creating build/temp.linux-aarch64-3.7/src
    creating build/temp.linux-aarch64-3.7/deps
    creating build/temp.linux-aarch64-3.7/deps/c-ares
    creating build/temp.linux-aarch64-3.7/deps/c-ares/src
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c src/pycares.c -o build/temp.linux-aarch64-3.7/src/pycares.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares__close_sockets.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__close_sockets.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares__get_hostent.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__get_hostent.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares__read_line.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__read_line.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares__timeval.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__timeval.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_cancel.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_cancel.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_create_query.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_create_query.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_data.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_data.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_destroy.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_destroy.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_expand_name.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_expand_name.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_expand_string.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_expand_string.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_fds.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_fds.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_free_hostent.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_free_hostent.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_free_string.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_free_string.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_gethostbyaddr.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_gethostbyaddr.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_gethostbyname.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_gethostbyname.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_getnameinfo.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_getnameinfo.o
    deps/c-ares/src/ares_getnameinfo.c:306:15: warning: implicit declaration of function 'getservbyport_r' is invalid in C99 [-Wimplicit-function-declaration]
              if (getservbyport_r(port, proto, &se, (void *)tmpbuf,
                  ^
    1 warning generated.
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_getopt.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_getopt.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_getsock.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_getsock.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_init.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_init.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_library_init.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_library_init.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_llist.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_llist.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_mkquery.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_mkquery.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_nowarn.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_nowarn.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_options.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_options.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_a_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_a_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_aaaa_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_aaaa_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_mx_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_mx_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_naptr_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_naptr_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_ns_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_ns_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_ptr_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_ptr_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_soa_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_soa_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_srv_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_srv_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_parse_txt_reply.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_txt_reply.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_process.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_process.o
    deps/c-ares/src/ares_process.c:339:52: warning: passing 'ares_socklen_t *' (aka 'int *') to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
       return recvfrom(s, data, data_len, flags, from, from_len);
                                                       ^~~~~~~~
    /data/data/com.termux/files/usr/include/sys/socket.h:334:119: note: passing argument to parameter '__src_addr_length' here
    __socketcall ssize_t recvfrom(int __fd, void* __buf, size_t __n, int __flags, struct sockaddr* __src_addr, socklen_t* __src_addr_length);
                                                                                                                          ^
    1 warning generated.
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_query.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_query.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_search.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_search.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_send.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_send.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_strcasecmp.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_strcasecmp.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_strdup.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_strdup.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_strerror.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_strerror.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_timeout.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_timeout.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_version.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_version.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/ares_writev.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_writev.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/bitncmp.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/bitncmp.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/inet_net_pton.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/inet_net_pton.o
    aarch64-linux-android-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Oz -Oz -fPIC -DHAVE_CONFIG_H=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I/data/data/com.termux/files/usr/include/python3.7m -Ideps/c-ares/src -Ideps/c-ares/src/config_linux -c deps/c-ares/src/inet_ntop.c -o build/temp.linux-aarch64-3.7/deps/c-ares/src/inet_ntop.o
    aarch64-linux-android-clang -shared -L/data/data/com.termux/files/usr/lib -landroid-support -L/home/builder/.termux-build/_cache/18-aarch64-21-v1/sysroot/usr/lib -L/data/data/com.termux/files/usr/lib -landroid-support -L/home/builder/.termux-build/_cache/18-aarch64-21-v1/sysroot/usr/lib build/temp.linux-aarch64-3.7/src/pycares.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__close_sockets.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__get_hostent.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__read_line.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares__timeval.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_cancel.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_create_query.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_data.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_destroy.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_expand_name.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_expand_string.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_fds.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_free_hostent.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_free_string.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_gethostbyaddr.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_gethostbyname.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_getnameinfo.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_getopt.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_getsock.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_init.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_library_init.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_llist.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_mkquery.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_nowarn.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_options.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_a_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_aaaa_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_mx_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_naptr_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_ns_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_ptr_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_soa_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_srv_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_parse_txt_reply.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_process.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_query.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_search.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_send.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_strcasecmp.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_strdup.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_strerror.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_timeout.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_version.o build/temp.linux-aarch64-3.7/deps/c-ares/src/ares_writev.o build/temp.linux-aarch64-3.7/deps/c-ares/src/bitncmp.o build/temp.linux-aarch64-3.7/deps/c-ares/src/inet_net_pton.o build/temp.linux-aarch64-3.7/deps/c-ares/src/inet_ntop.o -L/data/data/com.termux/files/usr/lib -lpython3.7m -ldl -lrt -o build/lib.linux-aarch64-3.7/pycares/_core.cpython-37m.so
    running install_lib
    creating /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares
    copying build/lib.linux-aarch64-3.7/pycares/__init__.py -> /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares
    copying build/lib.linux-aarch64-3.7/pycares/__main__.py -> /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares
    copying build/lib.linux-aarch64-3.7/pycares/errno.py -> /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares
    copying build/lib.linux-aarch64-3.7/pycares/_version.py -> /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares
    copying build/lib.linux-aarch64-3.7/pycares/_core.cpython-37m.so -> /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares
    byte-compiling /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/__init__.py to __init__.cpython-37.pyc
    byte-compiling /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/__main__.py to __main__.cpython-37.pyc
    byte-compiling /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/errno.py to errno.cpython-37.pyc
    byte-compiling /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/_version.py to _version.cpython-37.pyc
    running install_egg_info
    running egg_info
    writing pycares.egg-info/PKG-INFO
    writing dependency_links to pycares.egg-info/dependency_links.txt
    writing top-level names to pycares.egg-info/top_level.txt
    reading manifest file 'pycares.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
    warning: no previously-included files matching '*.[ao]' found under directory '*'
    warning: no previously-included files matching '*.so' found under directory '*'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'pycares.egg-info/SOURCES.txt'
    Copying pycares.egg-info to /data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares-2.3.0-py3.7.egg-info
    running install_scripts
    writing list of installed files to '/data/data/com.termux/files/usr/tmp/pip-record-q_x6juge/install-record.txt'
done
  Removing source in /data/data/com.termux/files/usr/tmp/pip-install-a2tvnnsd/pycares
Successfully installed pycares-2.3.0
Cleaning up...
Removed build tracker '/data/data/com.termux/files/usr/tmp/pip-req-tracker-thwzlszv'

Importing the module fails (cffi 1.11.5 installed)

Python 3.7.1 (default, Oct 21 2018, 18:20:26) 
[Clang 7.0.2 (https://android.googlesource.com/toolchain/clang 003100370607242d on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cffi
>>> import pycares
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/__init__.py", line 5, in <module>
    from ._core import *
ImportError: dlopen failed: cannot locate symbol "getservbyport_r" referenced by "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/_core.cpython-37m.so"...

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pycares/__init__.py", line 7, in <module>
    from ._cfficore import *
ModuleNotFoundError: No module named 'pycares._cfficore'

I did notice, however, that no module matching 'pycares._cfficore' appeared to be installed.

potter-> more installed-files.txt 
../pycares/__init__.py
../pycares/__main__.py
../pycares/__pycache__/__init__.cpython-37.pyc
../pycares/__pycache__/__main__.cpython-37.pyc
../pycares/__pycache__/_version.cpython-37.pyc
../pycares/__pycache__/errno.cpython-37.pyc
../pycares/_core.cpython-37m.so
../pycares/_version.py
../pycares/errno.py
PKG-INFO
SOURCES.txt
dependency_links.txt
top_level.txt

Thank you for any help you may be able to provide. Please let me know if you need further information.

@iegubkin
Copy link
Author

iegubkin commented Dec 9, 2018

The following two links pointed me in the right direction and got things working correctly:

nodejs/node#3074
https://www.sisik.eu/blog/android/other/build-node-js-for-android

From the home directory of the termux install:

mkdir builds
cd builds/
git clone https://github.com/saghul/pycares
cd pycares/
nano deps/c-ares/src/config_linux/ares_config.h

comment out line: #define HAVE_GETSERVBYPORT_R 1

  /* Define to 1 if you have the getservbyport_r function. */
  //#define HAVE_GETSERVBYPORT_R 1

save ares_config.h

python setup.py install

see if it works:

python tests/tests.py

@saghul
Copy link
Owner

saghul commented Dec 27, 2018

Maybe that could be guarded with an if __ANDROID__.

@saghul
Copy link
Owner

saghul commented Jan 16, 2019

Please try the new 3.0.0 beta, Android support should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants