Re: [evolution-patches] Fixing configure.in on the stable branch so Evolution will compile



This seems to be a problem that only occurs on Red Hat 9. The problem
doesn't exist on any other distributions. It is also only an
intermittent problem. It doesn't occur at all on any of the platforms
I build packages on, even Red Hat 9. I don't think this should go into
stable. It is a distribution-specific patch. The problem doesn't exist
in HEAD at all anymore either, or shouldn't, since we copied db4 into
the evolution-data-server tree. A better solution would probably be to
rebuild db3 so that it has libpthread linked. Why it wouldn't be linked,
though, I have no idea.

-- dobey

On Wed, 2003-12-24 at 19:11, Gerardo Marin wrote:
> Any news on this one?
> 
> On Mon, 2003-09-29 at 15:44, Elijah P Newren wrote:
> > I submitted this to bugzilla as
> >    http://bugzilla.ximian.com/show_bug.cgi?id=48967
> > where Gerardo Marin requested that I post my patch to this list.
> > 
> > CVS HEAD seems to compile fine for me, but the evolution-1-4-branch
> > wouldn't compile on my laptop (which is running Red Hat 9 + Gnome from
> > CVS).  I had to make a small change to configure.in in order to allow
> > the configure tests to complete successfully.  Upon doing so, I was able
> > to get evolution to build and run succesfully.  Here is the patch:
> > 
> > Index: configure.in
> > ===================================================================
> > RCS file: /cvs/gnome/evolution/configure.in,v
> > retrieving revision 1.591.2.7
> > diff -u -r1.591.2.7 configure.in
> > --- configure.in	20 Sep 2003 14:33:50 -0000	1.591.2.7
> > +++ configure.in	26 Sep 2003 22:34:30 -0000
> > @@ -358,7 +358,7 @@
> >  	ac_cv_db3_ldadd=""
> >  
> >  	for name in db db3 db-3.1; do
> > -		LIBS="$LIBS_save $with_db3_libs/lib${name}.a"
> > +		LIBS="$LIBS_save $with_db3_libs/lib${name}.a -lpthread"
> >  		AC_TRY_LINK([
> >  			#ifdef HAVE_DB3_DB_H
> >  			#include <db3/db.h>
> > @@ -384,7 +384,7 @@
> >  
> >  AC_CACHE_CHECK([that db3 library version matches header version], ac_cv_db3_lib_version_match,
> >  [
> > -	LIBS="$DB3_LDADD $LIBS"
> > +	LIBS="$DB3_LDADD $LIBS -lpthread"
> >  	AC_TRY_RUN([
> >  		#ifdef HAVE_DB3_DB_H
> >  		#include <db3/db.h>
> > 
> > I'm a newbie to Gnome programming, so it's entirely possible that I
> > simply found an ugly workaround, but hopefully the patch is enough for
> > someone to know how to correct the problem.
> > 
> > Elijah





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