[OGo-Users] ngobjweb troubles again ("undefined symbol: ngobjweb_handler")

Adam Williams users@opengroupware.org
Sun, 12 Nov 2006 22:42:56 -0500


On Sun, 2006-11-12 at 18:39 -0500, Adam Williams wrote:
> On Sun, 2006-11-12 at 10:29 -0500, Adam Williams wrote:
> > I'm trying to setup the latest trunk on a new OpenSuSE 10.1 box;  but my
> > usual recipe for building ngobjweb is producing a shiny new error
> > message - "undefined symbol: ngobjweb_handler" when I try to start
> > apache.  Did something change in ngobjweb or the libraries it links to?
> I do get this [ I think, new ] message during module compilation:

Fixed;  probably just a bug in my notes.  mod_ngobjweb.so is the module,
not ngobjweb_module.so

> ngobjweb_module.c:27: warning: missing braces around initializer
> ngobjweb_module.c:27: warning: (near initialization for
> 'ngobjweb_cmds[0].func')
> ngobjweb_module.c:27: warning: initialization from incompatible pointer
> type
> ngobjweb_module.c:35: warning: initialization from incompatible pointer
> type
> ngobjweb_module.c:43: warning: initialization from incompatible pointer
> type
> ngobjweb_module.c:51: warning: initialization from incompatible pointer
> type

rm -f sope-mod_ngobjweb-trunk-latest.tar.gz
curl -o sope-mod_ngobjweb-trunk-latest.tar.gz
http://download.opengroupware.org/nightly/sources/trunk/sope-mod_ngobjweb-trunk-latest.tar.gz
rm -fR sope-mod_ngobjweb
tar xf sope-mod_ngobjweb-trunk-latest.tar.gz
cd sope-mod_ngobjweb/
cp handler.c /tmp/handler.c.original
sed "s/ap_http_method(/ap_http_scheme(/g" handler.c \
  | sed "s/ap_run_http_method(/ap_run_http_scheme(/g" > handler_new.c
mv handler_new.c handler.c
/usr/sbin/apxs2 -c *.c
for file in *.o
 do
  ld -Bshareable -o $(basename $file .o).so $file
 done
make all
cp mod_ngobjweb.so  /usr/lib/apache2/
rcapache2 start