{"action":"created","issue":{"url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql/issues/99","repository_url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql","labels_url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql/issues/99/comments","events_url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql/issues/99/events","html_url":"https://github.com/cavaliercoder/libzbxpgsql/issues/99","id":247493250,"node_id":"MDU6SXNzdWUyNDc0OTMyNTA=","number":99,"title":"Alpine Linux issues `symbol not found`","user":{"login":"endersonmaia","id":370,"node_id":"MDQ6VXNlcjM3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/370?v=4","gravatar_id":"","url":"https://api.github.com/users/endersonmaia","html_url":"https://github.com/endersonmaia","followers_url":"https://api.github.com/users/endersonmaia/followers","following_url":"https://api.github.com/users/endersonmaia/following{/other_user}","gists_url":"https://api.github.com/users/endersonmaia/gists{/gist_id}","starred_url":"https://api.github.com/users/endersonmaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endersonmaia/subscriptions","organizations_url":"https://api.github.com/users/endersonmaia/orgs","repos_url":"https://api.github.com/users/endersonmaia/repos","events_url":"https://api.github.com/users/endersonmaia/events{/privacy}","received_events_url":"https://api.github.com/users/endersonmaia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-08-02T19:15:17Z","updated_at":"2018-08-01T17:30:07Z","closed_at":null,"author_association":"NONE","body":"I compiled `libxbxpgsql` on an Alpine Linux, but I get this error when running the agent with the module :\r\n\r\n`agent_1      |  10980:20170802:153646.991 cannot load module \"libzbxpgsql.so\": Error relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_addstring: symbol not found\r\n`\r\n\r\nRunnig ldd on the `.so` I get this :\r\n\r\n```\r\n# ldd /var/lib/zabbix/modules//libzbxpgsql.so\r\n\tldd (0x7fc6e153f000)\r\n\tlibpq.so.5 => /usr/lib/libpq.so.5 (0x7fc6e1108000)\r\n\tlibconfig.so.9 => /usr/lib/libconfig.so.9 (0x7fc6e0efd000)\r\n\tlibc.musl-x86_64.so.1 => ldd (0x7fc6e153f000)\r\n\tlibssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x7fc6e0c95000)\r\n\tlibcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x7fc6e0876000)\r\n\tlibldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x7fc6e062d000)\r\n\tlibz.so.1 => /lib/libz.so.1 (0x7fc6e0417000)\r\n\tliblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x7fc6e020a000)\r\n\tlibsasl2.so.3 => /usr/lib/libsasl2.so.3 (0x7fc6dfff1000)\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_addstring: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_realloc2: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_addarray: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_vsnprintf: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_addobject: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: __zbx_zbx_snprintf: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_free: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_calloc2: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_init: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_malloc2: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_json_close: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: __zbx_zabbix_log: symbol not found\r\nError relocating /var/lib/zabbix/modules//libzbxpgsql.so: zbx_strlcpy: symbol not found\r\n```\r\n\r\nThe versions I'm using are :\r\n\r\n* libzbxpgsql-1.1.0\r\n* zabbix-3.2.6\r\n* Alpine Linux v3.4.6"},"comment":{"url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql/issues/comments/409656307","html_url":"https://github.com/cavaliercoder/libzbxpgsql/issues/99#issuecomment-409656307","issue_url":"https://api.github.com/repos/cavaliercoder/libzbxpgsql/issues/99","id":409656307,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTY1NjMwNw==","user":{"login":"endersonmaia","id":370,"node_id":"MDQ6VXNlcjM3MA==","avatar_url":"https://avatars1.githubusercontent.com/u/370?v=4","gravatar_id":"","url":"https://api.github.com/users/endersonmaia","html_url":"https://github.com/endersonmaia","followers_url":"https://api.github.com/users/endersonmaia/followers","following_url":"https://api.github.com/users/endersonmaia/following{/other_user}","gists_url":"https://api.github.com/users/endersonmaia/gists{/gist_id}","starred_url":"https://api.github.com/users/endersonmaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endersonmaia/subscriptions","organizations_url":"https://api.github.com/users/endersonmaia/orgs","repos_url":"https://api.github.com/users/endersonmaia/repos","events_url":"https://api.github.com/users/endersonmaia/events{/privacy}","received_events_url":"https://api.github.com/users/endersonmaia/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T17:30:07Z","updated_at":"2018-08-01T17:30:07Z","author_association":"NONE","body":"@am813nt do you have the .patch for the `APKBUILD` changes you did ?\r\n\r\nmaybe we should go upstream with this fix ?\r\n\r\nhttps://git.alpinelinux.org/cgit/aports/tree/community/zabbix/APKBUILD?h=v3.8.0&id=2484b3eda99f681c7de0866b438f63cdcc31b5da"}}
{"actor":{"display_login":"endersonmaia"}}