[Mono-list] problem starting apache with mod_mono: undefined symbol: g_thread_init. please help

Julien Langeveld julien@payvision.com
Mon, 6 Oct 2003 17:32:08 +0200


Hello,=20

I want to run some .net webservcies and webapplications on mono. But I =
am having 2 problems atm:

1. When I try to restart httpd after a mod_mono install I get the =
following error:
"
[root@localhost mono]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 3 of /etc/httpd/conf.d/mono.conf:
Cannot load /etc/httpd/modules/libmod_mono.so into server: =
/usr/lib/libmono.so.0: undefined symbol: g_thread_init
                                                           [FAILED]
[root@localhost mono]#
"

I hope somebody knows a solution for the error. I don't know what is =
worng. I am using all the new sources from the go-mono site or the cvs.
I compiled the latest glib. And run "ldd" on the .so's, without =
problems.

2. When I try to run a webapplication with a webreference on "mono =
/usr/bin/xsp.exe" I get a timeout:=20
"
The request timed out
"

The webapp uses a webreference, get's a class with a dataset and loops =
to fill a select option box.
My question is if it is possible to run webapplication with =
webreferences with xsp?

But what I really would like is getting apache to run with mod_mono.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
I tried mod_mono from cvs, mod_mono-0.5 and the 3.7 rpm

My system is like this. If there's something you would like to know =
about the config I supply the info:=20

Red Hat Linux 9:
"
[root@localhost mono]# uname -a
Linux localhost.localdomain 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST =
2003 i686 i686 i386 GNU/Linux
"

Apache 2:
"
[root@localhost mono]# /usr/sbin/httpd -v
Server version: Apache/2.0.40
Server built:   Jul 31 2003 11:36:14
"

Mono
"
root@localhost mono]# mono --version
Mono JIT compiler version 0.28, (C) 2002, 2003 Ximian, Inc.
"

Mcs
"
[root@localhost mono]# mcs --version
=EF=BB=BFMono C# compiler version 0.28.0.0
"

Xsp
"
[root@localhost mono]# mono /usr/bin/xsp.exe --version
=EF=BB=BFxsp.exe 0.6.99.0
(c) 2002,2003 Ximian, Inc.
Minimalistic web server for testing System.Web
"

Glib(, with Gthread)
"
[root@localhost mono]# glib-config
Usage: glib-config [OPTIONS] [LIBRARIES]
Options:
        [--prefix[=3DDIR]]
        [--exec-prefix[=3DDIR]]
        [--version]
        [--libs]
        [--cflags]
Libraries:
        glib
        gmodule
	  gthread
"

Gtk(, with Gthread)
"
[root@localhost mono]# gtk-config
Usage: gtk-config [OPTIONS] [LIBRARIES]
Options:
        [--prefix[=3DDIR]]
        [--exec-prefix[=3DDIR]]
        [--version]
        [--libs]
        [--cflags]
Libraries:
        gtk
        gthread
"

Thanks in advance, Julien