Bad includes oracle functions
| From: | Armand DELCROS | Date: | Tue, 08 Jun 1999 15:30:11 +0000 |
| Subject: | Bad includes oracle functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6715@lists.php.net to get a copy of this message | ||
Hello,
I'm under digital 4.0d kit3, i have compiled php3.0.9
with apache 1.3.6.
The problem is in the "#include" of files oci8.c
and oracle.c. The "#include" are not in column 1.
So it is necessary to delete all the spaces before
the "#include" declarations.
If you don't do this the compilation failed:
./configure --with-apache=../apache_1.3.4 --with-oracle=/u01/app/oracle/product/8050
--enable-track-vars --with-gd=../gd1.3
make
....
....
cc: Warning: functions/oracle.c, line 52: # not in column 1 is ignored, skipping to end of line.
#include "internal_functions.h"
--^
cc: Warning: functions/oracle.c, line 53: # not in column 1 is ignored, skipping to end of line.
#include "php3_list.h"
--^
cc: Warning: functions/oracle.c, line 54: # not in column 1 is ignored, skipping to end of line.
#include "head.h"
--^
cc: Error: functions/oracle.h, line 26: Invalid declaration.
extern php3_module_entry oracle_module_entry;
-------------------------^
cc: Error: functions/oracle.c, line 144: Invalid declaration.
php3_module_entry oracle_module_entry = {
------------------^
cc: Error: functions/oracle.c, line 431: Invalid statement.
char *hashed_details;
--------^
cc: Error: functions/oracle.c, line 432: Invalid statement.
int hashed_len, len, id;
--------^
cc: Error: functions/oracle.c, line 484: In this declaration, "list_entry" must specify a
type.
list_entry new_index_ptr;
----------------^
cc: Warning: functions/oracle.h, line 136: In the declaration of "php3_minit_oracle", a
function declarator has an identifier list but is not part of a functio
n definition. Extraneous parameter names are ignored.
extern int php3_minit_oracle(INIT_FUNC_ARGS);
-----------^
cc: Warning: functions/oracle.h, line 137: In the declaration of "php3_mshutdown_oracle",
a function declarator has an identifier list but is not part of a fun
ction definition. Extraneous parameter names are ignored.
extern int php3_mshutdown_oracle(SHUTDOWN_FUNC_ARGS);
-----------^
cc: Warning: functions/oracle.h, line 138: In the declaration of "php3_rshutdown_oracle",
a function declarator has an identifier list but is not part of a fun
ction definition. Extraneous parameter names are ignored.
extern int php3_rshutdown_oracle(SHUTDOWN_FUNC_ARGS);
-----------^
cc: Warning: functions/oracle.h, line 140: In the declaration of "php3_rinit_oracle", a
function declarator has an identifier list but is not part of a functio
n definition. Extraneous parameter names are ignored.
extern int php3_rinit_oracle(INIT_FUNC_ARGS);
-----------^
cc: Error: functions/oracle.c, line 325: In this statement, "module_number" is not
declared.
REGISTER_LONG_CONSTANT("ORA_BIND_INOUT", 0, CONST_CS | CONST_PERSISTENT);
--------^
cc: Error: functions/oracle.c, line 430: In this statement, "list_entry" is not declared.
list_entry *index_ptr;
--------^
cc: Error: functions/oracle.c, line 430: In this statement, "index_ptr" is not declared.
list_entry *index_ptr;
--------------------^
cc: Error: functions/oracle.c, line 436: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 467: In this statement, "len" is not declared.
len = strlen(user) + strlen(pwd) + 9;
--------^
cc: Error: functions/oracle.c, line 468: In this statement, "hashed_details" is not
declared.
hashed_details = emalloc(len);
--------^
cc: Error: functions/oracle.c, line 475: In this statement, "hashed_len" is not declared.
hashed_len = _php3_sprintf(hashed_details, "ora_%s_%s", user, pwd);
--------^
cc: Error: functions/oracle.c, line 522: In this statement, "new_index_ptr" is not
declared.
new_index_ptr.ptr = (void *) return_value->value.lval;
------------------------^
cc: Error: functions/oracle.c, line 558: In this statement, "id" is not declared.
id = (int) index_ptr->ptr;
----------------^
cc: Error: functions/oracle.c, line 607: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 632: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 667: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 685: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 710: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 735: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 760: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 790: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 847: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 944: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 988: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 1008: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 1031: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 1112: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
cc: Error: functions/oracle.c, line 1151: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
--------------------------------^
cc: Error: functions/oracle.c, line 1157: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
--------------------------------^
cc: Error: functions/oracle.c, line 1164: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
------------------------^
cc: Warning: functions/oracle.c, line 1291: In this statement, the referenced type of the pointer
value "(cursor->columns[i].buf)" is "unsigned char", which is
not compatible with "const signed char".
tmp->value.str.val =
estrndup(cursor->columns[i].buf,tmp->value.str.len);
---------------------------------------------^
cc: Warning: functions/oracle.c, line 1298: In this statement, the referenced type of the pointer
value "cursor->columns[i].cbuf" is "unsigned char", which is
not compatible with "signed char".
_php3_hash_update(arr->value.ht, cursor->columns[i].cbuf,
cursor->columns[i].cbufl+1, (void *) tmp, sizeof(pval), NULL);
------------------------^
cc: Error: functions/oracle.c, line 1327: In this statement, "WRONG_PARAM_COUNT" is not
declared.
WRONG_PARAM_COUNT;
----------------^
And so compilation failed.
So don't forget to erase the spaces before the #include declarations.
Best regards,
Armand Delcros
WebMaster Bouygues Telecom
HotBot - Search smarter.
http://www.hotbot.com