Bug #66007 [Opn]: Cannot compile PHP shared modules in FreeBSD 10 due to detection of freebsd1*

From: Date: Wed, 30 Oct 2013 23:38:42 +0000
Subject: Bug #66007 [Opn]: Cannot compile PHP shared modules in FreeBSD 10 due to detection of freebsd1*
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182509@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66007&edit=1 ID: 66007 User updated by: alexyam at live dot com Reported by: alexyam at live dot com Summary: Cannot compile PHP shared modules in FreeBSD 10 due to detection of freebsd1* Status: Open Type: Bug Package: *Compile Issues Operating System: FreeBSD 10 PHP Version: 5.5.5 Block user comment: N Private report: N New Comment: Got an "Cannot create patch storage for Bug" error when uploading git diff, pasting it here instead: diff --git a/./php-5.5.5/aclocal.m4 b/./php-5.5.5-patched/aclocal.m4 index be8cbb5..9c326bc 100644 --- a/./php-5.5.5/aclocal.m4 +++ b/./php-5.5.5-patched/aclocal.m4 @@ -4546,7 +4546,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) +freebsd1.*) dynamic_linker=no ;; @@ -8857,7 +8857,7 @@ _LT_EOF _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; - freebsd1*) + freebsd1.*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; diff --git a/./php-5.5.5/build/libtool.m4 b/./php-5.5.5-patched/build/libtool.m4 index 56658cc..627864c 100644 --- a/./php-5.5.5/build/libtool.m4 +++ b/./php-5.5.5-patched/build/libtool.m4 @@ -1532,7 +1532,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) +freebsd1.*) dynamic_linker=no ;; @@ -5843,7 +5843,7 @@ _LT_EOF _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; - freebsd1*) + freebsd1.*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; diff --git a/./php-5.5.5/configure b/./php-5.5.5-patched/configure index 0ee9884..7572c3f 100755 --- a/./php-5.5.5/configure +++ b/./php-5.5.5-patched/configure @@ -108002,7 +108002,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_shlibpath_var=no ;; - freebsd1*) + freebsd1.*) ld_shlibs=no ;; @@ -108651,7 +108651,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) +freebsd1.*) dynamic_linker=no ;; @@ -112288,7 +112288,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) +freebsd1.*) dynamic_linker=no ;; Previous Comments: ------------------------------------------------------------------------ [2013-10-30 23:28:43] alexyam at live dot com Description: ------------ Tested PHP 5.5.5 on a FreeBSD 10 Beta 2 box. Turned out all php modules were compiled static only. Traced problem to the configure script: checking if libtool supports shared libraries... no checking whether to build shared libraries... no Solution: Edit 3 files to remove checks for freebsd1* (which was supposed to check FreeBSD version 1.*) ------------------------------------------ aclocal.m4 line 4549: ------------------------------------------ freebsd1*) dynamic_linker=no ;; ------------------------------------------ aclocal.m4 line 8860: ------------------------------------------ freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ------------------------------------------ configure line 108005: ------------------------------------------ freebsd1*) ld_shlibs=no ;; ------------------------------------------ configure line 108654: ------------------------------------------ freebsd1*) dynamic_linker=no ;; ------------------------------------------ configure line 112291: ------------------------------------------ freebsd1*) dynamic_linker=no ;; ------------------------------------------ /build/libtool.m4 line 1535: ------------------------------------------ freebsd1*) dynamic_linker=no ;; ------------------------------------------ /build/libtool.m4 line 5846: ------------------------------------------ freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ------------------------------------------ git diff patch included. Test script: --------------- ./configure Expected result: ---------------- checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes Actual result: -------------- checking if libtool supports shared libraries... no checking whether to build shared libraries... no ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66007&edit=1

« previous php.bugs (#182509) next »