Bug 267950 - lang/php81 Multiple extensions fail to build with debug enabled
Summary: lang/php81 Multiple extensions fail to build with debug enabled
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-23 21:24 UTC by voh.ron
Modified: 2022-11-25 13:43 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description voh.ron 2022-11-23 21:24:52 UTC
Building with Synth the following fail to build when debug is enabled in lang/php81.

databases/php81-pdo_mysql
databases/php81-pdo_sqlite
textproc/php81-xmlreader
devel/php-composer2@php81

---------------------

# tail -n 25 /var/log/synth/textproc___php81-xmlreader.log
===>   php81-xmlreader-8.1.12 depends on package: autoconf>0 - found
===>   Returning to build of php81-xmlreader-8.1.12
===>   php81-xmlreader-8.1.12 depends on file: /usr/local/lib/php/20210902/dom.so - not found
===>   Installing existing package /packages/All/php81-dom-8.1.12.pkg
Installing php81-dom-8.1.12...
Extracting php81-dom-8.1.12: .......... done
=====
Message from php81-dom-8.1.12:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-dom.ini
===>   php81-xmlreader-8.1.12 depends on file: /usr/local/lib/php/20210902/dom.so - not found
*** Error code 1

Stop.
make: stopped in /xports/textproc/php81-xmlreader

---------------------

# tail -n 25  /var/log/synth/devel___php-composer2\@php81.log
===>   php81-composer2-2.4.3 depends on file: /usr/local/include/php/main/php.h - found
===>   Returning to build of php81-composer2-2.4.3
===>   php81-composer2-2.4.3 depends on file: /usr/local/lib/php/20210902/ctype.so - not found
===>   Installing existing package /packages/All/php81-ctype-8.1.12.pkg
Installing php81-ctype-8.1.12...
Extracting php81-ctype-8.1.12: ........ done
=====
Message from php81-ctype-8.1.12:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-ctype.ini
===>   php81-composer2-2.4.3 depends on file: /usr/local/lib/php/20210902/ctype.so - not found
*** Error code 1

Stop.
make: stopped in /xports/devel/php-composer2

---------------------

# tail -n 25  /var/log/synth/databases___php81-pdo_mysql.log
===>   php81-pdo_mysql-8.1.12 depends on package: autoconf>0 - found
===>   Returning to build of php81-pdo_mysql-8.1.12
===>   php81-pdo_mysql-8.1.12 depends on file: /usr/local/lib/php/20210902/pdo.so - not found
===>   Installing existing package /packages/All/php81-pdo-8.1.12.pkg
Installing php81-pdo-8.1.12...
Extracting php81-pdo-8.1.12: .......... done
=====
Message from php81-pdo-8.1.12:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-pdo.ini
===>   php81-pdo_mysql-8.1.12 depends on file: /usr/local/lib/php/20210902/pdo.so - not found
*** Error code 1

Stop.
make: stopped in /xports/databases/php81-pdo_mysql

---------------------

# tail -n 25  /var/log/synth/databases___php81-pdo_sqlite.log
===>   php81-pdo_sqlite-8.1.12 depends on package: autoconf>0 - found
===>   Returning to build of php81-pdo_sqlite-8.1.12
===>   php81-pdo_sqlite-8.1.12 depends on file: /usr/local/lib/php/20210902/pdo.so - not found
===>   Installing existing package /packages/All/php81-pdo-8.1.12.pkg
Installing php81-pdo-8.1.12...
Extracting php81-pdo-8.1.12: .......... done
=====
Message from php81-pdo-8.1.12:

--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-pdo.ini
===>   php81-pdo_sqlite-8.1.12 depends on file: /usr/local/lib/php/20210902/pdo.so - not found
*** Error code 1

Stop.
make: stopped in /xports/databases/php81-pdo_sqlite
Comment 1 Muhammad Moinur Rahman freebsd_committer 2022-11-25 13:43:21 UTC
I cannot make any sense from these logs. But most common reason of failure is apart from selecting the OPTIONS DEBUG/PHPDBG is we need the following line in make.conf
WITH_DEBUG=yes

And one more thing is if you have already installed versions of PHP and are changing OPTIONS to enable DEBUG/PHPDBG/ZTS that will not work. You will need to remove the entire php* ports and start afresh.

In any case I just tested all php versions with DEBUG enabled.

https://pkg.bounce-experts.com/jail.html?mastername=123-head-testDEBUG