Welcome! Log In Create A New Profile

Advanced

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

April 13, 2018 06:54AM
> On 13 Apr 2018, at 13:14, Ralph Seichter <m16+nginx@monksofcool.net> wrote:
>
> Congratulations to the whole team for reaching the release 1.0 milestone!
>
> I'm trying to build Unit on Gentoo Linux, and while module configs for
> Python and Perl work as expected, I'm struggling with the PHP module:
>
> $ ./configure php --config=/usr/lib64/php7.1/bin/php-config
> configuring PHP module
> checking for PHP ... found
> + PHP SAPI: [cli fpm apache2handler]
> checking for PHP embed SAPI ... not found

PHP package was built without embed SAPI support.
Otherwise it shows something like this:
+ PHP SAPI: [cli fpm embed apache2handler]

> Here is the content of build/autoconf.err:
>
> configuring PHP module ...
> checking for PHP ...
> 7.1.16
> ----------------------------------------
> checking for PHP embed SAPI
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lphp7
> collect2: error: ld returned 1 exit status
> ----------
>
> #include <php.h>
> #include <php_main.h>
>
> int main() {
> php_request_startup();
> return 0;
> }
> ----------
> cc -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes
> -Werror -g -I/usr/lib64/php7.1/include/php -I/usr/lib64/php7.1/include/php/main -I/usr/lib64/php7.1/include/php/TSRM
> -I/usr/lib64/php7.1/include/php/Zend -I/usr/lib64/php7.1/include/php/ext -I/usr/lib64/php7.1/include/php/ext/date/lib -o
> build/autotest build/autotest.c -lphp7
> ----------
>
> A search turned up https://github.com/nginx/unit/issues/47 but I am not
> sure if/how this applies to my issue and what to do next?

This is different issue.


--
Igor Sysoev
http://nginx.com

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Unit 1.0 release

Valentin V. Bartenev April 12, 2018 02:36PM

Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Ralph Seichter April 13, 2018 06:16AM

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Igor Sysoev April 13, 2018 06:54AM

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Ralph Seichter April 13, 2018 07:46AM

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Igor Sysoev April 13, 2018 08:50AM

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Ralph Seichter April 13, 2018 10:26AM

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Igor Sysoev April 13, 2018 10:42AM

[SOLVED] Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Ralph Seichter April 13, 2018 11:08AM

Re: [SOLVED] Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Igor Sysoev April 13, 2018 11:14AM

Re: Trouble configuring PHP 7.1 module for Unit 1.0 on Gentoo Linux

Ralph Seichter April 13, 2018 12:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready