PHP 8 installation error on FreeBSD servers

dudek888

Verified User
Joined
Jun 21, 2009
Messages
34
Location
Szczecin / Poland
Hi,

FreeBSD 12.2 x64
CB 2.0.0 (rev: 2685)
Probably a problem with the GD library..

/bin/sh /usr/local/directadmin/custombuild/php-8.0.3/libtool --silent --preserve-dup-deps --mode=compile clang -Iext/gd/ -I/usr/local/directadmin/custombuild/php-8.0.3/ext/gd/ -I/usr/local/directadmin/custombuild/php-8.0.3/include -I/usr/local/directadmin/custombuild/php-8.0.3/main -I/usr/local/directadmin/custombuild/php-8.0.3 -I/usr/local/directadmin/custombuild/php-8.0.3/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include/heimdal -I/usr/local/include -I/usr/local/include/libpng16 -I/usr/local/include/freetype2 -I/usr/local/icu/include -I/usr/local/directadmin/custombuild/php-8.0.3/ext/mbstring/libmbfl -I/usr/local/directadmin/custombuild/php-8.0.3/ext/mbstring/libmbfl/mbfl -I/usr/local/directadmin/custombuild/php-8.0.3/TSRM -I/usr/local/directadmin/custombuild/php-8.0.3/Zend -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -I/usr/local/directadmin/custombuild/php-8.0.3/ext/gd/libgd -c /usr/local/directadmin/custombuild/php-8.0.3/ext/gd/libgd/gd_interpolation.c -o ext/gd/libgd/gd_interpolation.lo
--- ext/gd/libgd/gd_crop.lo ---
/usr/local/directadmin/custombuild/php-8.0.3/ext/gd/libgd/gd_crop.c:43:12: error: conflicting types for 'gdImageCrop'
gdImagePtr gdImageCrop(gdImagePtr src, const gdRectPtr crop)
/usr/local/include/gd.h:1553:25: note: previous declaration is here
BGD_DECLARE(gdImagePtr) gdImageCrop(gdImagePtr src, const gdRect *crop);

1 error generated.
*** [ext/gd/libgd/gd_crop.lo] Error code 1

make: stopped in /usr/local/directadmin/custombuild/php-8.0.3
--- ext/gd/libgd/gd_interpolation.lo ---
/usr/local/directadmin/custombuild/php-8.0.3/ext/gd/libgd/gd_interpolation.c:1044:11: warning: implicit declaration of function 'php_gd_gdImageCreateTrueColor' is invalid in C99 [-Wimplicit-function-declaration]
tmp_im = gdImageCreateTrueColor(new_width, src_height);
.
.
.
.
.
43 warnings generated.
make: stopped in /usr/local/directadmin/custombuild/php-8.0.3
 
Same here with FreeBSD 11.3. It compiles from ports but not from the DA package.
 
Back
Top