php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68150 phar-native-ssl error
Submitted: 2014-10-04 00:04 UTC Modified: 2014-10-05 15:52 UTC
From: jfha73 at gmail dot com Assigned: ab (profile)
Status: Closed Package: Compile Failure
PHP Version: master-Git-2014-10-03 (Git) OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jfha73 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-10-04 00:04 UTC] jfha73 at gmail dot com
Description:
------------
Hey guys,

I'm trying to compile master for the last couple of days with the latest sources available but I'm getting this:

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_objec
t imported
php_xmlreader.obj : warning LNK4049: locally defined symbol dom_node_class_entry
 imported
x64\Release_TS\php7ts.dll : fatal error LNK1169: one or more multiply defined sy
mbols found
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\amd64\cl.exe"' : return code '0x2'
Stop.

Expected result:
----------------
Compile

Actual result:
--------------
Error

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-04 10:22 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2014-10-04 10:22 UTC] ab@php.net
Cannot repro here. Can you retry with a clean rebuild? Otherwise please post your configure line.

Thanks.
 [2014-10-04 13:44 UTC] jfha73 at gmail dot com
-Status: Feedback +Status: Open
 [2014-10-04 13:44 UTC] jfha73 at gmail dot com
That's exactly what I'm doing, this is on a new php-sdk installation, everything is clean.

This is my configure line:

configure --enable-apache2-4handler --with-bz2=shared --with-curl=shared --with-dba=shared --with-enchant=shared --enable-fileinfo=shared --with-gettext=shared --with-gmp=shared --with-mhash=shared --with-imap=shared --with-interbase=shared --enable-intl=shared --with-ldap=shared --enable-mbstring=shared --enable-mbregex=shared --with-mcrypt=shared --with-oci8-12c=shared,c:\instantclient_12_1_x64\sdk --with-openssl=shared --with-pgsql=shared --with-pspell=shared --enable-shmop=shared --with-snmp=shared --enable-sockets=shared --with-sqlite3=shared --with-sybase-ct=shared --with-tidy=shared --enable-exif=shared --with-mysql=shared --with-mysqli=shared --enable-pdo=shared --with-pdo-dblib=shared --with-pdo-firebird=shared --with-pdo-mysql=shared --with-pdo-oci=shared --with-pdo-odbc=shared --with-pdo-pgsql=shared --with-pdo-sqlite=shared --enable-phar-native-ssl=shared --enable-soap=shared --with-xmlrpc=shared --with-xsl=shared

The weird thing is that this appears after passing phar and starting xmlreader
 [2014-10-04 14:31 UTC] jfha73 at gmail dot com
-Summary: phar error +Summary: phar-native-ssl error
 [2014-10-04 14:31 UTC] jfha73 at gmail dot com
What do you know, I took off --enable-phar-native-ssl=shared and it did pass, it did not compile because of another problem, but that's another bug, so the problem is coming from phar-native-ssl, so I'm changing the summary.
 [2014-10-05 12:17 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2014-10-05 12:17 UTC] ab@php.net
Fixed in d58b70622a7e99ceee074e420d9271c2d8de116c, thanks for reporting. Though please note that ext/phar isn't being built shared (and probably won't be) in the standard Windows builds. Anyway that's an unnecessary code duplication which can go away now.
 [2014-10-05 15:52 UTC] jfha73 at gmail dot com
Thanks, it works now and I took off =shared so it compiles static.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 14:00:02 2026 UTC