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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC