Bug #69729 [NEW]: unresolved externals when compiling with VC 2015
| From: | phpdev at ehrhardt dot nl | Date: | Fri, 29 May 2015 09:20:06 +0000 |
| Subject: | Bug #69729 [NEW]: unresolved externals when compiling with VC 2015 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-192997@lists.php.net to get a copy of this message | ||
From: phpdev at ehrhardt dot nl
Operating system: Windows with VC14
PHP version: master-Git-2015-05-29 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:unresolved externals when compiling with VC 2015
Description:
------------
I am getting lots of unresolved externals when I try to compile PHP7
with VC14 (VC 2015).
I started with a clean sheet and VC 2015 Pro RC. I used the deps from
http://windows.php.net/downloads/php-sdk/deps-5.6-vc11-x86.7z
as
starting point. With those deps a lot of extensions did not compile.
I recompiled mcrypt, iconv, xml2, ssleay32, libeay32, ssh2, curl, xpm,
zlib, jpeg, png, vpx, libbz2, netsnmp (all x86 vc14) to get rid of many
problems. But I was really surprised recompilation if the libs was
needed. Some still remain, like php_gmp.dll, which fails on the
mpir_a.lib in the VC11 deps for 5.6.
Error messages below.
Test script:
---------------
Recreating build dirs
Recreating build dirs
Recreating build dirs
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 C:\php-sdk\php70dev\Release_TS\php7ts.lib and object
C:\php-sdk\php70dev\Release_TS\php7ts.exp
Generating code
Finished generating code
Creating library C:\php-sdk\php70dev\Release_TS\php_gmp.lib and
object C:\php-sdk\php70dev\Release_TS\php_gmp.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
mpir_a.lib(memory.obj) : error LNK2019: unresolved external symbol
___iob_func referenced in function ___gmp_default_allocate
mpir_a.lib(assert.obj) : error LNK2001: unresolved external symbol
___iob_func
C:\php-sdk\php70dev\Release_TS\php_gmp.dll : fatal error LNK1120: 1
unresolved externals
Expected result:
----------------
I expected that VC14 would build with the deps that work fine for VC11
and VC12
Actual result:
--------------
Broken compilation for lots of extensions (and even the core before I
recompiled some libs).
--
Edit bug report at https://bugs.php.net/bug.php?id=69729&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69729&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69729&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69729&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69729&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69729&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69729&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69729&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69729&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69729&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69729&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69729&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69729&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69729&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69729&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69729&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69729&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69729&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69729&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69729&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69729&r=mysqlcfg