Bug #75149 [Com]: redefinition of typedefs ttinfo and t1info

From: Date: Mon, 04 Sep 2017 16:32:52 +0000
Subject: Bug #75149 [Com]: redefinition of typedefs ttinfo and t1info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210938@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75149&edit=1

 ID:                 75149
 Comment by:         remi@php.net
 Reported by:        php-bugs-2017 at ryandesign dot com
 Summary:            redefinition of typedefs ttinfo and t1info
 Status:             Assigned
 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:

Already fixed upstream by https://github.com/derickr/timelib/pull/21

Just need to pull it in PHP


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#210938) next »