php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68759 Cannot build PHP with mysqlnd
Submitted: 2015-01-06 13:28 UTC Modified: 2015-01-09 07:17 UTC
From: crodriguespt96 at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.6.4 OS: Windows 7 Ultimate
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: crodriguespt96 at gmail dot com
New email:
PHP Version: OS:

 

 [2015-01-06 13:28 UTC] crodriguespt96 at gmail dot com
Description:
------------
When compiling php 5.6.4 from source on Windows(seven ultimate SP1), I'm getting several "unresolved external symbol" errors related to _mysql* functions.

Here's the compile params I used:
--disable-all --disable-cli --disable-cgi --enable-embed=shared --disable-zts --with-sqlite3 --enable-pdo --with-pdo-mysql --enable-sockets --with-pdo-sqlite --with-mysqli --with-mysql --enable-mbstring

--- Image
https://i.imgur.com/KcPmADR.png

-- System information(Just to let you know)
Windows 7 Ultimate SP1 x64(using x86 source package)
Visual Studio 2013 -> compiler

-- Objective of the PHP build:
Integrate it into an shared library(embed).


Could you take a look into the issue, and tell me what am I doing wrong?
Thanks.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-09 07:17 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2015-01-09 07:17 UTC] krakjoe@php.net
You must use --with-mysql=mysqlnd, or else the configure switch will attempt to find the shared library for the mysql client on the system, in short, mysqlnd is not the default.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 10:00:01 2026 UTC