FriendsOfPHP / pickle

PHP Extension installer
Other
1.65k stars 88 forks source link

Can't install Xdebug when building a php8.2 container in DIND #263

Open KorvinSzanto opened 1 year ago

KorvinSzanto commented 1 year ago

I'm using docker in docker (DIND) to build my base php8.2 container and I'm running into an issue trying to install xdebug that only shows up in DIND: https://gitlab.com/portlandlabs/containers/-/jobs/3481867623

2: /tmp/xdebug/xdebug-3.2.0/src/base/filter.c:346:10: fatal error: mm.h: No such file or directory
2:   346 | #include "mm.h"
2:       |          ^~~~~~
2: compilation terminated.

This seems to be caused by base/filter.c somehow including the content of lib/str.c during compilation. See https://github.com/mlocati/docker-php-extension-installer/issues/674 for more info about the issue

mlocati commented 1 year ago

Does the same error occur also when using pecl? If so, I'd report it to the xdebug maintainer: he may have a clue about what's going wrong

KorvinSzanto commented 1 year ago

No PECL installs fine https://github.com/mlocati/docker-php-extension-installer/issues/674#issuecomment-1353563117

mlocati commented 1 year ago

Yet another good reason to drop pickle and keep using pecl