php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22684 Unhappy with strtoll declaration in bundled libmysql
Submitted: 2003-03-13 15:24 UTC Modified: 2003-06-30 19:30 UTC
From: michael dot mauch at gmx dot de Assigned:
Status: Closed Package: MySQL related
PHP Version: 5.0.0-dev & 4.3.2RC1 OS: Tru64 4.0g
Private report: No CVE-ID: None
 [2003-03-13 15:24 UTC] michael dot mauch at gmx dot de
cc: Error: /house/elmicha/local/src/php-4.3.2RC1/ext/mysql/libmysql/strto.c, line 68: In this declaration, the type of "strtoll" is not compatible with the type of a previous declaration of "strtoll" at line number 44 in file /usr/include.dtk/stdlib.h. (notcompat)
function (const char *nptr,char **endptr,int base)
^

The declaration of strtoll() in stdlib.h is:

    extern long long int strtoll(
                const char * /*restrict*/ __nptr,
                char ** /*restrict*/ __endptr,
                int __base);

The declaration in strto.c is expanded to:

longlong strtoll  (const char *nptr,char **endptr,int base)

% cc -V:
Compaq C V6.5-207 (dtk) on Digital UNIX V4.0G (Rev. 1530)
Compiler Driver V6.5-207 (dtk) (dtk) cc Driver

http://bugs.php.net/bug.php?id=18815 looks similar, but it's closed (and on Linux).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-13 17:20 UTC] sniper@php.net
Do you get the same error when you compile mysql?

 [2003-03-14 10:31 UTC] michael dot mauch at gmx dot de
No, MySQL 3.23.55 shows the same error => bogus (but the Status box only has "Open" or "Close", so I have to leave it open).
 [2003-03-14 11:19 UTC] sniper@php.net
You should report this to the mysql. (if you already haven't :)

Even as it clearly is Mysql problem, it's better leave
this open for now as a reminder to upgrade the bundled
library as soon as it's fixed.

 [2003-05-30 14:42 UTC] georg@php.net
Could you please report this bug (with latest stable 3.23.x client library) to bugs.mysql.com ?
 [2003-05-30 15:36 UTC] michael dot mauch at gmx dot de
I already reported it to the MySQL people back in March (I thought I had noted it here, but obviously not). I got a private answer saying that the fix is not so easy as I thought, because it would break the build on other machines. I'll check and see if there are any news.
 [2003-06-30 19:30 UTC] sterling@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

there is no bundle.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 23:01:32 2024 UTC