php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75149 redefinition of typedefs ttinfo and t1info
Submitted: 2017-09-02 04:28 UTC Modified: 2017-09-05 04:37 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: php-bugs-2017 at ryandesign dot com Assigned: remi (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.2.0RC1 OS: Mac OS X 10.6.8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bugs-2017 at ryandesign dot com
New email:
PHP Version: OS:

 

 [2017-09-02 04:28 UTC] 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


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-04 14:29 UTC] 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-04 16:32 UTC] remi@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: remi
 [2017-09-04 16:32 UTC] remi@php.net
Already fixed upstream by https://github.com/derickr/timelib/pull/21

Just need to pull it in PHP
 [2017-09-04 16:38 UTC] remi@php.net
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
 [2017-09-04 16:38 UTC] remi@php.net
-Status: Assigned +Status: Closed
 [2017-09-04 17:58 UTC] dan at cpanel dot net
Thanks! Will this be in a new RC1 or RC2?
 [2017-09-05 04:37 UTC] remi@php.net
RC1 already released, so will be in RC2
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC