gcc -Imain/ -I/usr/src/php4/main/ -DPHP_ATOM_INC -I/usr/src/php4/include -I/usr/src/php4/main -I/usr/src/php4 -I/usr/src/php4/Zend -I/usr/src/php4/ext/xml/expat -I/usr/src/php4/TSRM -DTHREAD=1 -g -O2 -pthread -Wall -DZTS -c /usr/src/php4/main/streams.c -o main/streams.o && echo > main/streams.lo
/usr/src/php4/main/streams.c:935: warning: initialization from incompatible pointer type
for me the function definition is:
typedef int __io_seek_fn (void *__cookie, _IO_off64_t *__pos, int __w);
so it seems off_T differes from _IO_off64_t *
gcc -Imain/ -I/usr/src/php4/main/ -DPHP_ATOM_INC -I/usr/src/php4/include -I/usr/src/php4/main -I/usr/src/php4 -I/usr/src/php4/Zend -I/usr/src/php4/ext/xml/expat -I/usr/src/php4/TSRM -DTHREAD=1 -g -O2 -pthread -Wall -DZTS -c /usr/src/php4/main/user_streams.c -o main/user_streams.o && echo > main/user_streams.lo
/usr/src/php4/main/user_streams.c:35: warning: initialization from incompatible pointer type
for user_streams i suggest applied patch (changed parameter is pointer and unused so it should work after patch as well as before)
marcus
cvs -z3 -q diff main\user_streams.c (in directory S:\php4\)
Index: main/user_streams.c
===================================================================
RCS file: /repository/php4/main/user_streams.c,v
retrieving revision 1.11
diff -u -r1.11 user_streams.c
--- main/user_streams.c
+++ main/user_streams.c
@@ -29,7 +29,7 @@
};
-static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_wrapper_options *exoptions STREAMS_DC TSRMLS_DC);
+static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
static php_stream_wrapper_ops user_stream_wops = {
@@ -115,7 +115,7 @@
* */
-static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_wrapper_options *exoptions STREAMS_DC TSRMLS_DC)
+static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
{
"Wir sind allzumal Tiere unter Tieren, Kinder der Materie wie sie,
nur wehrloser. Doch da wir im Unterschied zu den Tieren wissen,
dass wir sterben muessen, wollen wir uns auf jenen Augenblick vorbereiten,
indem wir das Leben geniessen, das uns durch Zufall und vom Zufall gegeben ist."
Umberto Eco, Die Insel des vorigen Tages
--------------->>> http://www.marcus-boerger.de <<<-------------------
---------->>> Tel. 0241 / 874 09-7 ### 0179 / 29 14 980 <<<----------