Build error "recompile with -fPIC" in PHP 8.0.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, list.

I can't compile PHP 8.0.0 because of this error. The same thing
happens to 7.4.13, but that can be solved by setting CFLAGS=-fPIC in
the environment, and then I succeed building 7.4.13. But with 8.0.0,
it *always* ends in the error, no matter if I set the variable. I
tried several combinations in my environment of build-related env
vars, configure option --with-pic, etc. but can't make it work. This
seems to happen in the libtool command in the Makefile.

Anyone aware of this issue? Any tips for solving it?

Error:

  /usr/bin/ld: read-only segment has dynamic IFUNC relocations;
recompile with -fPIC
  /usr/bin/ld: failed to set dynamic section sizes: Bad value
  collect2: error: ld returned 1 exit status
  Makefile:134: recipe for target 'libphp.la' failed
  make: *** [libphp.la] Error 1



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux