# mysqli build problem with 5.6.0 alpha2?

- Thread: https://externals.io/message/72634
- Original archive: https://news-web.php.net/php.internals/72634
- Started by Lior Kaplan on 2014-02-15T17:01:31+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #72634 — Lior Kaplan — 2014-02-15T17:01:31+00:00

URL: https://externals.io/message/72634#72634

Hi,

Just trying to make sure before opening a bug, have someone built mysqli in
5.6.0 alpha2?

Used this configure flag: --with-mysqli=shared,/usr/bin/mysql_config
mysql: 5.5.35

/«BUILDDIR»/php5-5.6.0~alpha2+dfsg/ext/mysqli/mysqli_api.c:683:12: error:
conflicting types for 'mysqli_commit_or_rollback_libmysql'
 static int mysqli_commit_or_rollback_libmysql(MYSQL * conn, zend_bool
commit, const unsigned int mode, const char * const name)

I saw this function was added recently, so everything might still be fresh
for a quick answer.

Kaplan

p.s.
Debian already have built alpha1, and we didn't change build commands for
alpha2.

---

## #72635 — johannes.schlueter@oracle.com — 2014-02-15T17:15:03+00:00

URL: https://externals.io/message/72634#72635 · In reply to: #72634

Hi,


> 
> 
> Used this configure flag: --with-mysqli=shared,/usr/bin/mysql_config
> mysql: 5.5.35

Why are you using libmysql not mysqlnd?

> /«BUILDDIR»/php5-5.6.0~alpha2+dfsg/ext/mysqli/mysqli_api.c:683:12:
> error:
> conflicting types for 'mysqli_commit_or_rollback_libmysql'
>  static int mysqli_commit_or_rollback_libmysql(MYSQL * conn, zend_bool
> commit, const unsigned int mode, const char * const name) 

I don't see anything obvious from quick glance at the code, can you
share the complete error message? For a conflict there must be multiple
lines involved ;)

johannes

-- 
ORACLE Deutschland B.V. & Co. KG, Riesstr. 25, D-80992 München
Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher

---

## #72636 — johannes.schlueter@oracle.com — 2014-02-15T17:19:08+00:00

URL: https://externals.io/message/72634#72636 · In reply to: #72635

> I don't see anything obvious from quick glance at the code, can you
> share the complete error message? For a conflict there must be multiple
> lines involved ;)

ah, just was about to close the window, I think I found the cause, will
test and fix later. Thanks for noticing it!
(I'm still interested in the mysqlnd vs libmysql question, though)

johannes


-- 
ORACLE Deutschland B.V. & Co. KG, Riesstr. 25, D-80992 München
Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher

---

## #72637 — Lior Kaplan — 2014-02-15T18:00:36+00:00

URL: https://externals.io/message/72634#72637 · In reply to: #72636

On Sat, Feb 15, 2014 at 7:19 PM, Johannes Schlüter <
johannes.schlueter@oracle.com> wrote:

> ah, just was about to close the window, I think I found the cause, will
> test and fix later. Thanks for noticing it!
>

I'll be happy to verify the fix when it's ready...

(I'm still interested in the mysqlnd vs libmysql question, though)
>

Debian provides packages for mysqlnd and libmysqlclient based extensions:
https://packages.debian.org/sid/php5-mysql
https://packages.debian.org/sid/php5-mysqlnd

Kaplan

---

## #72638 — johannes.schlueter@oracle.com — 2014-02-15T22:44:33+00:00

URL: https://externals.io/message/72634#72638 · In reply to: #72637

> On Sat, Feb 15, 2014 at 7:19 PM, Johannes Schlüter <
> johannes.schlueter@oracle.com> wrote:
> 
> > […]
> 
> I'll be happy to verify the fix when it's ready...

Fixed in
http://git.php.net/?p=php-src.git;a=commitdiff;h=1fd53fd2aeccd4503751f124ef92ed273181832b

> (I'm still interested in the mysqlnd vs libmysql question, though)
> > […]
> 
> Debian provides packages for mysqlnd and libmysqlclient based extensions:
> https://packages.debian.org/sid/php5-mysql
> https://packages.debian.org/sid/php5-mysqlnd

php5-mysqlnd should be named php5-mysql and old php5-mysql should be
php5-mysql-legacy-libmysql or such :-)

johannes

-- 
ORACLE Deutschland B.V. & Co. KG, Riesstr. 25, D-80992 München
Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher

---

## #72639 — Lior Kaplan — 2014-02-16T07:08:29+00:00

URL: https://externals.io/message/72634#72639 · In reply to: #72638

On Sun, Feb 16, 2014 at 12:44 AM, Johannes Schlüter <
johannes.schlueter@oracle.com> wrote:

> 
> > […]
>
> Fixed in
>
> http://git.php.net/?p=php-src.git;a=commitdiff;h=1fd53fd2aeccd4503751f124ef92ed273181832b
>

Builds fine, thanks.

Kaplan
