Configure process error in compilation of libxml2 - Aix

This is a discussion on Configure process error in compilation of libxml2 - Aix ; I am trying to build libxml2 version 2.6.27 on AIX 5.3 using gcc 3.3.2. There are no obvious problems when running ./configure, but gmake halts when it reaches "generating symbol list for `libxml2.la'" generating symbol list for `libxml2.la' /opt/freeware/bin/nm -B ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Configure process error in compilation of libxml2

  1. Configure process error in compilation of libxml2

    I am trying to build libxml2 version 2.6.27 on AIX 5.3 using gcc 3.3.2.

    There are no obvious problems when running ./configure, but gmake halts
    when it reaches "generating symbol list for `libxml2.la'"

    generating symbol list for `libxml2.la'
    /opt/freeware/bin/nm -B -Bpg .libs/SAX.o .libs/entities.o
    ..libs/encoding.o .libs/error.o .libs/parserInternals.o .libs/parser.o
    ..libs/tree.o .libs/hash.o .libs/list.o .libs/xmlIO.o
    ..libs/xmlmemory.o .libs/uri.o .libs/valid.o .libs/xlink.o
    ..libs/HTMLparser.o .libs/HTMLtree.o
    ..libs/debugXML.o .libs/xpath.o .libs/xpointer.o .libs/xinclude.o
    ..libs/nanohttp.o .libs/nanoftp.o
    ..libs/DOCBparser.o .libs/catalog.o .libs/globals.o .libs/threads.o
    ..libs/c14n.o .libs/xmlstring.o .libs/xmlregexp.o .libs/xmlschemas.o
    ..libs/xmlschemastypes.o .libs/xmlunicode.o .libs/xmlreader.o
    ..libs/relaxng.o .libs/dict.o .libs/SAX2.o .libs/xmlwriter.o
    ..libs/legacy.o .libs/chvalid.o .libs/pattern.o
    ..libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o \| awk ' if
    \(\(\(\ == \T\\) \|\| \(\ == \D\\) \|\| \(\== \B\\)\) \&\& \(substr\(\'
    \| sort -u > .libs/libxml2.exp
    /opt/freeware/bin/nm: |: No such file or directory
    /opt/freeware/bin/nm: awk: File format not recognized
    /opt/freeware/bin/nm: if \(\(\(\ == \T\\) \|\| \(\ == \D\\) \|\| \(\
    == \B\\)\) \&\& \(substr\(\: No such file or directory
    /opt/freeware/bin/nm: |: No such file or directory
    /opt/freeware/bin/nm: sort: No such file or directory
    gmake[2]: *** [libxml2.la] Error 5
    gmake[2]: Leaving directory `/home/test/sources/libxml2-2.6.27'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/home/test/sources/libxml2-2.6.27'
    gmake: *** [all] Error 2


    I have checked the configure script and found the awk command actually
    run is a truncated version of that in the script.

    The command I am expecting to see is the expanded version of the
    following:
    export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if
    (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) !=
    ".")) { print \$3 } }'\'' | sort -u > $export_symbols'

    I am completely lost as to how this is happening, so any help with this
    will be greatly appreciated.


  2. Re: Configure process error in compilation of libxml2

    aix.metasphere@hotmail.co.uk writes:

    > There are no obvious problems when running ./configure, but gmake halts
    > when it reaches "generating symbol list for `libxml2.la'"


    > /opt/freeware/bin/nm -B -Bpg .libs/SAX.o .libs/entities.o

    ....
    > .libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o \| awk ' if

    ^
    Remove that backslash and try again.

    > The command I am expecting to see is the expanded version of the
    > following:
    > export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if
    > (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) !=
    > ".")) { print \$3 } }'\'' | sort -u > $export_symbols'


    Apparently '$convenience' ends with a '\' which you must get rid of.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

  3. Re: Configure process error in compilation of libxml2

    Thanks for the reply.

    I checked for where $convenience was set, but could not find it. So, I
    removed $convenience from the configure script, ran ./configure again,
    but I still get the same error. I tested that my change had been
    applied to the script by adding another file name to the nm command and
    the new file was displayed when gmake ran.

    I have not had any experience with scripting. Would I expect to see
    all the brackets escaped like that?

    Will the shell that I use make any difference to the process? I notice
    that libtool is run specifically by ksh93 " /usr/bin/ksh93 ./libtool
    ....", but I use bash for everything else I do.

    Sorry that these are so basic questions.

    Thanks again.


    Paul Pluzhnikov wrote:

    > aix.metasphere@hotmail.co.uk writes:
    >
    > > There are no obvious problems when running ./configure, but gmake halts
    > > when it reaches "generating symbol list for `libxml2.la'"

    >
    > > /opt/freeware/bin/nm -B -Bpg .libs/SAX.o .libs/entities.o

    > ...
    > > .libs/xmlsave.o .libs/xmlmodule.o .libs/schematron.o \| awk ' if

    > ^
    > Remove that backslash and try again.
    >
    > > The command I am expecting to see is the expanded version of the
    > > following:
    > > export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if
    > > (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) !=
    > > ".")) { print \$3 } }'\'' | sort -u > $export_symbols'

    >
    > Apparently '$convenience' ends with a '\' which you must get rid of.
    >
    > Cheers,
    > --
    > In order to understand recursion you must first understand recursion.
    > Remove /-nsp/ for email.



  4. Re: Configure process error in compilation of libxml2

    "Paul" writes:

    > Thanks for the reply.


    Please do not top-post:

    A: Because it reverses the logical flow of conversation.
    Q: Why is top posting frowned upon?

    Your message was particularly difficult to read backwards. Re-ordered.
    Please also trim your replies.

    > Paul Pluzhnikov wrote:


    >> Remove that backslash and try again.

    ....
    >> Apparently '$convenience' ends with a '\' which you must get rid of.


    > I checked for where $convenience was set, but could not find it. So, I
    > removed $convenience from the configure script, ran ./configure again,
    > but I still get the same error.


    You can simply remove the trailing backslash from command line and
    re-run the command "by hand".

    > I have not had any experience with scripting. Would I expect to see
    > all the brackets escaped like that?


    Yes.

    > Will the shell that I use make any difference to the process?


    It might.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

+ Reply to Thread