Jump to content

Recommended Posts

Hello,

 

I am trying to compile PHP on my own and have gotten all the way down to the nmake step and am getting the errors below. I am enabling the mssql extension so that it outputs the DLL so that's where this hangup is occuring. 

php_mssql.obj : error LNK2019: unresolved external symbol _compiler_globals referenced in function _php_mssql_message_handler
php_mssql.obj : error LNK2019: unresolved external symbol _executor_globals referenced in function __close_mssql_link
php_mssql.obj : error LNK2019: unresolved external symbol _le_index_ptr referenced in function _php_mssql_do_connect
php_mssql.obj : error LNK2019: unresolved external symbol _zval_used_for_init referenced in function __mssql_fetch_batch
php_mssql.obj : error LNK2019: unresolved external symbol _zend_standard_class_def referenced in function _zif_mssql_fetch_object
Release\php_mssql.dll : fatal error LNK1120: 5 unresolved externals NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.
 

 

How do you resolve errors like those?

Link to comment
https://forums.phpfreaks.com/topic/275703-compiling-php-for-windows-linking-error/
Share on other sites

I've never tried compiling PHP on windows before, so I can't be of too much help but one thing I do know is that the php_mssql extension is old and no longer maintained. If your trying to compile anything newer than PHP 5.2.x it may just be that the extension is no longer compatible. It was officially removed in PHP 5.3. You should be using the SQLSRV extension instead for modern PHP versions.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.