php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58134 pecl install timezonedb fails on make
Submitted: 2008-03-31 18:16 UTC Modified: 2008-04-01 18:28 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: nsharp at valex dot com dot au Assigned:
Status: Open Package: timezonedb (PECL)
PHP Version: 5.1.6 OS: Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-03-31 18:16 UTC] nsharp at valex dot com dot au
Description:
------------
pecl install timezonedb in this env gives;

running: make
/bin/bash /var/tmp/pear-build-root/timezonedb-2008.2/libtool --mode=compile gcc  -I. -I/tmp/pear/download/timezonedb-2008.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/timezonedb-2008.2/include -I/var/tmp/pear-build-root/timezonedb-2008.2/main -I/tmp/pear/download/timezonedb-2008.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php/ext/date/lib  -Wall -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/download/timezonedb-2008.2/timezonedb.c -o timezonedb.lo
mkdir .libs
 gcc -I. -I/tmp/pear/download/timezonedb-2008.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/timezonedb-2008.2/include -I/var/tmp/pear-build-root/timezonedb-2008.2/main -I/tmp/pear/download/timezonedb-2008.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php/ext/date/lib -Wall -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/download/timezonedb-2008.2/timezonedb.c  -fPIC -DPIC -o .libs/timezonedb.o
In file included from /usr/include/php5/ext/date/lib/timelib.h:24,
                 from /usr/include/php5/ext/date/php_date.h:24,
                 from /tmp/pear/download/timezonedb-2008.2/timezonedb.c:30:
/usr/include/php5/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory
In file included from /tmp/pear/download/timezonedb-2008.2/timezonedb.c:36:
/tmp/pear/download/timezonedb-2008.2/timezonedb.h:17439: warning: initialization discards qualifiers from pointer target type
/tmp/pear/download/timezonedb-2008.2/timezonedb.h:17439: warning: initialization discards qualifiers from pointer target type
/tmp/pear/download/timezonedb-2008.2/timezonedb.c:59: warning: initialization discards qualifiers from pointer target type
/tmp/pear/download/timezonedb-2008.2/timezonedb.c: In function 'zm_startup_timezonedb':
/tmp/pear/download/timezonedb-2008.2/timezonedb.c:83: warning: passing argument 1 of 'php_date_set_tzdb' discards qualifiers from pointer target type
/tmp/pear/download/timezonedb-2008.2/timezonedb.c: In function 'zm_info_timezonedb':
/tmp/pear/download/timezonedb-2008.2/timezonedb.c:100: warning: initialization discards qualifiers from pointer target type
make: *** [timezonedb.lo] Error 1
ERROR: `make' failed



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-01 02:18 UTC] derick@php.net
Do you have the timelib_config.h file?
 [2008-04-01 18:28 UTC] nsharp at valex dot com dot au
It seem to be there and in the right place, which made me think it was a bug. 

ls -la /usr/include/php5/ext/date/lib/
total 28
drwxr-xr-x 2 root root 4096 2007-02-08 11:54 .
drwxr-xr-x 3 root root 4096 2007-02-08 11:54 ..
-rw-r--r-- 1 root root   80 2006-11-02 23:19 timelib_config.h
-rw-r--r-- 1 root root 4598 2006-11-02 23:19 timelib.h
-rw-r--r-- 1 root root 5538 2006-11-02 23:19 timelib_structs.h
 [2008-07-29 12:02 UTC] fastonion at gmail dot com
Fixed!

do this:
ln -s /usr/include/php5 /usr/include/php

Regard,

Luis Morales
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC