Re: HEAD won't build

From: F J Franklin (
Date: Sun Jul 28 2002 - 14:28:08 EDT

  • Next message: F J Franklin: "Re: Commit (HEAD): Hash Downloader Port"

    On 28 Jul 2002, David Chart wrote:

    > Heck, it won't even ./configure:
    > checking for ranlib... (cached) ranlib
    > ./configure: line 1616: syntax error near unexpected token
    > `PKG_CHECK_MODULES(GLIB,glib-2.0'
    > ./configure: line 1616: ` PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.0,'
    > [David@localhost abi]$
    > Looks like a typo in one of the new makefiles, but as I was saying on
    > IRC I can't parse build error messages...

    Au contraire...
    This is because aclocal is not finding pkg.m4
    Now that AbiWord is building against GTK2, you will have to have GTK2, and
    therefore pkgconfig, installed. The latter installs a macro definition
    file, defining the PKG_CHECK_MODULES macro.

    If, like me, you have installed GTK2 under a different prefix from
    automake/autoconf (e.g., /usr/local vs /usr) then aclocal will probably
    not find the macro defintion and will not perform the substitution, thus
    the syntax error...

    Assuming you have installed pkgconfig in, say, --prefix=/opt/GTK2, then
    when you run in abi you should do it (in bash) like this:

    ACLOCAL_FLAGS="-I /opt/GTK2/share/aclocal"
    export PATH=/opt/GTK2/bin:$PATH
    export PKG_CONFIG_PATH=/opt/GTK2/lib/pkgconfig:$PKG_CONFIG_PATH
    ./configure ...

    If this is not the cause of the problem, then I don't know what is. I know
    that Hub was having similar problems on MacOS X, so maybe he can suggest
    something else.

    Regards, Frank

    Francis James Franklin

    "No, she really likes me. She told me I look like Britney Spears, and why
    would you say that to somebody you don't like?"
                                                               --- Elle Woods

    This archive was generated by hypermail 2.1.4 : Sun Jul 28 2002 - 14:35:00 EDT