-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

% make
/usr/sbin/apxs -c mod_webkit.c
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc -prefer-pic 
-O2 -g -pipe -m64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT 
-D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o 
mod_webkit.lo mod_webkit.c && touch mod_webkit.slo
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=link gcc -o mod_webkit.la  
-rpath /usr/lib64/httpd/modules -module -avoid-version    mod_webkit.lo
/usr/sbin/apxs -c marshal.c
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc -prefer-pic 
-O2 -g -pipe -m64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT 
-D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o 
marshal.lo marshal.c && touch marshal.slo
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=link gcc -o marshal.la  
-rpath /usr/lib64/httpd/modules -module -avoid-version    marshal.lo
/usr/sbin/apxs -c -o mod_webkit.la mod_webkit.lo marshal.lo
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=link gcc -o mod_webkit.la  
-rpath /usr/lib64/httpd/modules -module -avoid-version    mod_webkit.lo 
marshal.lo

% ls -l
total 296
- -rw-r--r--  1 tuju tuju   388 Nov  8  2002 apache.conf
- -rw-r--r--  1 tuju tuju   352 Mar  4  2005 apache-windows.conf
- -rw-r--r--  1 tuju tuju  1299 Oct 28 05:25 Makefile
- -rw-r--r--  1 tuju tuju  2991 Oct 28 03:19 marshal.c
- -rw-r--r--  1 tuju tuju   790 Mar 22 12:45 marshal.la
- -rw-r--r--  1 tuju tuju   310 Mar 22 12:45 marshal.lo
- -rw-r--r--  1 tuju tuju 26400 Mar 22 12:45 marshal.o
- -rw-r--r--  1 tuju tuju     0 Mar 22 12:45 marshal.slo
- -rw-r--r--  1 tuju tuju 23924 Oct 28 05:25 mod_webkit.c
- -rw-r--r--  1 tuju tuju 65536 Jan 21  2005 mod_webkit.dll
- -rwxr-xr-x  1 tuju tuju  4381 Dec  3  2002 mod_webkit.dsp
- -rw-r--r--  1 tuju tuju  1146 Oct 28 03:19 mod_webkit.h
- -rw-r--r--  1 tuju tuju   811 Mar 22 12:45 mod_webkit.la
- -rw-r--r--  1 tuju tuju   319 Mar 22 12:45 mod_webkit.lo
- -rw-r--r--  1 tuju tuju 55504 Mar 22 12:45 mod_webkit.o
- -rw-r--r--  1 tuju tuju     0 Mar 22 12:45 mod_webkit.slo
- -rw-r--r--  1 tuju tuju  2270 Oct 28 03:19 README


Based on the 

  http://httpd.apache.org/docs/2.0/dso.html

there should be a .so (shared object). With 

  apxs -c -o mod_webkit.so mod_webkit.c marshal.c

it fails with:

/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc -prefer-pic 
-O2 -g -pipe -m64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT 
-D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o 
mod_webkit.lo mod_webkit.c && touch mod_webkit.slo
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc -prefer-pic 
-O2 -g -pipe -m64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT 
-D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o 
marshal.lo marshal.c && touch marshal.slo
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=link gcc -o mod_webkit.so  
-rpath /usr/lib64/httpd/modules -module -avoid-version    marshal.lo 
mod_webkit.lo
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64/crt1.o(.text+0x21): In 
function `_start':
: undefined reference to `main'
.libs/marshal.o(.text+0x3e): In function `expand_memory':
/home/tuju/PKGS/BUILD/Webware-0.9/WebKit/Adapters/mod_webkit2/marshal.c:31: 
undefined reference to `apr_palloc'
.libs/mod_webkit.o(.text+0x21): In function `log_message':
/home/tuju/PKGS/BUILD/Webware-0.9/WebKit/Adapters/mod_webkit2/mod_webkit.c:61: 
undefined reference to `ap_log_error'
.libs/mod_webkit.o(.text+0x50): In function `log_message_s':
/home/tuju/PKGS/BUILD/Webware-0.9/WebKit/Adapters/mod_webkit2/mod_webkit.c:67: 
undefined reference to `ap_log_error'
.
.
.

I've tried to add -L/usr/lib and -L/usr/lib64 and -lapr
with no luck.

It fails on both i386 and x86_64. This system has:

% rpm -q --queryformat="%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n" httpd apr 
centos-release
httpd-2.0.52-22.ent.centos4-x86_64
apr-0.9.4-24.5.c4.1-x86_64
apr-0.9.4-24.5.c4.1-i386
centos-release-4-3.2-x86_64
%


Any ideas?

For me it looks that the whole makefile
doesn't handle .so file, why is that?

Any help is appreciated.

BR,

Tuju

- -- 
Ajatteleva ihminen tarvitsee unta.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEIRQlQnPP29fw0xMRAiA6AJ4jnLs0mN4hHvgtnEAAg3AaQPYXbgCfUfeE
MrsXAu/yAbfHrV+fvrZNKp8=
=PgF/
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to