{"action":"opened","issue":{"url":"https://api.github.com/repos/wcgallego/pecl-gearman/issues/35","repository_url":"https://api.github.com/repos/wcgallego/pecl-gearman","labels_url":"https://api.github.com/repos/wcgallego/pecl-gearman/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/wcgallego/pecl-gearman/issues/35/comments","events_url":"https://api.github.com/repos/wcgallego/pecl-gearman/issues/35/events","html_url":"https://github.com/wcgallego/pecl-gearman/issues/35","id":174942535,"number":35,"title":"Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so: gearman_task_fetch_object: symbol not found in Unknown on line 0","user":{"login":"lougreenwood","id":12051736,"avatar_url":"https://avatars.githubusercontent.com/u/12051736?v=3","gravatar_id":"","url":"https://api.github.com/users/lougreenwood","html_url":"https://github.com/lougreenwood","followers_url":"https://api.github.com/users/lougreenwood/followers","following_url":"https://api.github.com/users/lougreenwood/following{/other_user}","gists_url":"https://api.github.com/users/lougreenwood/gists{/gist_id}","starred_url":"https://api.github.com/users/lougreenwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lougreenwood/subscriptions","organizations_url":"https://api.github.com/users/lougreenwood/orgs","repos_url":"https://api.github.com/users/lougreenwood/repos","events_url":"https://api.github.com/users/lougreenwood/events{/privacy}","received_events_url":"https://api.github.com/users/lougreenwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-04T10:42:12Z","updated_at":"2016-09-04T10:42:12Z","closed_at":null,"body":"Hi :)\r\n\r\nI'm currently attempting to build the Gearman PHP extension on an Alpine Linux based PHP7 docker image.\r\n\r\nI'm using the official package from here - https://hub.docker.com/_/php/ (7.0.10-fpm-alpine).\r\n\r\nI've built the extension using the following commands:\r\n\r\n```\r\nRUN cd / \\\r\n    && git clone --depth=1 git://github.com/wcgallego/pecl-gearman.git \\\r\n    && cd pecl-gearman \\\r\n    && phpize \\\r\n\t&& ./configure \\\r\n\t&& make \\\r\n\t&& make install \\\r\n\t&& docker-php-ext-enable gearman\r\n```\r\n\r\n(docker-php-ext-enable is a helper script provided a as part of the docker PHP image)\r\n\r\nThe problem I'm finding is that I get the following error after building the extension:\r\n\r\n```\r\nBuild complete.\r\nDon't forget to run 'make test'.\r\n\r\nInstalling shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so' - Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so: gearman_task_fetch_object: symbol not found in Unknown on line 0\r\n/usr/local/bin/docker-php-ext-enable: cd: line 4: can't cd to\r\n\r\nWarning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so' - Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so: gearman_task_fetch_object: symbol not found in Unknown on line 0\r\n/usr/local/lib/php/extensions/no-debug-non-zts-20151012\r\n```\r\n\r\nIf I remove the `docker-php-ext-enable gearman` and then run `php --info | grep gearman`, I see a similar output returned from PHP:\r\n\r\n```\r\n# php --info | grep gearman\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so' - Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so: gearman_task_fetch_object: symbol not found in Unknown on line 0\r\nWarning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so' - Error relocating /usr/local/lib/php/extensions/no-debug-non-zts-20151012/gearman.so: gearman_task_fetch_object: symbol not found in Unknown on line 0\r\n```\r\n\r\nI did some digging on the subject and found that it 'could' be related to Alpine Line not including glibc, however after installing a glib combat library for Alpine (Alpine uses musl libc instead of glib) I still get the same issue.\r\n\r\nAny ideas? Alpine Linux is now the default bistro for Docker, so any ideas tr help would be greatly appreciated! :)\r\n\r\nThanks"}}
{"actor":{"display_login":"lougreenwood"}}