Jump to content

Call to undefined function CommonMark\Parse()


Recommended Posts

~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy
~$ sudo apt install php-pear
...
~$ sudo apt install php-dev 
...
~$ sudo pecl install cmark
...
ERROR: `/tmp/pear/temp/cmark/configure --with-php-config=/usr/bin/php-config' failed
~$ php -r 'CommonMark\Parse();'
PHP Fatal error:  Uncaught Error: Call to undefined function CommonMark\Parse() in Command line code:1

Unfortunately I don't have time to elaborate now

Edited by rick645
Link to comment
Share on other sites

Let's start again

~$ php -r 'CommonMark\Parse();'
PHP Fatal error:  Uncaught Error: Call to undefined function CommonMark\Parse() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1

~$ pecl install cmark
Command 'pecl' not found, but can be installed with:
sudo apt install php-pear

~$ sudo apt install php-pear
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpcre2-dev libpcre2-posix3 libssl-dev php-json php8.1-dev pkg-config shtool
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  php-pear
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 293 kB of archives.
After this operation, 2.131 kB of additional disk space will be used.
Get:1 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 php-pear all 1:1.10.12+submodules+notgz+20210212-1ubuntu3 [293 kB]
Fetched 293 kB in 1s (577 kB/s)  
Selecting previously unselected package php-pear.
(Reading database ... 359818 files and directories currently installed.)
Preparing to unpack .../php-pear_1%3a1.10.12+submodules+notgz+20210212-1ubuntu3_all.deb ...
Unpacking php-pear (1:1.10.12+submodules+notgz+20210212-1ubuntu3) ...
Setting up php-pear (1:1.10.12+submodules+notgz+20210212-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...

~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libpcre2-dev libpcre2-posix3 libssl-dev php-json php8.1-dev pkg-config shtool
0 upgraded, 0 newly installed, 7 to remove and 9 not upgraded.
After this operation, 20,9 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 359994 files and directories currently installed.)
Removing php8.1-dev (8.1.2-1ubuntu2.11) ...
Removing libpcre2-dev:amd64 (10.39-3ubuntu0.1) ...
Removing libpcre2-posix3:amd64 (10.39-3ubuntu0.1) ...
Removing libssl-dev:amd64 (3.0.2-0ubuntu1.8) ...
Removing php-json (2:8.1+92ubuntu1) ...
Removing pkg-config (0.29.2-1ubuntu3) ...
Removing shtool (2.0.8-10) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...

~$ sudo pecl install cmark
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading cmark-1.2.0.tgz ...
Starting to download cmark-1.2.0.tgz (72,374 bytes)
.................done: 72,374 bytes
52 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed

~$ phpize
Command 'phpize' not found, but can be installed with:
sudo apt install php-dev     # version 2:8.1+92ubuntu1, or
sudo apt install php8.1-dev  # version 8.1.2-1ubuntu2.11

I have to install I have to installphp-dev or php8.1-dev?

$ apt show php-dev php8.1-dev -a | grep Descriptio --after-context=7

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Description: Files for PHP module development (default)
 Headers and other PHP needed for compiling additional modules.
 .
 PHP (acronimo ricorsivo di PHP: Hypertext Preprocessor) è un linguaggio di
 scripting open source generico largamente usato che è particolarmente
 adatto per lo sviluppo web e che può essere incorporato nell'HTML.
 .
 This package is a dependency package, which depends on latest stable PHP
--
Description: Files for PHP8.1 module development
 This package provides the files from the PHP8.1 source needed for
 compiling additional modules.
 .
 PHP (acronimo ricorsivo di PHP: Hypertext Preprocessor) è un linguaggio di
 scripting open source generico largamente usato che è particolarmente
 adatto per lo sviluppo web e che può essere incorporato nell'HTML.

--
Description: Files for PHP8.1 module development
 This package provides the files from the PHP8.1 source needed for
 compiling additional modules.
 .
 PHP (acronimo ricorsivo di PHP: Hypertext Preprocessor) è un linguaggio di
 scripting open source generico largamente usato che è particolarmente
 adatto per lo sviluppo web e che può essere incorporato nell'HTML.

 

Link to comment
Share on other sites

Most package managers have a concept of a "metapackage": it doesn't have anything itself, but it depends on other packages. Among other advantages, that means you can install the metapackage and the rest will be sorted out for you.

php-dev is a metapackage for php<version>-dev.

 

Link to comment
Share on other sites

$ sudo apt install php-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libpcre2-dev libpcre2-posix3 libssl-dev php-json php8.1-dev pkg-config pkg-php-tools shtool
Suggested packages:
  libssl-doc dh-php dh-make
The following NEW packages will be installed:
  libpcre2-dev libpcre2-posix3 libssl-dev php-dev php-json php8.1-dev pkg-config pkg-php-tools shtool
0 upgraded, 9 newly installed, 0 to remove and 9 not upgraded.
Need to get 3.813 kB of archives.
After this operation, 21,1 MB of additional disk space will be used.
Do you want to continue? [S/n] 
Get:1 http://it.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-posix3 amd64 10.39-3ubuntu0.1 [6.130 B]
Get:2 http://it.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-dev amd64 10.39-3ubuntu0.1 [730 kB]
Get:3 http://it.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.8 [2.374 kB]
Get:4 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48,2 kB]
Get:5 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 shtool all 2.0.8-10 [122 kB]
Get:6 http://it.archive.ubuntu.com/ubuntu jammy-updates/main amd64 php8.1-dev amd64 8.1.2-1ubuntu2.11 [494 kB]
Get:7 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 php-dev all 2:8.1+92ubuntu1 [3.170 B]
Get:8 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 php-json all 2:8.1+92ubuntu1 [1.834 B]
Get:9 http://it.archive.ubuntu.com/ubuntu jammy/main amd64 pkg-php-tools all 1.42build1 [33,5 kB]
Fetched 3.813 kB in 2s (1.580 kB/s)      
Selecting previously unselected package libpcre2-posix3:amd64.
(Reading database ... 359302 files and directories currently installed.)
Preparing to unpack .../0-libpcre2-posix3_10.39-3ubuntu0.1_amd64.deb ...
Unpacking libpcre2-posix3:amd64 (10.39-3ubuntu0.1) ...
Selecting previously unselected package libpcre2-dev:amd64.
Preparing to unpack .../1-libpcre2-dev_10.39-3ubuntu0.1_amd64.deb ...
Unpacking libpcre2-dev:amd64 (10.39-3ubuntu0.1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../2-libssl-dev_3.0.2-0ubuntu1.8_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.2-0ubuntu1.8) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../3-pkg-config_0.29.2-1ubuntu3_amd64.deb ...
Unpacking pkg-config (0.29.2-1ubuntu3) ...
Selecting previously unselected package shtool.
Preparing to unpack .../4-shtool_2.0.8-10_all.deb ...
Unpacking shtool (2.0.8-10) ...
Selecting previously unselected package php8.1-dev.
Preparing to unpack .../5-php8.1-dev_8.1.2-1ubuntu2.11_amd64.deb ...
Unpacking php8.1-dev (8.1.2-1ubuntu2.11) ...
Selecting previously unselected package php-dev.
Preparing to unpack .../6-php-dev_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-dev (2:8.1+92ubuntu1) ...
Selecting previously unselected package php-json.
Preparing to unpack .../7-php-json_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-json (2:8.1+92ubuntu1) ...
Selecting previously unselected package pkg-php-tools.
Preparing to unpack .../8-pkg-php-tools_1.42build1_all.deb ...
Unpacking pkg-php-tools (1.42build1) ...
Setting up shtool (2.0.8-10) ...
Setting up php-json (2:8.1+92ubuntu1) ...
Setting up libssl-dev:amd64 (3.0.2-0ubuntu1.8) ...
Setting up pkg-config (0.29.2-1ubuntu3) ...
Setting up libpcre2-posix3:amd64 (10.39-3ubuntu0.1) ...
Setting up pkg-php-tools (1.42build1) ...
Setting up libpcre2-dev:amd64 (10.39-3ubuntu0.1) ...
Setting up php8.1-dev (8.1.2-1ubuntu2.11) ...
update-alternatives: using /usr/bin/php-config8.1 to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: using /usr/bin/phpize8.1 to provide /usr/bin/phpize (phpize) in auto mode
Setting up php-dev (2:8.1+92ubuntu1) ...
update-alternatives: using /usr/bin/php-config.default to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: using /usr/bin/phpize.default to provide /usr/bin/phpize (phpize) in auto mode
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...

$ sudo pecl install cmark
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading cmark-1.2.0.tgz ...
Starting to download cmark-1.2.0.tgz (72,374 bytes)
.................done: 72,374 bytes
52 source files, building
running: phpize
Configuring for:
PHP Api Version:         20210902
Zend Module Api No:      20210902
Zend Extension Api No:   420210902
configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
configure.ac:22: the top level
config.m4:84: warning: The macro `AC_TRY_RUN' is obsolete.
config.m4:84: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
config.m4:84: the top level
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
building in /tmp/pear/temp/pear-build-rootuKxWeN/cmark-1.2.0
running: /tmp/pear/temp/cmark/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20210902
checking for PHP installed headers prefix... /usr/include/php/20210902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable cmark support... yes, shared
checking for bison... no
checking for byacc... no
checking for pkg-config... /usr/bin/pkg-config
checking for libcmark... checking for cmark_markdown_to_html in -lcmark... no
configure: error: wrong cmark lib version or lib not found
ERROR: `/tmp/pear/temp/cmark/configure --with-php-config=/usr/bin/php-config' failed

 

Edited by rick645
Link to comment
Share on other sites

3 minutes ago, rick645 said:

Where can I download (or install) the library?

Most things are available via apt, just just need to know the package name.  You can either use apt search or your favorite search engine to help find that.

kicken@web1:~$ apt search libcmark
Sorting... Done
Full Text Search... Done
libcmark-dev/focal 0.29.0-2 amd64
  development files for CommonMark parsing and rendering library

...

So try sudo apt install libcmark-dev and then try installing the PHP extension again.

Link to comment
Share on other sites

$ sudo apt install libcmark-dev
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto   
I seguenti pacchetti NUOVI saranno installati:
  libcmark-dev
0 aggiornati, 1 installati, 0 da rimuovere e 9 non aggiornati.
È necessario scaricare 132 kB di archivi.
Dopo quest'operazione, verranno occupati 668 kB di spazio su disco.
Scaricamento di:1 http://it.archive.ubuntu.com/ubuntu jammy/universe amd64 libcmark-dev amd64 0.30.2-5 [132 kB]
Recuperati 132 kB in 1s (165 kB/s)   
Selezionato il pacchetto libcmark-dev:amd64 non precedentemente selezionato.
(Lettura del database... 360038 file e directory attualmente installati.)
Preparativi per estrarre .../libcmark-dev_0.30.2-5_amd64.deb...
Estrazione di libcmark-dev:amd64 (0.30.2-5)...
Configurazione di libcmark-dev:amd64 (0.30.2-5)...
Elaborazione dei trigger per man-db (2.10.2-1)...

$ sudo pecl install cmark
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading cmark-1.2.0.tgz ...
Starting to download cmark-1.2.0.tgz (72,374 bytes)
.................done: 72,374 bytes
52 source files, building
running: phpize
Configuring for:
PHP Api Version:         20210902
Zend Module Api No:      20210902
Zend Extension Api No:   420210902
configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
configure.ac:22: the top level
config.m4:84: warning: The macro `AC_TRY_RUN' is obsolete.
config.m4:84: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
config.m4:84: the top level
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
building in /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0
running: /tmp/pear/temp/cmark/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20210902
checking for PHP installed headers prefix... /usr/include/php/20210902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable cmark support... yes, shared
checking for bison... no
checking for byacc... no
checking for pkg-config... /usr/bin/pkg-config
checking for libcmark... from pkgconfig: version 0.30.2
checking for cmark_markdown_to_html in -lcmark... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/cmark.c -o cmark.lo  -MMD -MF cmark.dep -MT cmark.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/cmark.c -MMD -MF cmark.dep -MT cmark.lo  -fPIC -DPIC -o .libs/cmark.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/node.c -o src/node.lo  -MMD -MF src/node.dep -MT src/node.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/node.c -MMD -MF src/node.dep -MT src/node.lo  -fPIC -DPIC -o src/.libs/node.o
/tmp/pear/temp/cmark/src/node.c: In function ‘zm_startup_CommonMark_Node’:
/tmp/pear/temp/cmark/src/node.c:426:48: warning: assignment to ‘zend_object_get_debug_info_t’ {aka ‘struct _zend_array * (*)(struct _zend_object *, int *)’} from incompatible pointer type ‘HashTable * (*)(zval *, int *)’ {aka ‘struct _zend_array * (*)(struct _zval_struct *, int *)’} [-Wincompatible-pointer-types]
  426 |         php_cmark_node_handlers.get_debug_info = php_cmark_node_debug;
      |                                                ^
