php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47992 compile error in mysqlnd
Submitted: 2009-04-16 17:34 UTC Modified: 2009-04-19 20:28 UTC
From: valderama at gmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.3CVS-2009-04-18 (snap) OS: Mac OS X Tiger
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: valderama at gmail dot com
New email:
PHP Version: OS:

 

 [2009-04-16 17:34 UTC] valderama at gmail dot com
Description:
------------
In PHP 5.3.0RC1 there is a compile bug:

/Users/valdo/php-5.3.0RC1/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 
'MYSQLND_LLU_SPEC' undeclared (first use in this function)

A temporary workaround was to define MYSQLND_LLU_SPEC and 
MYSQLND_LL_SPEC at hand in mysqlnd_portability.h, but this obviously 
needs to be corrected properly.


Reproduce code:
---------------
/configure' '--prefix=/usr/local' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-exif' '--enable-ftp' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql=mysqlnd' '--enable-mbstring' '--enable-mbregex' '--enable-sockets' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql-sock=/var/mysql/mysql.sock' '--enable-soap' '--with-gd' '--with-png-dir=/sw' '--with-jpeg-dir=/sw'

with darwin, 
gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Expected result:
----------------
should compile without failure

Actual result:
--------------
/Users/valdo/php-5.3.0RC1/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 
'MYSQLND_LLU_SPEC' undeclared (first use in this function)
/Users/valdo/php-5.3.0RC1/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 
(Each undeclared identifier is reported only once
/Users/valdo/php-5.3.0RC1/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: for 
each function it appears in.)
/Users/valdo/php-5.3.0RC1/ext/mysqlnd/mysqlnd_ps_codec.c:111: error: 
'MYSQLND_LL_SPEC' undeclared (first use in this function)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-16 19:32 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-04-18 22:33 UTC] valderama at gmail dot com
Same problem in last snapshot from 2009 04 18 at 18:30.
Constant error. I must define the constant at hand.
 [2009-04-19 19:46 UTC] kalle@php.net
AIX suffers from the same problem:
http://bugs.php.net/bug.php?id=47535
 [2009-04-19 20:28 UTC] kalle@php.net
Err, bug #47535

(this is where our bug system needs an edit feature =/)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 08:01:29 2024 UTC