Bug #75149 [Asn->Csd]: redefinition of typedefs ttinfo and t1info
Edit report at https://bugs.php.net/bug.php?id=75149&edit=1
ID: 75149
Updated by: remi@php.net
Reported by: php-bugs-2017 at ryandesign dot com
Summary: redefinition of typedefs ttinfo and t1info
-Status: Assigned
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Mac OS X 10.6.8
PHP Version: 7.2.0RC1
Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a1bf36778a9bd3081e47da8cb9e4f0461aa46d80
Log: Fixed Bug #75149 redefinition of typedefs ttinfo and t1info
Previous Comments:
------------------------------------------------------------------------
[2017-09-04 16:32:51] remi@php.net
Already fixed upstream by https://github.com/derickr/timelib/pull/21
Just need to pull it in PHP
------------------------------------------------------------------------
[2017-09-04 14:29:31] dan at cpanel dot net
I see this also in CentoOS 6 (specifically 6-6.el6.centos.12.2 w/ libgcc-4.4.7-11.el6):
```
[ 457s] In file included from /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/php_date.c:32:
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/lib/timelib_private.h:126: error:
redefinition of typedef 'ttinfo'
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/lib/timelib.h:134: note: previous
declaration of 'ttinfo' was here
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/lib/timelib_private.h:132: error:
redefinition of typedef 'tlinfo'
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/lib/timelib.h:135: note: previous
declaration of 'tlinfo' was here
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/php_date.c: In function
'zif_timezone_identifiers_list':
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/php_date.c:4726: warning: passing
argument 1 of 'timelib_timezone_identifiers_list' discards qualifiers from pointer target
type
[ 457s] /home/abuild/rpmbuild/BUILD/php-7.2.0RC1/ext/date/lib/timelib.h:663: note: expected
'struct timelib_tzdb *' but argument is of type 'const struct timelib_tzdb *'
[ 457s] make: *** [ext/date/php_date.lo] Error 1
```
CentOS 7 compiled OK (specifically 7-0.1406.el7.centos.2.3 w/ libgcc-4.8.2-16.el7)
Maybe this manual merge conflict of 7.0 to 7.2 RC1 resolved something incorrectly? https://github.com/php/php-src/commit/584db6f38fcac3e5e1ca4c770d3aacfff09ee371
------------------------------------------------------------------------
[2017-09-02 04:28:05] php-bugs-2017 at ryandesign dot com
Description:
------------
PHP 7.2.0RC1 fails to build on Mac OS X 10.6.8 with its default compiler, the Apple-modified version
of gcc 4.2.1:
In file included from ./ext/date/lib/parse_date.c:29:
./ext/date/lib/timelib_private.h:126: error: redefinition of typedef âttinfoâ
./ext/date/lib/timelib.h:134: error: previous declaration of âttinfoâ was here
./ext/date/lib/timelib_private.h:132: error: redefinition of typedef âtlinfoâ
./ext/date/lib/timelib.h:135: error: previous declaration of âtlinfoâ was here
Here is a full build log from the MacPorts automated build system:
https://build.macports.org/builders/ports-10.6_i386_legacy-builder/builds/26911/steps/install-dependencies/logs/stdio
This is a regression from PHP 7.2.0beta3 which built fine on that system.
I suspect this commit, "Upgrade timelib to 2017.05beta7":
https://github.com/php/php-src/commit/bdd56f31078bf1f34341943603cf6aaa72e0db5c
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75149&edit=1
Thread (7 messages)