/tmp/pear/temp/cmark/src/node.c:427:43: warning: assignment to ‘zend_object_clone_obj_t’ {aka ‘struct _zend_object * (*)(struct _zend_object *)’} from incompatible pointer type ‘zend_object * (*)(zval *)’ {aka ‘struct _zend_object * (*)(struct _zval_struct *)’} [-Wincompatible-pointer-types]
  427 |         php_cmark_node_handlers.clone_obj = php_cmark_node_clone;
      |                                           ^
/tmp/pear/temp/cmark/src/node.c:429:47: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  429 |         php_cmark_node_handlers.read_property = php_cmark_node_read;
      |                                               ^
/tmp/pear/temp/cmark/src/node.c:430:48: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  430 |         php_cmark_node_handlers.write_property = php_cmark_node_write;
      |                                                ^
/tmp/pear/temp/cmark/src/node.c:431:46: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  431 |         php_cmark_node_handlers.has_property = php_cmark_node_isset;
      |                                              ^
/tmp/pear/temp/cmark/src/node.c:432:48: warning: assignment to ‘zend_object_unset_property_t’ {aka ‘void (*)(struct _zend_object *, struct _zend_string *, void **)’} from incompatible pointer type ‘void (*)(zval *, zval *, void **)’ {aka ‘void (*)(struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  432 |         php_cmark_node_handlers.unset_property = php_cmark_node_unset;
      |                                                ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/handlers.c -o src/handlers.lo  -MMD -MF src/handlers.dep -MT src/handlers.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/handlers.c -MMD -MF src/handlers.dep -MT src/handlers.lo  -fPIC -DPIC -o src/.libs/handlers.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/custom.c -o src/custom.lo  -MMD -MF src/custom.dep -MT src/custom.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/custom.c -MMD -MF src/custom.dep -MT src/custom.lo  -fPIC -DPIC -o src/.libs/custom.o
/tmp/pear/temp/cmark/src/custom.c: In function ‘zm_startup_CommonMark_Node_Custom’:
/tmp/pear/temp/cmark/src/custom.c:228:54: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  228 |         php_cmark_node_custom_handlers.read_property = php_cmark_node_custom_read;
      |                                                      ^
/tmp/pear/temp/cmark/src/custom.c:229:55: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  229 |         php_cmark_node_custom_handlers.write_property = php_cmark_node_custom_write;
      |                                                       ^
/tmp/pear/temp/cmark/src/custom.c:230:53: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  230 |         php_cmark_node_custom_handlers.has_property = php_cmark_node_custom_isset;
      |                                                     ^
/tmp/pear/temp/cmark/src/custom.c:231:55: warning: assignment to ‘zend_object_unset_property_t’ {aka ‘void (*)(struct _zend_object *, struct _zend_string *, void **)’} from incompatible pointer type ‘void (*)(zval *, zval *, void **)’ {aka ‘void (*)(struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  231 |         php_cmark_node_custom_handlers.unset_property = php_cmark_node_custom_unset;
      |                                                       ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/visitor.c -o src/visitor.lo  -MMD -MF src/visitor.dep -MT src/visitor.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/visitor.c -MMD -MF src/visitor.dep -MT src/visitor.lo  -fPIC -DPIC -o src/.libs/visitor.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/document.c -o src/document.lo  -MMD -MF src/document.dep -MT src/document.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/document.c -MMD -MF src/document.dep -MT src/document.lo  -fPIC -DPIC -o src/.libs/document.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/quote.c -o src/quote.lo  -MMD -MF src/quote.dep -MT src/quote.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/quote.c -MMD -MF src/quote.dep -MT src/quote.lo  -fPIC -DPIC -o src/.libs/quote.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/list.c -o src/list.lo  -MMD -MF src/list.dep -MT src/list.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/list.c -MMD -MF src/list.dep -MT src/list.lo  -fPIC -DPIC -o src/.libs/list.o
/tmp/pear/temp/cmark/src/list.c: In function ‘zm_startup_CommonMark_Node_List’:
/tmp/pear/temp/cmark/src/list.c:459:60: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  459 |         php_cmark_node_ordered_list_handlers.read_property = php_cmark_node_ordered_list_read;
      |                                                            ^
/tmp/pear/temp/cmark/src/list.c:460:61: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  460 |         php_cmark_node_ordered_list_handlers.write_property = php_cmark_node_ordered_list_write;
      |                                                             ^
/tmp/pear/temp/cmark/src/list.c:461:59: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  461 |         php_cmark_node_ordered_list_handlers.has_property = php_cmark_node_ordered_list_isset;
      |                                                           ^
/tmp/pear/temp/cmark/src/list.c:477:52: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  477 |         php_cmark_node_list_handlers.read_property = php_cmark_node_list_read;
      |                                                    ^
/tmp/pear/temp/cmark/src/list.c:478:53: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  478 |         php_cmark_node_list_handlers.write_property = php_cmark_node_list_write;
      |                                                     ^
/tmp/pear/temp/cmark/src/list.c:479:51: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  479 |         php_cmark_node_list_handlers.has_property = php_cmark_node_list_isset;
      |                                                   ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/item.c -o src/item.lo  -MMD -MF src/item.dep -MT src/item.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/item.c -MMD -MF src/item.dep -MT src/item.lo  -fPIC -DPIC -o src/.libs/item.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/block.c -o src/block.lo  -MMD -MF src/block.dep -MT src/block.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/block.c -MMD -MF src/block.dep -MT src/block.lo  -fPIC -DPIC -o src/.libs/block.o
/tmp/pear/temp/cmark/src/block.c: In function ‘zm_startup_CommonMark_Node_Block’:
/tmp/pear/temp/cmark/src/block.c:292:58: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  292 |         php_cmark_node_code_block_handlers.read_property = php_cmark_node_code_block_read;
      |                                                          ^
/tmp/pear/temp/cmark/src/block.c:293:59: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  293 |         php_cmark_node_code_block_handlers.write_property = php_cmark_node_code_block_write;
      |                                                           ^
/tmp/pear/temp/cmark/src/block.c:294:57: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  294 |         php_cmark_node_code_block_handlers.has_property = php_cmark_node_code_block_isset;
      |                                                         ^
/tmp/pear/temp/cmark/src/block.c:295:59: warning: assignment to ‘zend_object_unset_property_t’ {aka ‘void (*)(struct _zend_object *, struct _zend_string *, void **)’} from incompatible pointer type ‘void (*)(zval *, zval *, void **)’ {aka ‘void (*)(struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  295 |         php_cmark_node_code_block_handlers.unset_property = php_cmark_node_code_block_unset;
      |                                                           ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/paragraph.c -o src/paragraph.lo  -MMD -MF src/paragraph.dep -MT src/paragraph.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/paragraph.c -MMD -MF src/paragraph.dep -MT src/paragraph.lo  -fPIC -DPIC -o src/.libs/paragraph.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/heading.c -o src/heading.lo  -MMD -MF src/heading.dep -MT src/heading.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/heading.c -MMD -MF src/heading.dep -MT src/heading.lo  -fPIC -DPIC -o src/.libs/heading.o
/tmp/pear/temp/cmark/src/heading.c: In function ‘zm_startup_CommonMark_Node_Heading’:
/tmp/pear/temp/cmark/src/heading.c:208:55: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  208 |         php_cmark_node_heading_handlers.read_property = php_cmark_node_heading_read;
      |                                                       ^
/tmp/pear/temp/cmark/src/heading.c:209:56: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  209 |         php_cmark_node_heading_handlers.write_property = php_cmark_node_heading_write;
      |                                                        ^
/tmp/pear/temp/cmark/src/heading.c:210:54: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  210 |         php_cmark_node_heading_handlers.has_property = php_cmark_node_heading_isset;
      |                                                      ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/break.c -o src/break.lo  -MMD -MF src/break.dep -MT src/break.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/break.c -MMD -MF src/break.dep -MT src/break.lo  -fPIC -DPIC -o src/.libs/break.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/text.c -o src/text.lo  -MMD -MF src/text.dep -MT src/text.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/text.c -MMD -MF src/text.dep -MT src/text.lo  -fPIC -DPIC -o src/.libs/text.o
/tmp/pear/temp/cmark/src/text.c: In function ‘zm_startup_CommonMark_Node_Text’:
/tmp/pear/temp/cmark/src/text.c:255:52: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  255 |         php_cmark_node_text_handlers.read_property = php_cmark_node_text_read;
      |                                                    ^
/tmp/pear/temp/cmark/src/text.c:256:53: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  256 |         php_cmark_node_text_handlers.write_property = php_cmark_node_text_write;
      |                                                     ^
/tmp/pear/temp/cmark/src/text.c:257:51: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  257 |         php_cmark_node_text_handlers.has_property = php_cmark_node_text_isset;
      |                                                   ^
/tmp/pear/temp/cmark/src/text.c:258:53: warning: assignment to ‘zend_object_unset_property_t’ {aka ‘void (*)(struct _zend_object *, struct _zend_string *, void **)’} from incompatible pointer type ‘void (*)(zval *, zval *, void **)’ {aka ‘void (*)(struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  258 |         php_cmark_node_text_handlers.unset_property = php_cmark_node_text_unset;
      |                                                     ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/code.c -o src/code.lo  -MMD -MF src/code.dep -MT src/code.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/code.c -MMD -MF src/code.dep -MT src/code.lo  -fPIC -DPIC -o src/.libs/code.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/inline.c -o src/inline.lo  -MMD -MF src/inline.dep -MT src/inline.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/inline.c -MMD -MF src/inline.dep -MT src/inline.lo  -fPIC -DPIC -o src/.libs/inline.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/media.c -o src/media.lo  -MMD -MF src/media.dep -MT src/media.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/media.c -MMD -MF src/media.dep -MT src/media.lo  -fPIC -DPIC -o src/.libs/media.o
/tmp/pear/temp/cmark/src/media.c: In function ‘zm_startup_CommonMark_Node_Media’:
/tmp/pear/temp/cmark/src/media.c:344:53: warning: assignment to ‘zend_object_read_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, int,  void **, struct _zval_struct *)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, int,  void **, zval *)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, int,  void **, struct _zval_struct *)’} [-Wincompatible-pointer-types]
  344 |         php_cmark_node_media_handlers.read_property = php_cmark_node_media_read;
      |                                                     ^
/tmp/pear/temp/cmark/src/media.c:345:54: warning: assignment to ‘zend_object_write_property_t’ {aka ‘struct _zval_struct * (*)(struct _zend_object *, struct _zend_string *, struct _zval_struct *, void **)’} from incompatible pointer type ‘zval * (*)(zval *, zval *, zval *, void **)’ {aka ‘struct _zval_struct * (*)(struct _zval_struct *, struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  345 |         php_cmark_node_media_handlers.write_property = php_cmark_node_media_write;
      |                                                      ^
/tmp/pear/temp/cmark/src/media.c:346:52: warning: assignment to ‘zend_object_has_property_t’ {aka ‘int (*)(struct _zend_object *, struct _zend_string *, int,  void **)’} from incompatible pointer type ‘int (*)(zval *, zval *, int,  void **)’ {aka ‘int (*)(struct _zval_struct *, struct _zval_struct *, int,  void **)’} [-Wincompatible-pointer-types]
  346 |         php_cmark_node_media_handlers.has_property = php_cmark_node_media_isset;
      |                                                    ^
/tmp/pear/temp/cmark/src/media.c:347:54: warning: assignment to ‘zend_object_unset_property_t’ {aka ‘void (*)(struct _zend_object *, struct _zend_string *, void **)’} from incompatible pointer type ‘void (*)(zval *, zval *, void **)’ {aka ‘void (*)(struct _zval_struct *, struct _zval_struct *, void **)’} [-Wincompatible-pointer-types]
  347 |         php_cmark_node_media_handlers.unset_property = php_cmark_node_media_unset;
      |                                                      ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/render.c -o src/render.lo  -MMD -MF src/render.dep -MT src/render.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/render.c -MMD -MF src/render.dep -MT src/render.lo  -fPIC -DPIC -o src/.libs/render.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/parse.c -o src/parse.lo  -MMD -MF src/parse.dep -MT src/parse.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/parse.c -MMD -MF src/parse.dep -MT src/parse.lo  -fPIC -DPIC -o src/.libs/parse.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/iterator.c -o src/iterator.lo  -MMD -MF src/iterator.dep -MT src/iterator.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/iterator.c -MMD -MF src/iterator.dep -MT src/iterator.lo  -fPIC -DPIC -o src/.libs/iterator.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/cql_lexer.c -o src/cql_lexer.lo  -MMD -MF src/cql_lexer.dep -MT src/cql_lexer.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/cql_lexer.c -MMD -MF src/cql_lexer.dep -MT src/cql_lexer.lo  -fPIC -DPIC -o src/.libs/cql_lexer.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/cql_parser.c -o src/cql_parser.lo  -MMD -MF src/cql_parser.dep -MT src/cql_parser.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/cql_parser.c -MMD -MF src/cql_parser.dep -MT src/cql_parser.lo  -fPIC -DPIC -o src/.libs/cql_parser.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/call.c -o src/call.lo  -MMD -MF src/call.dep -MT src/call.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/call.c -MMD -MF src/call.dep -MT src/call.lo  -fPIC -DPIC -o src/.libs/call.o
/tmp/pear/temp/cmark/src/call.c: In function ‘zm_startup_CommonMark_CQL’:
/tmp/pear/temp/cmark/src/call.c:198:43: warning: assignment to ‘zend_object_clone_obj_t’ {aka ‘struct _zend_object * (*)(struct _zend_object *)’} from incompatible pointer type ‘zend_object * (*)(zval *)’ {aka ‘struct _zend_object * (*)(struct _zval_struct *)’} [-Wincompatible-pointer-types]
  198 |         php_cmark_call_handlers.clone_obj = php_cmark_call_clone;
      |                                           ^
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/cql.c -o src/cql.lo  -MMD -MF src/cql.dep -MT src/cql.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/cmark -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/cmark/src/cql.c -MMD -MF src/cql.dep -MT src/cql.lo  -fPIC -DPIC -o src/.libs/cql.o
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=link cc -shared -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/include -I/tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/main -I/tmp/pear/temp/cmark -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -o cmark.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/modules  cmark.lo src/node.lo src/handlers.lo src/custom.lo src/visitor.lo src/document.lo src/quote.lo src/list.lo src/item.lo src/block.lo src/paragraph.lo src/heading.lo src/break.lo src/text.lo src/code.lo src/inline.lo src/media.lo src/render.lo src/parse.lo src/iterator.lo src/cql_lexer.lo src/cql_parser.lo src/call.lo src/cql.lo -lcmark
libtool: link: cc -shared  -fPIC -DPIC  .libs/cmark.o src/.libs/node.o src/.libs/handlers.o src/.libs/custom.o src/.libs/visitor.o src/.libs/document.o src/.libs/quote.o src/.libs/list.o src/.libs/item.o src/.libs/block.o src/.libs/paragraph.o src/.libs/heading.o src/.libs/break.o src/.libs/text.o src/.libs/code.o src/.libs/inline.o src/.libs/media.o src/.libs/render.o src/.libs/parse.o src/.libs/iterator.o src/.libs/cql_lexer.o src/.libs/cql_parser.o src/.libs/call.o src/.libs/cql.o   -lcmark  -g -O2   -Wl,-soname -Wl,cmark.so -o .libs/cmark.so
libtool: link: ( cd ".libs" && rm -f "cmark.la" && ln -s "../cmark.la" "cmark.la" )
/bin/bash /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/libtool --mode=install cp ./cmark.la /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/modules
libtool: install: cp ./.libs/cmark.so /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/modules/cmark.so
libtool: install: cp ./.libs/cmark.lai /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/modules/cmark.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /tmp/pear/temp/pear-build-rootoaNN2P/cmark-1.2.0/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0" install
Installing shared extensions:     /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0/usr/lib/php/20210902/
running: find "/tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0" | xargs ls -dils
923708   4 drwxr-xr-x 3 root root   4096 mar 21 10:03 /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0
923880   4 drwxr-xr-x 3 root root   4096 mar 21 10:03 /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0/usr
923881   4 drwxr-xr-x 3 root root   4096 mar 21 10:03 /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0/usr/lib
923882   4 drwxr-xr-x 3 root root   4096 mar 21 10:03 /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0/usr/lib/php
923883   4 drwxr-xr-x 2 root root   4096 mar 21 10:03 /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0/usr/lib/php/20210902
923879 684 -rwxr-xr-x 1 root root 696776 mar 21 10:03 /tmp/pear/temp/pear-build-rootoaNN2P/install-cmark-1.2.0/usr/lib/php/20210902/cmark.so

Build process completed successfully
Installing '/usr/lib/php/20210902/cmark.so'
install ok: channel://pecl.php.net/cmark-1.2.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=cmark.so" to php.ini

$ echo "extension=cmark.so" | sudo tee -a /etc/php/8.1/cli/php.ini > /dev/null

$ php -r 'CommonMark\Parse();'
PHP Fatal error:  Class CommonMark\Node must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0

 

Link to comment
Share on other sites

Quote

Uninstall,

$ sudo pecl remove cmark \
  && sudo apt install libcmark-dev php-dev php-pear \
  && sed --in-place=bak '/extension=cmark.so/d' /etc/php/8.1/cli/php.ini
PHP Fatal error:  Class CommonMark\Node must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
Quote

then try downloading this version

Download what?

Link to comment
Share on other sites

EDIT

I downloaded the cmark-develop.zip zip file and I decompressed in the cmark-develop dir.

+ cd cmark-develop
+ phpize
Configuring for:
PHP Api Version:         20210902
Zend Module Api No:      20210902
Zend Extension Api No:   420210902
configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
configure.ac:22: the top level
config.m4:84: warning: The macro `AC_TRY_RUN' is obsolete.
config.m4:84: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
config.m4:84: the top level
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
+ ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20210902
checking for PHP installed headers prefix... /usr/include/php/20210902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable cmark support... yes, shared
checking for bison... no
checking for byacc... no
checking for pkg-config... /usr/bin/pkg-config
checking for libcmark... from pkgconfig: version 0.30.2
checking for cmark_markdown_to_html in -lcmark... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
+ sudo make install
/bin/bash [PATH]/cmark-develop/libtool --mode=install cp ./cmark.la [PATH]/modules
libtool: install: cp ./.libs/cmark.so [PATH]/cmark-develop/modules/cmark.so
libtool: install: cp ./.libs/cmark.lai [PATH]/cmark-develop/modules/cmark.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n [PATH]/cmark-develop/modules
----------------------------------------------------------------------
Libraries have been installed in:
   [PATH]/cmark-develop/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing shared extensions:     /usr/lib/php/20210902/
+ echo extension=cmark.so
+ sudo tee -a /etc/php/8.1/cli/php.ini
+ php -r 'echo CommonMark\Parse("*ABC*");'
PHP Warning:  Module "cmark" is already loaded in Unknown on line 0

 

Edited by requinix
removing personal info by request
Link to comment
Share on other sites

I don't think you successfully uninstalled the previous attempt.  With ubuntu you generally do not enable/disable extensions by directly modifying the php.ini file.  Extensions are managed through included .ini files in /etc/php/8.1/cli/conf.d.

Remove any extension lines you added to /etc/php/8.1/cli/php.ini, then check in /etc/php/8.1/cli/conf.d for a file that loads cmark.

Link to comment
Share on other sites

1 hour ago, kicken said:

I don't think you successfully uninstalled the previous attempt.  With ubuntu you generally do not enable/disable extensions by directly modifying the php.ini file.  Extensions are managed through included .ini files in /etc/php/8.1/cli/conf.d.

Remove any extension lines you added to /etc/php/8.1/cli/php.ini,

 

+ grep -in cmark /etc/php/8.1/cli/php.ini
1952:extension=cmark.so
1953:extension=cmark.so
1954:extension=cmark.so
1955:extension=cmark.so
1956:extension=cmark.so

 

Quote

then check in /etc/php/8.1/cli/conf.d for a file that loads cmark.

????
What do you mean?
Maybe you mean the following search ...
 

+ ls -l /etc/php/8.1/cli/conf.d
totale 0
lrwxrwxrwx 1 root root 39 ago 16  2022 10-opcache.ini -> /etc/php/8.1/mods-available/opcache.ini
lrwxrwxrwx 1 root root 35 ago 16  2022 10-pdo.ini -> /etc/php/8.1/mods-available/pdo.ini
lrwxrwxrwx 1 root root 35 ago 25  2022 15-xml.ini -> /etc/php/8.1/mods-available/xml.ini
lrwxrwxrwx 1 root root 40 ago 16  2022 20-calendar.ini -> /etc/php/8.1/mods-available/calendar.ini
lrwxrwxrwx 1 root root 37 ago 16  2022 20-ctype.ini -> /etc/php/8.1/mods-available/ctype.ini
lrwxrwxrwx 1 root root 36 feb  9 11:36 20-curl.ini -> /etc/php/8.1/mods-available/curl.ini
lrwxrwxrwx 1 root root 35 ago 25  2022 20-dom.ini -> /etc/php/8.1/mods-available/dom.ini
lrwxrwxrwx 1 root root 36 ago 16  2022 20-exif.ini -> /etc/php/8.1/mods-available/exif.ini
lrwxrwxrwx 1 root root 35 ago 16  2022 20-ffi.ini -> /etc/php/8.1/mods-available/ffi.ini
lrwxrwxrwx 1 root root 40 ago 16  2022 20-fileinfo.ini -> /etc/php/8.1/mods-available/fileinfo.ini
lrwxrwxrwx 1 root root 35 ago 16  2022 20-ftp.ini -> /etc/php/8.1/mods-available/ftp.ini
lrwxrwxrwx 1 root root 39 ago 16  2022 20-gettext.ini -> /etc/php/8.1/mods-available/gettext.ini
lrwxrwxrwx 1 root root 37 ago 16  2022 20-iconv.ini -> /etc/php/8.1/mods-available/iconv.ini
lrwxrwxrwx 1 root root 36 set  5  2022 20-imap.ini -> /etc/php/8.1/mods-available/imap.ini
lrwxrwxrwx 1 root root 36 ago 16  2022 20-intl.ini -> /etc/php/8.1/mods-available/intl.ini
lrwxrwxrwx 1 root root 40 ago 16  2022 20-mbstring.ini -> /etc/php/8.1/mods-available/mbstring.ini
lrwxrwxrwx 1 root root 36 ago 16  2022 20-phar.ini -> /etc/php/8.1/mods-available/phar.ini
lrwxrwxrwx 1 root root 37 ago 16  2022 20-posix.ini -> /etc/php/8.1/mods-available/posix.ini
lrwxrwxrwx 1 root root 40 ago 16  2022 20-readline.ini -> /etc/php/8.1/mods-available/readline.ini
lrwxrwxrwx 1 root root 37 ago 16  2022 20-shmop.ini -> /etc/php/8.1/mods-available/shmop.ini
lrwxrwxrwx 1 root root 41 ago 25  2022 20-simplexml.ini -> /etc/php/8.1/mods-available/simplexml.ini
lrwxrwxrwx 1 root root 39 ago 16  2022 20-sockets.ini -> /etc/php/8.1/mods-available/sockets.ini
lrwxrwxrwx 1 root root 39 ago 16  2022 20-sysvmsg.ini -> /etc/php/8.1/mods-available/sysvmsg.ini
lrwxrwxrwx 1 root root 39 ago 16  2022 20-sysvsem.ini -> /etc/php/8.1/mods-available/sysvsem.ini
lrwxrwxrwx 1 root root 39 ago 16  2022 20-sysvshm.ini -> /etc/php/8.1/mods-available/sysvshm.ini
lrwxrwxrwx 1 root root 41 ago 16  2022 20-tokenizer.ini -> /etc/php/8.1/mods-available/tokenizer.ini
lrwxrwxrwx 1 root root 41 ago 25  2022 20-xmlreader.ini -> /etc/php/8.1/mods-available/xmlreader.ini
lrwxrwxrwx 1 root root 41 ago 25  2022 20-xmlwriter.ini -> /etc/php/8.1/mods-available/xmlwriter.ini
lrwxrwxrwx 1 root root 35 ago 25  2022 20-xsl.ini -> /etc/php/8.1/mods-available/xsl.ini
lrwxrwxrwx 1 root root 36 set  5  2022 20-yaml.ini -> /etc/php/8.1/mods-available/yaml.ini
+ !! | grep cmark
+ grep -Rin cmark /etc/php/8.1/cli/conf.d

As you can see, there are no results.
????

I repeat, please, let me understand what you mean.

 

Edited by rick645
Link to comment
Share on other sites

18 minutes ago, rick645 said:
+ grep -in cmark /etc/php/8.1/cli/php.ini
1952:extension=cmark.so
1953:extension=cmark.so
1954:extension=cmark.so
1955:extension=cmark.so
1956:extension=cmark.so

If you're going to load the extension via the php.ini file, you should only have one extension=cmark.so line, so remove all the duplicates.

19 minutes ago, rick645 said:

I repeat, please, let me understand what you mean.

The way ubuntu is setup is to load extensions via those files, not via php.ini modifications. Since you were having an issue of the extension being loaded multiple times, I was thinking you might have a file there loading the extension in addition to your php.ini modification.  It seems, instead you've just attempted to load the extension multiple times in your php.ini file.

You might also want to check the files under /usr/lib/php/ and make sure you don't have any old cmark.so files from your previous attempt still there that might get loaded by mistake.

Link to comment
Share on other sites

Quote


If you're going to load the extension via the php.ini file, you should only have one extension=cmark.so line, so remove all the duplicates.

I deleted the duplicates

$ grep cmark /etc/php/8.1/cli/php.ini
extension=cmark.so

and now works

$ php -r 'CommonMark\Parse("*ABC*");' \
  && echo 'OK!!!'
OK!!!
Quote


The way ubuntu is setup is to load extensions via those files, not via php.ini modifications.

This seems to me to contradict what you said at the beginning.
Indeed if I disable it

$ grep cmark /etc/php/8.1/cli/php.ini
;extension=cmark.so

it doesn't work

$ php -r 'CommonMark\Parse("*ABC*");'
PHP Fatal error:  Uncaught Error: Call to undefined function CommonMark\Parse() in Command line code:1

So what did you mean?
Let me understand.

Quote


Since you were having an issue of the extension being loaded multiple times, I was thinking you might have a file there loading the extension in addition to your php.ini modification.  It seems, instead you've just attempted to load the extension multiple times in your php.ini file.

mmhhh............
????
Confused.

Quote


You might also want to check the files under /usr/lib/php/ and make sure you don't have any old cmark.so files from your previous attempt still there that might get loaded by mistake.

$ find /usr/lib/php/ -name '*cmark*'
/usr/lib/php/20210902/cmark.so

Do I have to delete it?

Edited by rick645
Link to comment
Share on other sites

5 hours ago, rick645 said:

This seems to me to contradict what you said at the beginning.

No, you can edit the php.ini directly, but that's not the preferred method.  The preferred method, and what all the php-* packages from apt do, is generate a new file in the conf.d directory (technically, a symlink to a file in the mods-available directory).  This allows the php.ini file to be easily updated if it needs to be by future package updates since it won't be full of customizations.

Since you installed the cmark extension manually, you'd have to generate your own file to load it, such as

echo extension=cmark.so | sudo tee /etc/php/8.1/cli/conf.d/cmark.ini

Or, you can just load it in the php.ini directly like you've done.

5 hours ago, rick645 said:

mmhhh............
????
Confused.

You were having issues with the module being loaded twice.  The point was that you needed to check that there wasn't a file in the conf.d directory also loading the extension if you were going to load it via the php.ini file directly.  You can load it in either the php.ini, or one of those extension files, not both.

5 hours ago, rick645 said:

Do I have to delete it?

Not if there's only one.  The point was to make sure you didn't have an old copy from your previous install attempt still laying around.  So long as you only have the latest working one, then leave it there.

Link to comment
Share on other sites

Thanks for the info.

Allow me one more question.

We said to install

# download https://github.com/dwo0/cmark/archive/refs/heads/develop.zip and unzip
cd cmark-develop
phpize
./configure
sudo make install

But to uninstall (complete uninstall, leaving no traces)?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.