I tried to compile mod_webkit2 with apache-2.0.52 and got an error (mod_webkit.c:244: error: too few arguments to function `apr_socket_create'). I use gcc-3.3.5 (although I think, it doesn't meter in this case). Could you help me with that? Does the Apache API get change since 2.0.52 (I used to use mod_webkit2 with any problems some times ago till I upgrade apache).

Cheers,
Radek Kintzi

[EMAIL PROTECTED] mod_webkit2]$ make
/usr/sbin/apxs -c mod_webkit.c
/usr/share/apr/build-1/libtool --silent --mode=compile i686-pld-linux-gcc -prefer-pic -O2 -march=i686 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/apache -I/usr/include/apr -I/usr/include/apr-util -I/usr/include -c -o mod_webkit.lo mod_webkit.c && touch mod_webkit.slo
mod_webkit.c: In function `wksock_open':
mod_webkit.c:244: warning: passing arg 4 of `apr_socket_create' makes integer from pointer without a cast
mod_webkit.c:244: error: too few arguments to function `apr_socket_create'
mod_webkit.c: In function `discard_script_output':
mod_webkit.c:290: error: parse error before '{' token
mod_webkit.c: At top level:
mod_webkit.c:294: error: `e' undeclared here (not in a function)
mod_webkit.c:294: error: `e' undeclared here (not in a function)
mod_webkit.c:294: error: `buf' undeclared here (not in a function)
mod_webkit.c:294: error: `len' undeclared here (not in a function)
mod_webkit.c:294: warning: data definition has no type or storage class
mod_webkit.c:295: error: parse error before "if"
mod_webkit.c: In function `transact_with_app_server':
mod_webkit.c:369: error: parse error before '{' token
mod_webkit.c:389: error: `data' undeclared (first use in this function)
mod_webkit.c:389: error: (Each undeclared identifier is reported only once
mod_webkit.c:389: error: for each function it appears in.)
mod_webkit.c:403: error: parse error before "apr_brigade_cleanup"
mod_webkit.c:375: error: break statement not within loop or switch
mod_webkit.c:380: error: continue statement not within a loop
mod_webkit.c:385: error: continue statement not within a loop
mod_webkit.c: At top level:
mod_webkit.c:414: error: `aprsock' undeclared here (not in a function)
mod_webkit.c:414: error: `c' undeclared here (not in a function)
mod_webkit.c:414: warning: initialization makes integer from pointer without a cast
mod_webkit.c:414: error: initializer element is not constant
mod_webkit.c:414: warning: data definition has no type or storage class
mod_webkit.c:415: error: parse error before "do"
mod_webkit.c:415: error: parse error before '->' token
mod_webkit.c:415: error: parse error before "struct"
mod_webkit.c:415: error: parse error before "struct"
mod_webkit.c:416: error: redefinition of `b'
mod_webkit.c:414: error: `b' previously defined here
mod_webkit.c:416: error: `c' undeclared here (not in a function)
mod_webkit.c:416: warning: initialization makes integer from pointer without a cast
mod_webkit.c:416: error: initializer element is not constant
mod_webkit.c:416: warning: data definition has no type or storage class
mod_webkit.c:417: error: parse error before "do"
mod_webkit.c:417: error: parse error before '->' token
mod_webkit.c:417: error: parse error before "struct"
mod_webkit.c:417: error: parse error before "struct"
mod_webkit.c:422: error: parse error before string constant
mod_webkit.c:422: warning: conflicting types for built-in function `sprintf'
mod_webkit.c:422: warning: data definition has no type or storage class
mod_webkit.c:423: warning: parameter names (without types) in function declaration
mod_webkit.c:423: warning: data definition has no type or storage class
mod_webkit.c:425: error: `r' undeclared here (not in a function)
mod_webkit.c:425: warning: initialization makes integer from pointer without a cast
mod_webkit.c:425: error: initializer element is not constant
mod_webkit.c:425: warning: data definition has no type or storage class
mod_webkit.c:426: error: parse error before "if"
mod_webkit.c:428: warning: parameter names (without types) in function declaration
mod_webkit.c:428: warning: data definition has no type or storage class
mod_webkit.c:433: error: parse error before '->' token
mod_webkit.c:440: error: parse error before '->' token
mod_webkit.c:440: error: conflicting types for `apr_table_unset'
/usr/include/apr/apr_tables.h:250: error: previous declaration of `apr_table_unset'
mod_webkit.c:440: warning: data definition has no type or storage class
mod_webkit.c:442: warning: parameter names (without types) in function declaration
mod_webkit.c:442: error: conflicting types for `ap_internal_redirect_handler'
/usr/include/apache/http_request.h:174: error: previous declaration of `ap_internal_redirect_handler'
mod_webkit.c:442: warning: data definition has no type or storage class
mod_webkit.c:443: error: parse error before "return"
mod_webkit.c:450: warning: parameter names (without types) in function declaration
mod_webkit.c:450: warning: data definition has no type or storage class
mod_webkit.c:451: error: parse error before "return"
mod_webkit.c:454: error: parse error before '->' token
mod_webkit.c:454: warning: data definition has no type or storage class
mod_webkit.c:456: warning: parameter names (without types) in function declaration
mod_webkit.c:456: warning: data definition has no type or storage class
mod_webkit.c:458: error: parse error before "return"
apxs:Error: Command failed with rc=65536
.
make: *** [mod_webkit.o] Błąd 1



-- Radosław Kintzi Lucas Consulting [EMAIL PROTECTED]



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to