Posix.c:471: error: 'struct utsname' has no member named 'domainname'

From CPanelDirect
Jump to: navigation, search

PHP build failure on litespeed

/opt/lsws/phpbuild/php-5.2.6/ext/posix/posix.c: In function 'zif_posix_uname':
/opt/lsws/phpbuild/php-5.2.6/ext/posix/posix.c:471: error: 'struct utsname' has no member named 'domainname'
*** Error code 1

To fix this downgrade autoconf

pkg_add -r autoconf213
cd /usr/local/bin
ln -sf autoconf-2.13 autoconf
ln -sf autoheader-2.13 autoheader

Also litespeed expects gcc and ld to be 755.

Notes

http://www.meticulo.com/blog/php-5-autoconf-262