Bluepy installation on linksys wrt32x

Hi,

I am trying to install bluepy on my linksys wrt32x.
I have already solved many issues (lack on overlay memory - installed external HDD drive, Lack of cc -sym linking to gcc etc).
It required glib2-dev package which is not available. I have provided missing files from armhf package and I have no longer missing different *.h header files.

I see also missing ncc compiler. I think this is killer :frowning:
But now I have issues with linking different files .
I will try to work it out but maybe somebody could give me easier working solution?

With installation from source I have this output
python setup.py build

"b"make: Entering directory '/root/bluepy/bluepy'\ntar xzf bluez-src.tgz\ntouch ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c\nmake: pkg-config: No such file or directory\nmake: pkg-config: No such file or directory\ncc -L. -g -Wall -Os -DHAVE_CONFIG_H -I./bluez-5.47/attrib -I./bluez-5.47 -I./bluez-5.47/lib -I./bluez-5.47/src -I./bluez-5.47/gdbus -I./bluez-5.47/btio -I./bluez-5.47/sys -o bluepy-helper bluepy-helper.c ./bluez-5.47/lib/bluetooth.c ./bluez-5.47/lib/hci.c ./bluez-5.47/lib/sdp.c ./bluez-5.47/lib/uuid.c ./bluez-5.47/attrib/att.c ./bluez-5.47/attrib/gatt.c ./bluez-5.47/attrib/gattrib.c ./bluez-5.47/attrib/utils.c ./bluez-5.47/btio/btio.c ./bluez-5.47/src/log.c ./bluez-5.47/src/shared/mgmt.c ./bluez-5.47/src/shared/crypto.c ./bluez-5.47/src/shared/att.c ./bluez-5.47/src/shared/queue.c ./bluez-5.47/src/shared/util.c ./bluez-5.47/src/shared/io-glib.c ./bluez-5.47/src/shared/timeout-glib.c \n./bluez-5.47/attrib/gatt.c: In function 'gatt_discover_char':\n./bluez-5.47/attrib/gatt.c:712:2: warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]\n dc->uuid = g_memdup(uuid, sizeof(bt_uuid_t));\n ^~\nIn file included from /usr/include/glib.h:82:0,\n from ./bluez-5.47/attrib/gatt.c:32:\n/usr/include/glib/gstrfuncs.h:257:23: note: declared here\n gpointer g_memdup (gconstpointer mem,\n ^~~~~~~~\n./bluez-5.47/attrib/gatt.c: In function 'gatt_write_char':\n./bluez-5.47/attrib/gatt.c:980:2: warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]\n long_write->value = g_memdup(value, vlen);\n ^~~~~~~~~~\nIn file included from /usr/include/glib.h:82:0,\n from ./bluez-5.47/attrib/gatt.c:32:\n/usr/include/glib/gstrfuncs.h:257:23: note: declared here\n gpointer g_memdup (gconstpointer mem,\n ^~~~~~~~\n./bluez-5.47/attrib/gatt.c: In function 'gatt_discover_desc':\n./bluez-5.47/attrib/gatt.c:1146:2: warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]\n dd->uuid = g_memdup(uuid, sizeof(bt_uuid_t));\n ^~\nIn file included from /usr/include/glib.h:82:0,\n from ./bluez-5.47/attrib/gatt.c:32:\n/usr/include/glib/gstrfuncs.h:257:23: note: declared here\n gpointer g_memdup (gconstpointer mem,\n ^~~~~~~~\n/usr/bin/ld: /tmp/ccEmNIid.o: in function cmd_exit':\n/root/bluepy/bluepy/bluepy-helper.c:806: undefined reference to g_main_loop_quit'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function hci_monitor_cb':\n/root/bluepy/bluepy/bluepy-helper.c:1665: undefined reference to g_io_channel_read_chars'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1706: undefined reference to g_io_channel_read_chars'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1712: undefined reference to g_io_channel_read_chars'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1674: undefined reference to g_io_channel_read_chars'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1680: undefined reference to g_io_channel_read_chars'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function cmd_sec_level':\n/root/bluepy/bluepy/bluepy-helper.c:1166: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1167: undefined reference to g_strdup'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1180: undefined reference to g_error_free'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function cmd_char_write_common':\n/root/bluepy/bluepy/bluepy-helper.c:1132: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function cmd_read_uuid':\n/root/bluepy/bluepy/bluepy-helper.c:1060: undefined reference to g_malloc'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function char_read_by_uuid_cb':\n/root/bluepy/bluepy/bluepy-helper.c:801: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function cmd_connect':\n/root/bluepy/bluepy/bluepy-helper.c:828: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:829: undefined reference to g_strdup'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:831: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:835: undefined reference to g_strdup'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:836: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:838: undefined reference to g_strdup'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:857: undefined reference to g_error_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:860: undefined reference to g_io_add_watch'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function connect_cb':\n/root/bluepy/bluepy/bluepy-helper.c:572: undefined reference to g_error_free'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function prompt_read':\n/root/bluepy/bluepy/bluepy-helper.c:1999: undefined reference to g_main_loop_quit'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1994: undefined reference to g_io_channel_read_line'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function parse_line':\n/root/bluepy/bluepy/bluepy-helper.c:1958: undefined reference to g_strchug'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1958: undefined reference to g_strchomp'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1963: undefined reference to g_shell_parse_argv'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1977: undefined reference to g_strfreev'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function disconnect_io':\n/root/bluepy/bluepy/bluepy-helper.c:623: undefined reference to g_io_channel_shutdown'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:624: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function add_remote_oob_data':\n/root/bluepy/bluepy/bluepy-helper.c:1345: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1392: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1354: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1369: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1380: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function discover':\n/root/bluepy/bluepy/bluepy-helper.c:1808: undefined reference to g_io_channel_unix_new'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1809: undefined reference to g_io_channel_set_encoding'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1810: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1811: undefined reference to g_io_add_watch'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:1812: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccEmNIid.o: in function main':\n/root/bluepy/bluepy/bluepy-helper.c:2109: undefined reference to g_strdup'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2113: undefined reference to g_strdup'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2131: undefined reference to g_main_loop_new'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2133: undefined reference to g_io_channel_unix_new'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2134: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2136: undefined reference to g_io_add_watch'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2139: undefined reference to g_main_loop_run'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2144: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2145: undefined reference to g_main_loop_unref'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2147: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2148: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/bluepy-helper.c:2149: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccCoDMDe.o: in function att_data_list_free':\n/root/bluepy/bluepy/./bluez-5.47/attrib/att.c:109: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/att.c:110: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccCoDMDe.o:/root/bluepy/bluepy/./bluez-5.47/attrib/att.c:106: more undefined references to g_free' follow\n/usr/bin/ld: /tmp/ccCoDMDe.o: in function att_data_list_alloc':\n/root/bluepy/bluepy/./bluez-5.47/attrib/att.c:121: undefined reference to g_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/att.c:125: undefined reference to g_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/att.c:128: undefined reference to g_malloc0'\n/usr/bin/ld: /tmp/ccCoDMDe.o: in function dec_find_by_type_resp':\n/root/bluepy/bluepy/./bluez-5.47/attrib/att.c:381: undefined reference to g_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/att.c:385: undefined reference to g_slist_append'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function read_char_helper':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:820: undefined reference to g_malloc'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function read_blob_helper':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:776: undefined reference to g_try_realloc'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function discover_primary_unref':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:105: undefined reference to g_slist_free_full'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:107: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:107: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function discover_char_unref':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:149: undefined reference to g_slist_free_full'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:151: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:152: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:152: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function discover_desc_unref':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:171: undefined reference to g_slist_free_full'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:173: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:174: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:174: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function included_from_buf':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:468: undefined reference to g_malloc0'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function resolve_included_uuid':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:457: undefined reference to g_malloc0'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function find_included_cb':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:550: undefined reference to g_slist_append'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function isd_unref':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:135: undefined reference to g_slist_free_full'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:137: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:137: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function inc_query_free':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:445: undefined reference to g_free'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:446: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function read_long_destroy':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:756: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o:/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:758: more undefined references to g_free' follow\n/usr/bin/ld: /tmp/ccPKDFim.o: in function primary_by_uuid_cb':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:256: undefined reference to g_slist_concat'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:258: undefined reference to g_slist_last'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function primary_all_cb':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:330: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:339: undefined reference to g_slist_append'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function resolve_included_uuid_cb':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:432: undefined reference to g_slist_append'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function char_discovered_cb':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:632: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:643: undefined reference to g_slist_append'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function desc_discovered_cb':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:1070: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:1083: undefined reference to g_slist_append'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function gatt_discover_primary':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:387: undefined reference to g_try_malloc0'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function gatt_find_included':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:579: undefined reference to g_malloc0'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function gatt_discover_char':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:703: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:712: undefined reference to g_memdup'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function gatt_read_char':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:853: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:869: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function gatt_write_char':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:972: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:980: undefined reference to g_memdup'\n/usr/bin/ld: /tmp/ccPKDFim.o: in function gatt_discover_desc':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:1137: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gatt.c:1146: undefined reference to g_memdup'\n/usr/bin/ld: /tmp/ccLEldjF.o: in function g_attrib_new':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:106: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:111: undefined reference to g_io_channel_ref'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:119: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:142: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccLEldjF.o: in function g_attrib_unref':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:202: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccLEldjF.o: in function g_attrib_get_buffer':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:447: undefined reference to g_realloc'\n/usr/bin/ld: /tmp/ccLEldjF.o: in function g_attrib_set_mtu':\n/root/bluepy/bluepy/./bluez-5.47/attrib/gattrib.c:467: undefined reference to g_realloc'\n/usr/bin/ld: /tmp/ccJigfoJ.o: in function gatt_connect':\n/root/bluepy/bluepy/./bluez-5.47/attrib/utils.c:98: undefined reference to g_propagate_error'\n/usr/bin/ld: /tmp/ccJigfoJ.o: in function gatt_attr_data_from_string':\n/root/bluepy/bluepy/./bluez-5.47/attrib/utils.c:111: undefined reference to g_try_malloc0'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function check_nval':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:171: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function accept_remove':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:163: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function connect_remove':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:156: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function server_remove':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:149: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function server_cb':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:250: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:256: undefined reference to g_io_channel_unix_new'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:258: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:259: undefined reference to g_io_channel_set_flags'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:266: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_error_quark':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1681: undefined reference to g_quark_from_static_string'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_accept':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1445: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1458: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function accept_add':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:311: undefined reference to g_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:317: undefined reference to g_io_add_watch_full'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function accept_cb':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:191: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:200: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:205: undefined reference to g_clear_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function parse_set_opts':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:885: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_get_type':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:105: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:127: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:118: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function set_sec_level':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:479: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function l2cap_set':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:661: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function rfcomm_set':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:713: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o:/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:784: more undefined references to g_set_error' follow\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_set':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1487: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1500: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function get_src':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:903: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function get_sec_level':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:553: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function get_dst':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:917: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function get_valist':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1421: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1432: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function sco_get':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1345: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1383: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1405: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function create_io':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1571: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o:/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1561: more undefined references to g_set_error' follow\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function create_io':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1576: undefined reference to g_io_channel_unix_new'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1578: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1579: undefined reference to g_io_channel_set_flags'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_connect':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1610: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1625: undefined reference to g_set_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function connect_add':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:295: undefined reference to g_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:301: undefined reference to g_io_add_watch_full'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_connect':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1631: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1632: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function connect_cb':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:222: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:230: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:234: undefined reference to g_clear_error'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function bt_io_listen':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1662: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1669: undefined reference to g_set_error'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:1670: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccGjGHOj.o: in function server_add':\n/root/bluepy/bluepy/./bluez-5.47/btio/btio.c:278: undefined reference to g_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/btio/btio.c:285: undefined reference to g_io_add_watch_full'\n/usr/bin/ld: /tmp/ccDKLbDi.o: in function is_enabled':\n/root/bluepy/bluepy/./bluez-5.47/src/log.c:276: undefined reference to g_pattern_match_simple'\n/usr/bin/ld: /tmp/ccDKLbDi.o: in function __btd_log_init':\n/root/bluepy/bluepy/./bluez-5.47/src/log.c:310: undefined reference to g_strsplit_set'\n/usr/bin/ld: /tmp/ccDKLbDi.o: in function __btd_log_cleanup':\n/root/bluepy/bluepy/./bluez-5.47/src/log.c:330: undefined reference to g_strfreev'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_unref':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:68: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function watch_destroy':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:108: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_set_handler':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:231: undefined reference to g_source_remove'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function watch_new':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:183: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:192: undefined reference to g_io_add_watch_full'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_new':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:78: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:82: undefined reference to g_io_channel_unix_new'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:84: undefined reference to g_io_channel_set_encoding'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:85: undefined reference to g_io_channel_set_buffered'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:87: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_destroy':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:117: undefined reference to g_source_remove'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:122: undefined reference to g_source_remove'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:127: undefined reference to g_source_remove'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:131: undefined reference to g_io_channel_unref'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_get_fd':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:142: undefined reference to g_io_channel_unix_get_fd'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_set_close_on_destroy':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:151: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:153: undefined reference to g_io_channel_set_close_on_unref'\n/usr/bin/ld: /tmp/ccGkGCOB.o: in function io_shutdown':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/io-glib.c:288: undefined reference to g_io_channel_shutdown'\n/usr/bin/ld: /tmp/ccelAOnl.o: in function timeout_destroy':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/timeout-glib.c:47: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccelAOnl.o: in function timeout_add':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/timeout-glib.c:56: undefined reference to g_try_malloc0'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/timeout-glib.c:64: undefined reference to g_timeout_add_full'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/timeout-glib.c:67: undefined reference to g_free'\n/usr/bin/ld: /tmp/ccelAOnl.o: in function timeout_remove':\n/root/bluepy/bluepy/./bluez-5.47/src/shared/timeout-glib.c:74: undefined reference to g_main_context_find_source_by_id'\n/usr/bin/ld: /root/bluepy/bluepy/./bluez-5.47/src/shared/timeout-glib.c:77: undefined reference to g_source_destroy'\ncollect2: error: ld returned 1 exit status\nmake: *** [Makefile:30: bluepy-helper] Error 1\nmake: Leaving directory '/root/bluepy/bluepy'\n"`