php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37103 libmbfl headers not installed
Submitted: 2006-04-17 12:05 UTC Modified: 2006-10-02 09:14 UTC
From: Fedora at FamilleCollet dot com Assigned: hirokawa (profile)
Status: Closed Package: mbstring related
PHP Version: 5.1.6 OS: Linux (Fedora)
Private report: No CVE-ID: None
 [2006-04-17 12:05 UTC] Fedora at FamilleCollet dot com
Description:
------------
"make install" doesn't install headers of libmbfl in 
/usr/include/php/ext/mbstring/libmbfl/

They are required to build somme PECL extensions.
For exemple mailparse, see bug #36136.


Reproduce code:
---------------
find /usr/include/php/ext/mbstring/ -name \*.h

Expected result:
----------------
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/eaw_table.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfilter.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfilter_pass.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_allocators.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_consts.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_convert.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_defs.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_encoding.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_ident.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_language.h
/usr/include/php/ext/mbstring/libmbfl/mbfl/mbfl_string.h
/usr/include/php/ext/mbstring/libmbfl/config.h


Actual result:
--------------
/usr/include/php/ext/mbstring/libmbfl/config.h

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-17 12:07 UTC] Fedora at FamilleCollet dot com
Here is the little patch i use witch solve the problem
Hope this help.

--- ext/mbstring/config.m4.orig 2006-04-17 12:41:13.000000000 +0200
+++ ext/mbstring/config.m4      2006-04-17 12:42:55.000000000 +0200
@@ -293,7 +293,7 @@
   dnl libmbfl is required
   PHP_MBSTRING_SETUP_LIBMBFL
   PHP_MBSTRING_EXTENSION
-  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl libmbfl/mbfl])
+  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/ libmbfl/mbfl/])
 fi

 # vim600: sts=2 sw=2 et
 [2006-04-17 22:14 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2006-09-18 15:55 UTC] Fedora at FamilleCollet dot com
Still present in php-5.1.6 (only half corrected)

Patch :
--- ext/mbstring/config.m4.orig	2006-07-24 18:07:44.000000000 +0200
+++ ext/mbstring/config.m4	2006-07-24 18:08:03.000000000 +0200
@@ -293,7 +293,7 @@
   dnl libmbfl is required
   PHP_MBSTRING_SETUP_LIBMBFL
   PHP_MBSTRING_EXTENSION
-  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/ libmbfl/mbfl])
+  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/ libmbfl/mbfl/])
 fi
 
 # vim600: sts=2 sw=2 et


Even present in php-5.2.0RC5-dev (missing only one file : mbfl_defs.h)

Patch :
--- ext/mbstring/config.m4.orig	2006-09-18 17:46:08.000000000 +0200
+++ ext/mbstring/config.m4	2006-09-18 17:47:08.000000000 +0200
@@ -302,7 +302,7 @@
   dnl libmbfl is required
   PHP_MBSTRING_SETUP_LIBMBFL
   PHP_MBSTRING_EXTENSION
-  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h* libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h ])
+  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/ libmbfl/mbfl/])
 fi
 
 # vim600: sts=2 sw=2 et
 [2006-09-19 16:26 UTC] Fedora at FamilleCollet dot com
For php-5.2.0

I don't understand permissions on ext/mbstring/libmbfl/mbfl/mbfl_defs.h (rwxr-xr-x) while other headers are rw-r--r--

I think the '*' in the config.m4 file is the problem.
So i change my previous patch to simply remove it and the packaging is complete with all the headers (and mailparse pecl extension build fine).

--- ext/mbstring/config.m4.orig 2006-09-18 17:46:08.000000000 +0200
+++ ext/mbstring/config.m4      2006-09-18 17:47:08.000000000 +0200
@@ -302,7 +302,7 @@
   dnl libmbfl is required
   PHP_MBSTRING_SETUP_LIBMBFL
   PHP_MBSTRING_EXTENSION
-  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h* libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h ])
+  PHP_INSTALL_HEADERS([ext/mbstring], [libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h  libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h ])
 fi

 # vim600: sts=2 sw=2 et
 [2006-09-26 22:23 UTC] tony2001@php.net
Assigned to the maintainer.
 [2006-10-01 08:35 UTC] hirokawa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-10-01 14:57 UTC] Fedora at FamilleCollet dot com
Seems ok for the headers with php5.2-200610011230.

What about php 5.1 branch ?
 [2006-10-02 09:14 UTC] tony2001@php.net
5.2 is the next 5.x release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC