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

Cannot build pcov in-tree #74

Open
nikic opened this issue Nov 12, 2021 · 2 comments
Open

Cannot build pcov in-tree #74

nikic opened this issue Nov 12, 2021 · 2 comments
Assignees

Comments

@nikic
Copy link
Collaborator

nikic commented Nov 12, 2021

The version check in

PHP_VERSION=$($PHP_CONFIG --vernum)
does not work for an in-tree build, only when going through phpize.

@krakjoe
Copy link
Owner

krakjoe commented Dec 20, 2021

@remicollet do you know the right incantation for autotools ?

@manarth
Copy link

manarth commented Sep 15, 2022

Also in-tree appears to surface a duplicate-definition error:

#32 2.289 /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: Zend/Optimizer/zend_cfg.o: in function `zend_cfg_remark_reachable_blocks':
#32 2.293 /opt/php-src/Zend/Optimizer/zend_cfg.c:235: multiple definition of `zend_cfg_remark_reachable_blocks'; ext/pcov/cfg/704/zend_cfg.o:/opt/php-src/ext/pcov/cfg/704/zend_cfg.c:260: first defined here
#32 2.299 /usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: Zend/Optimizer/zend_cfg.o: in function `zend_build_cfg':
#32 2.299 /opt/php-src/Zend/Optimizer/zend_cfg.c:271: multiple definition of `zend_build_cfg'; ext/pcov/cfg/704/zend_cfg.o:/opt/php-src/ext/pcov/cfg/704/zend_cfg.c:296: first defined here
#32 6.807 collect2: error: ld returned 1 exit status

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

4 participants