Bug #77171 [NEW]: PHP 5.6 Can't Compile Source - Failure [_tsrm_]
| From: | lucaspaixaoribeiro1999 at gmail dot com | Date: | Sun, 18 Nov 2018 01:06:26 +0000 |
| Subject: | Bug #77171 [NEW]: PHP 5.6 Can't Compile Source - Failure [_tsrm_] | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218008@lists.php.net to get a copy of this message | ||
From: lucaspaixaoribeiro1999 at gmail dot com
Operating system: Windows Server 2008 R2
PHP version: 5.6.38
Package: Compile Failure
Bug Type: Bug
Bug description:PHP 5.6 Can't Compile Source - Failure [_tsrm_]
Description:
------------
I would like to request fix for this error:
phar.obj : error LNK2005: _tsrm_strtok_r already defined in
tsrm_strtok_r.obj
phar.obj : error LNK2005: _tsrm_strtok_r already defined in
tsrm_strtok_r.obj
Release_TS\php5ts.dll : fatal error LNK1169: one or more multiply
defined symbol
s found
Test script:
---------------
My Compile Command:
configure --enable-zlib=shared --enable-fileinfo=shared
--enable-intl=shared --enable-mbstring=shared --enable-mbregex=shared
--enable-shmop=shared --enable-sockets=shared --enable-exif=shared
--enable-pdo=shared --enable-phar-native-ssl=shared --enable-soap=shared
--with-analyzer=shared --with-aolserver=shared --with-bz2=shared
--with-curl=shared --with-dba=shared --with-enchant=shared
--with-gettext=shared --with-gmp=shared --with-mhash=shared
--with-imap=shared --with-interbase=shared --with-ldap=shared
--with-libmbfl=shared --with-mcrypt=shared --with-mssql=shared
--with-dblib=shared --with-odbcver=shared --with-openssl=shared
--with-pgsql=shared --with-pspell=shared --with-snmp=shared
--with-sqlite3=shared --with-sybase-ct=shared --with-tidy=shared
--with-mysql=shared --with-mysqli=shared --with-pdo-dblib=shared
--with-pdo-mssql=shared --with-pdo-firebird=shared
--with-pdo-mysql=shared --with-pdo-odbc=shared --with-pdo-pgsql=shared
--with-pdo-sqlite=shared --with-pdo-sqlite-external=shared
--with-xmlrpc=shared --with-xsl=shared
Expected result:
----------------
Without error in the compile command and generate correctly the build
Actual result:
--------------
Error:
Microsoft (R) Windows (R) Resource Compiler Version 6.2.9200.16384
Copyright (C) Microsoft Corporation. All rights reserved.
1 file(s) copied.
phar.obj : error LNK2005: _tsrm_strtok_r already defined in
tsrm_strtok_r.obj
libiconv_a.lib(iconv1.obj) : MSIL .netmodule or module compiled with /GL
found;
restarting link with /LTCG; add /LTCG to the link command line to
improve linker
performance
Creating library Release_TS\php5ts.lib and object
Release_TS\php5ts.exp
Generating code
Finished generating code
phar.obj : error LNK2005: _tsrm_strtok_r already defined in
tsrm_strtok_r.obj
php_xmlreader.obj : warning LNK4049: locally defined symbol
_php_dom_create_obje
ct imported
php_xmlreader.obj : warning LNK4049: locally defined symbol
_dom_node_class_entr
y imported
Release_TS\php5ts.dll : fatal error LNK1169: one or more multiply
defined symbol
s found
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 11.0
\VC\BIN\cl.exe"' : return code '0x2'
Stop.
c:\Coded\PHP-SDK\phpdev\vc11\x64\php-src-php-5.6.38>
--
Edit bug report at https://bugs.php.net/bug.php?id=77171&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77171&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77171&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77171&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77171&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77171&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77171&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77171&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77171&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77171&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77171&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77171&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77171&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77171&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77171&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77171&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77171&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77171&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77171&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77171&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77171&r=mysqlcfg