SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Rep:
regression on -current with php
php doesn't build anymore on -current:
----------------------
Dans le fichier inclus depuis /tmp/php-7.4.23/main/php.h:441,
depuis /tmp/php-7.4.23/ext/gd/gd.c:30:
/tmp/php-7.4.23/ext/gd/gd.c: Dans la fonction «*zm_startup_gd*»:
/tmp/php-7.4.23/ext/gd/gd.c:1140:55: erreur: «*GD_FLIP_HORINZONTAL*» non déclaré (première utilisation dans cette fonction)
1140 | REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", GD_FLIP_HORINZONTAL, CONST_CS | CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~~~~
/tmp/php-7.4.23/Zend/zend_constants.h:53:105: note: dans la définition de la macro «*REGISTER_LONG_CONSTANT*»
53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
| ^~~~
/tmp/php-7.4.23/ext/gd/gd.c:1140:55: note: chaque identificateur non déclaré est rapporté une seule fois pour chaque fonction dans laquelle il apparaît
1140 | REGISTER_LONG_CONSTANT("IMG_FLIP_HORIZONTAL", GD_FLIP_HORINZONTAL, CONST_CS | CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~~~~
/tmp/php-7.4.23/Zend/zend_constants.h:53:105: note: dans la définition de la macro «*REGISTER_LONG_CONSTANT*»
53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
| ^~~~
/tmp/php-7.4.23/ext/gd/gd.c:1141:53: erreur: «*GD_FLIP_VERTICAL*» non déclaré (première utilisation dans cette fonction)
1141 | REGISTER_LONG_CONSTANT("IMG_FLIP_VERTICAL", GD_FLIP_VERTICAL, CONST_CS | CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~
/tmp/php-7.4.23/Zend/zend_constants.h:53:105: note: dans la définition de la macro «*REGISTER_LONG_CONSTANT*»
53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
| ^~~~
/tmp/php-7.4.23/ext/gd/gd.c:1142:49: erreur: «*GD_FLIP_BOTH*» non déclaré (première utilisation dans cette fonction)
1142 | REGISTER_LONG_CONSTANT("IMG_FLIP_BOTH", GD_FLIP_BOTH, CONST_CS | CONST_PERSISTENT);
| ^~~~~~~~~~~~
/tmp/php-7.4.23/Zend/zend_constants.h:53:105: note: dans la définition de la macro «*REGISTER_LONG_CONSTANT*»
53 | #define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
| ^~~~
/tmp/php-7.4.23/ext/gd/gd.c: Dans la fonction «*zif_imageflip*»:
/tmp/php-7.4.23/ext/gd/gd.c:4699:22: erreur: «*GD_FLIP_VERTICAL*» non déclaré (première utilisation dans cette fonction)
4699 | case GD_FLIP_VERTICAL:
| ^~~~~~~~~~~~~~~~
/tmp/php-7.4.23/ext/gd/gd.c:4703:22: erreur: «*GD_FLIP_HORINZONTAL*» non déclaré (première utilisation dans cette fonction)
4703 | case GD_FLIP_HORINZONTAL:
| ^~~~~~~~~~~~~~~~~~~
/tmp/php-7.4.23/ext/gd/gd.c:4707:22: erreur: «*GD_FLIP_BOTH*» non déclaré (première utilisation dans cette fonction)
4707 | case GD_FLIP_BOTH:
| ^~~~~~~~~~~~
make: *** [Makefile:1135 : ext/gd/gd.lo] Erreur 1
-----------------------------
gd seems to be the culprit.
strange this never made it into latest php source 7.4.28, I guess they insist we use their version, which can't happen due to mis matches jpeg version *sigh* lib 62 vers 90.
Applying this patch and building --enable-gd=shared --with-external-gd
resolves the problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.