I think the issue is that glib-config is present only in glib-1.2, and
while it'll give useable results for picking up glib-2.0 headers, it's
for whatever reason not giving the gmodule stuff as needed by glib-2.0.

Since it's only been reported for CentOS users, someone on CentOS is
going to have to dig into this to figure out a reasonable workaround.

Glad that you're up and running now!

Aaron

On Wed, 2006-09-06 at 20:45 -0700, Dan Stilts wrote:
> Hey Aaron,
> 
> You rock! Just by adding "/usr/lib/libgmodule-2.0.so.0" to the end of 
> the LDFLAGS line in the Makefile, caused `make` to go through nice and 
> happy!
> 
> Thanks again!
> 
> -Dan
> 
> Aaron Stone wrote:
> > Adam Kosmin reported a very similar issue a few months ago:
> > http://www.archivesat.com/DBMail_mailinglist/thread277967.htm
> > 
> > And FreeBSD might be building libgmodule separately, too:
> > http://www.daemonnews.org/mailinglists/FreeBSD/freebsd-gnome/msg18001.html
> > 
> > I'll see if there's some autoconf magic to test if the distribution is
> > doing something odd with Glib and work with it. Here's something
> > interesting:
> > 
> > localhost dbmail-2.1 # glib-config --libs
> > -L/usr/lib -lglib
> > localhost dbmail-2.1 # glib-config glib --libs
> > -L/usr/lib -lglib
> > localhost dbmail-2.1 # glib-config gmodule --libs
> > -L/usr/lib -rdynamic -lgmodule -lglib
> > 
> > Crossing Adam's thread above with these results should get you to a
> > temporary workaround.
> > 
> > Aaron
> > 
> > 
> > On Wed, 2006-09-06 at 17:04 -0700, Dan Stilts wrote:
> >> Hey All,
> >>
> >> I get a feeling this is a gmime or glib problem somewhere, but I'm not 
> >> sure and I've not been able to find anything through the lists about the 
> >> error.
> >>
> >> First, some versions:
> >>
> >> OS: CentOS 4.3
> >> Dbmail: Today's trunk SVN (pulled at 4:45pm PDT)
> >> GMime: 2.1.9
> >> GLib: 2.12.2
> >> GCC: 3.4.5
> >>
> >> Now, the failure:
> >>
> >> gcc -g -O2 -I/usr/local/include/glib-2.0 
> >> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gmime-2.0 
> >> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -W -Wall 
> >> -Wpointer-arith -Wstrict-prototypes -Wl,--export-dynamic -o 
> >> .libs/dbmail-smtp main.o  -L/opt/software/mysql/lib/mysql 
> >> -L/usr/local/lib ./.libs/libdbmail.so /usr/local/lib/libgmime-2.0.so -lz 
> >> -lnsl /usr/local/lib/libgobject-2.0.so /usr/local/lib/libglib-2.0.so 
> >> /usr/local/lib/libiconv.so -lcrypt -Wl,--rpath 
> >> -Wl,/opt/software/dbmail2/lib -Wl,--rpath -Wl,/usr/local/lib
> >> ./.libs/libdbmail.so: undefined reference to `g_module_supported'
> >> ./.libs/libdbmail.so: undefined reference to `g_module_error'
> >> ./.libs/libdbmail.so: undefined reference to `g_module_symbol'
> >> ./.libs/libdbmail.so: undefined reference to `g_module_build_path'
> >> ./.libs/libdbmail.so: undefined reference to `g_module_open'
> >> collect2: ld returned 1 exit status
> >> make[2]: *** [dbmail-smtp] Error 1
> >> make[2]: Leaving directory `/opt/build/dbmail-svn/20060906/dbmail'
> >> make[1]: *** [all-recursive] Error 1
> >> make[1]: Leaving directory `/opt/build/dbmail-svn/20060906/dbmail'
> >> make: *** [all] Error 2
> >>
> >> Again, I'm sure this is a software issue on my end, but I'll be damned 
> >> if I can find it. Anyone have any suggestions?
> >>
> >> Thanks,
> >> Dan
> >> _______________________________________________
> >> Dbmail-dev mailing list
> >> [email protected]
> >> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> > 
> > _______________________________________________
> > Dbmail-dev mailing list
> > [email protected]
> > http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to