[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] broken expat on Raq4?



Howdy.

Well, I'm having some troubles getting mod_dav to compile on a Raq4, and
I suspect it lies somewhere in the expat.  I've tried it on two
different raq4i servers, both updated to the apache 1.3.20.

Here's how you can duplicate the problem.  Following the instructions
from http://www.webdav.org/mod_dav/ (below where it says "Problems with
your installation" in bold):
install xmlparse.h and xmltok.h into /usr/include, and libexpat.a into
/usr/lib
download any recent version of mod_dav from the above site.
Unpack and do: 
       env CC=cc ./configure --with-expat=/usr --with-apxs
// yes, the env CC=cc is needed, apparently apache was compiled with cc

do a make
copy libdav.so to /etc/httpd/modules

in httpd.conf add:
       LoadModule dav_module         modules/libdav.so
       AddModule mod_dav.c

Restart apache.  You will get the following error: (it may be in your
/var/log/httpd/errors )
		Syntax error on line 60 of /etc/httpd/conf/httpd.conf:
		Cannot load /etc/httpd/modules/libdav.so into server:
       /etc/httpd/modules/libdav.so: undefined symbol:
XML_SetElementHandler

Doing a 
	$ nm libdav.so | grep XML_SetElement
Yiels:
         U XML_SetElementHandler

Which means that there should be a shared expat, but doing:
       $ ldd libdav.so 
you'll see:
        libc.so.6 => /lib/libc.so.6 (0x40020000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

which means there isn't a shared expat.

I am way out of my realm of expertise when it comes to diagnosing and
fixing problems of this sort.  As a matter of fact, I was able to get
the above information only because of people like Joe Orton who
contribute on the mod_dav mailing list.

Therefore I'm asking for your help.  This is a very non-intrusive test
and will cause only about 45 seconds of downtime if you quickly undo
your changes to httpd.conf and restart apache when you experience the
error.

I've tried installing this on a RH7.1 computer running apache 1.3.19 and
it works flawlessly.  Therefore I'm stumped.  Any help or suggestions
would be greatly appreciated.

Matthew Nuzum
followers.net