bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: libexpat dependency


From: Bruno Haible
Subject: Re: libexpat dependency
Date: Thu, 3 Apr 2008 19:29:40 +0200
User-agent: KMail/1.5.4

Rolandas wrote:
> Yes, that was exactly what I did. But first I tried without
> --with-libexpat-prefix. In both cases (with and without the prefix)
> the final binary showed that error message.
> 
> The original code:
> 
> #if DYNLOAD_LIBEXPAT
> # include <dlfcn.h>
> #else if HAVE_LIBEXPAT
> #  include <expat.h>
> #endif
> 
> I had this in the config.h file after running ./configure:
> 
> /* #undef DYNLOAD_LIBEXPAT */
> #define HAVE_LIBEXPAT 1
> 
> I have no idea why changing "else if" with "if" fixed it.

The only explanation that I can see is that you ran both builds (first without
--with-libexpat-prefix, then with --with-libexpat-prefix) in the same directory
and did not run "make distclean" before the second run of ./configure.
As a consequence, the "make" after the second ./configure did not rebuild
anything. Your change to x-glade.c then forced a rebuild of x-glade.o and of
xgettext, taking into account the HAVE_LIBEXPAT setting.

So, always do a "make distclean" before configuring a package that was
partially built before in the same directory.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]