Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55844 invoked from network); 4 Jul 2017 16:10:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2017 16:10:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 84.19.169.162 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 84.19.169.162 mail.experimentalworks.net Received: from [84.19.169.162] ([84.19.169.162:40528] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/E0-15131-90EBB595 for ; Tue, 04 Jul 2017 12:10:50 -0400 Received: from kuechenschabe.fritz.box (ppp-46-244-177-42.dynamic.mnet-online.de [46.244.177.42]) by mail.experimentalworks.net (Postfix) with ESMTPSA id 411085DF46; Tue, 4 Jul 2017 18:10:46 +0200 (CEST) Message-ID: <1499184639.19635.70.camel@php.net> To: Guillermo Cespedes , internals@lists.php.net Date: Tue, 04 Jul 2017 18:10:39 +0200 In-Reply-To: <6FD88AF7-5F5B-4684-B77B-21D17EA08B47@grupolfmedia.com> References: <6FD88AF7-5F5B-4684-B77B-21D17EA08B47@grupolfmedia.com> Organization: php.net Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] /usr/bin/ld: cannot find -lmysqlclient | error: wrong mysql library version or lib not found From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Mo, 2017-07-03 at 19:17 -0300, Guillermo Cespedes wrote: > Hi, > > I am compiling MariaDB 10.2.6 and PHP 7.1.6 > > I'm trying it on Debian 8.8 32x / x64 on DigitalOcean > > See the script: > https://gist.github.com/dertin/8de14e458dd4f0d3acb5f0deff120951 > > But I have problems compiling PHP with MariaDB > > # grep 'mysql’ config.log [...] > configure:52749: checking for mysql_set_server_option in > -lmysqlclient The cause for the behavior seems to be that the mysqli/config.m4 file checks your the information provided by the "config" program you passed, but for feature check uses the hard coded name of libmysql. Maybe this could be refactored to a simpler version check and discontinue support for versions before 5.0 ... if you send me the output from      mariadb_config --libs and     mariadb_config --version I can see if I can cook up a patch. That said: Preferred way is to build using mysqlnd instead of libmysql, so just use  --with-mysql and --with-pdo-mysql without path (or, in case you like it explicit, =mysqlnd for both) that's the client library optimized for PHP. See http://php.net/manual/en/mysqlinfo.library.choosing.php Also mind that MariaDB is a downstream fork of MySQL and both systems are diverting and likely will divert more over time. Experience can vary. johannes Note: I'm a member of Oracle's MySQL engineering team. Personal opinions. No promises from Oracle.