php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77171 PHP 5.6 Can't Compile Source - Failure [_tsrm_]
Submitted: 2018-11-18 01:06 UTC Modified: 2018-11-18 03:03 UTC
From: lucaspaixaoribeiro1999 at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.6.38 OS: Windows Server 2008 R2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lucaspaixaoribeiro1999 at gmail dot com
New email:
PHP Version: OS:

 

 [2018-11-18 01:06 UTC] lucaspaixaoribeiro1999 at gmail dot com
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>

Patches

Fix (last revision 2018-11-18 01:06 UTC by )

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-18 03:03 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2018-11-18 03:03 UTC] requinix@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP 5.6 is no longer supported. Try the mailing lists for help compiling it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC