Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2024 19:57:29 +0100
From:      Victor <vdemart@gmail.com>
To:        questions@freebsd.org
Subject:   Compilation of port php82-pgsql ends in error for undeclared identifiers
Message-ID:  <4dec5468-8910-4ece-ab11-e1f63699123e@gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Context: FreeBSD 13.2-RELEASE-p8 GENERIC amd64

I'm trying to install from the port phppgadmin that I know requires a 
php8x-pgsql dependency.

Unfortunately

/usr/ports/databases/php82-pgsql % sudo make install
Password:
===>  Building for php82-pgsql-8.2.14
--- pgsql.lo ---
/bin/sh 
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/libtool 
--mode=compile cc -I. 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/include 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/main 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql 
-I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib 
-I/usr/local/include -I/usr/local/include -isystem /usr/local/include 
-DHAVE_CONFIG_H  -O2 -pipe -fstack-protector-strong -isystem 
/usr/local/include -fno-strict-aliasing 
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c 
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c -o 
pgsql.lo
  cc -I. -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/include 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/main 
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql 
-I/usr/local/include/php -I/usr/local/include/php/main 
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib 
-I/usr/local/include -I/usr/local/include -isystem /usr/local/include 
-DHAVE_CONFIG_H -O2 -pipe -fstack-protector-strong -isystem 
/usr/local/include -fno-strict-aliasing 
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c 
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c -fPIC 
-DPIC -o .libs/pgsql.o
In file included from 
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c:65:
./pgsql_arginfo.h:775:73: error: use of undeclared identifier 
'ZEND_ACC_NOT_SERIALIZABLE'
         class_entry->ce_flags |= 
ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
^
./pgsql_arginfo.h:786:73: error: use of undeclared identifier 
'ZEND_ACC_NOT_SERIALIZABLE'
         class_entry->ce_flags |= 
ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
^
./pgsql_arginfo.h:797:73: error: use of undeclared identifier 
'ZEND_ACC_NOT_SERIALIZABLE'
         class_entry->ce_flags |= 
ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
^
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c:4058:4: 
error: use of undeclared identifier 'ZEND_FALLTHROUGH'
                         ZEND_FALLTHROUGH;
                         ^
4 errors generated.
*** [pgsql.lo] Error code 1

make[1]: stopped in 
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql
1 error

make[1]: stopped in 
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1


Where am I wrong? And what should I do to solve this compilation error?

Thank you

Vittorio

[-- Attachment #2 --]
<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Context: FreeBSD 13.2-RELEASE-p8 GENERIC amd64<br>
    </p>
    <p>I'm trying to install from the port phppgadmin that I know
      requires a php8x-pgsql dependency. </p>
    <p>Unfortunately<br>
    </p>
    <p><font size="4">/usr/ports/databases/php82-pgsql % sudo make
        install<br>
        Password:<br>
        ===&gt;  Building for php82-pgsql-8.2.14<br>
        --- pgsql.lo ---<br>
        /bin/sh
        /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/libtool
        --mode=compile cc -I.
        -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql
        -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/include
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/main
        -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql
        -I/usr/local/include/php -I/usr/local/include/php/main
        -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
        -I/usr/local/include/php/ext
        -I/usr/local/include/php/ext/date/lib -I/usr/local/include 
        -I/usr/local/include -isystem /usr/local/include
        -DHAVE_CONFIG_H  -O2 -pipe -fstack-protector-strong -isystem
        /usr/local/include -fno-strict-aliasing  
        -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
        /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c
        -o pgsql.lo<br>
         cc -I.
        -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql
        -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/include
-I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/main
        -I/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql
        -I/usr/local/include/php -I/usr/local/include/php/main
        -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
        -I/usr/local/include/php/ext
        -I/usr/local/include/php/ext/date/lib -I/usr/local/include
        -I/usr/local/include -isystem /usr/local/include -DHAVE_CONFIG_H
        -O2 -pipe -fstack-protector-strong -isystem /usr/local/include
        -fno-strict-aliasing -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c
        /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c 
        -fPIC -DPIC -o .libs/pgsql.o<br>
        In file included from
        /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c:65:<br>
        ./pgsql_arginfo.h:775:73: error: use of undeclared identifier
        'ZEND_ACC_NOT_SERIALIZABLE'<br>
                class_entry-&gt;ce_flags |=
        ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;<br>
                                                                              
        ^<br>
        ./pgsql_arginfo.h:786:73: error: use of undeclared identifier
        'ZEND_ACC_NOT_SERIALIZABLE'<br>
                class_entry-&gt;ce_flags |=
        ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;<br>
                                                                              
        ^<br>
        ./pgsql_arginfo.h:797:73: error: use of undeclared identifier
        'ZEND_ACC_NOT_SERIALIZABLE'<br>
                class_entry-&gt;ce_flags |=
        ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;<br>
                                                                              
        ^<br>
/usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql/pgsql.c:4058:4:
        error: use of undeclared identifier 'ZEND_FALLTHROUGH'<br>
                                ZEND_FALLTHROUGH;<br>
                                ^<br>
        4 errors generated.<br>
        *** [pgsql.lo] Error code 1<br>
        <br>
        make[1]: stopped in
        /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql<br>
        1 error<br>
        <br>
        make[1]: stopped in
        /usr/ports/databases/php82-pgsql/work/php-8.2.14/ext/pgsql<br>
        ===&gt; Compilation failed unexpectedly.<br>
        Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the
        failure to<br>
        the maintainer.<br>
        *** Error code 1<br>
      </font></p>
    <p><br>
    </p>
    <p>Where am I wrong? And what should I do to solve this compilation
      error?</p>
    <p>Thank you</p>
    <p>Vittorio<br>
    </p>
  </body>
</html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4dec5468-8910-4ece-ab11-e1f63699123e>