|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-01-05 05:32 UTC] sidrit at hotmail dot com
Description: ------------ installation with pear through package.xml fail in the 'make process' Reproduce code: --------------- [root@korn SQLite-1.0.3]# pwd /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3 [root@korn SQLite-1.0.3]# pear install package.xml ........... /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a function) /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a function) /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible pointer type /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible pointer type make: *** [sqlite.lo] Error 1 ERROR: `make' failed [root@korn SQLite-1.0.3]# Actual result: -------------- /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_NONE' undeclared here (not in a function) /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:56: error: 'BYREF_FORCE' undeclared here (not in a function) /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:125: warning: initialization from incompatible pointer type /home/html/www/prado/SQLite-1.0.3/SQLite-1.0.3/sqlite.c:126: warning: initialization from incompatible pointer type make: *** [sqlite.lo] Error 1 ERROR: `make' failed PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
$ diff -u sqlite.c sqlitefixed.c --- sqlite.c 2009-02-25 13:51:46.000000000 -0500 +++ sqlitefixed.c 2009-02-25 13:51:51.000000000 -0500 @@ -53,8 +53,6 @@ extern int sqlite_encode_binary(const unsigned char *in, int n, unsigned char *out); extern int sqlite_decode_binary(const unsigned char *in, unsigned char *out); -static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; - static int le_sqlite_db, le_sqlite_result, le_sqlite_pdb; static inline void php_sqlite_strtoupper(char *s) @@ -122,8 +120,8 @@ enum { PHPSQLITE_ASSOC = 1, PHPSQLITE_NUM = 2, PHPSQLITE_BOTH = PHPSQLITE_ASSOC|PHPSQLITE_NUM }; function_entry sqlite_functions[] = { - PHP_FE(sqlite_open, arg3_force_ref) - PHP_FE(sqlite_popen, arg3_force_ref) + PHP_FE(sqlite_open, third_arg_force_ref) + PHP_FE(sqlite_popen, third_arg_force_ref) PHP_FE(sqlite_close, NULL) PHP_FE(sqlite_query, NULL) PHP_FE(sqlite_exec, NULL)