#36 cygwin patch not working

closed-works-for-me
Greg Stein
5
2002-05-17
2002-01-13
Jari Aalto
No

unable to compile under cygwin with the patch :-(
Details in separate file

...
xmlfile.o(.text+0x4a1):xmlfile.c: undefined reference
to `_imp__XML_SetBase'
xmlfile.o(.text+0x4da):xmlfile.c: undefined reference
to `_imp__XML_ParserFree'
xmlfile.o(.text+0x51c):xmlfile.c: undefined reference
to `_imp__XML_SetBase'
xmlfile.o(.text+0x584):xmlfile.c: undefined reference
to `_imp__XML_SetExternalEntityRefHandler'
collect2: ld returned 1 exit status
make[1]: *** [xmlwf] Error 1
make[1]: Leaving directory `/usr/src/nok/expat-
1.95.2/xmlwf'
make: *** [xmlwf] Error 2
//root@W2KPICASSO /usr/src/nok/expat-1.95.2 $

Discussion

  • Jari Aalto
    Jari Aalto
    2002-01-13

    patched Cygwin compile results + env

     
    Attachments
  • Logged In: YES
    user_id=76037

    Make sure you have the latest libtool and autotools and the
    latest binutils.
    I used this patch and it builds ok for me...

    Gerrit
    --
    =^..^=

     
  • Logged In: YES
    user_id=76037

    That is not true!!!

    Be sure to use all the latest versions of the autotools
    which are available for Cygwin.

    Get the patch:
    http://sourceforge.net/tracker/download.php?
    group_id=10127&atid=310127&file_id=15738&aid=501295

    Unpack expat-1.95.2, unpack the patch, cd expat-1.95.2,
    patch the sources:
    $ patch -p1<../expat-cygwin[1].patch
    patching file `aclocal.m4'
    patching file `config.h.in'
    patching file `configure'
    patching file `configure.in'
    patching file `conftools/config.guess'
    patching file `conftools/config.sub'
    patching file `conftools/ltconfig'
    patching file `conftools/ltmain.sh'
    patching file `conftools/missing'
    patching file `conftools/mkinstalldirs'
    patching file `lib/Makefile.in'
    patching file `xmlwf/Makefile.in'

    Now type in:
    ./configure
    make
    make install

    Thats it...

    The part that is failing for you:
    cd xmlwf && make
    make[1]: Entering directory `/stuff/xml/expat-1.95.2/xmlwf'
    gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -
    fexceptions -I../lib -c -o xmlwf.o xmlwf.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -
    fexceptions -I../lib -c -o xmlfile.o xmlfile.c
    xmlfile.c: In function `processStream':
    xmlfile.c:149: warning: implicit declaration of function
    `close'
    xmlfile.c:153: warning: implicit declaration of function
    `read'
    gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -
    fexceptions -I../lib -c -o codepage.o codepage.c
    gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -
    fexceptions -I../lib -c -o unixfilemap.o unixfilemap.c
    gcc -o xmlwf xmlwf.o xmlfile.o codepage.o unixfilemap.o -
    L../lib/.libs -lexpat
    make[1]: Leaving directory `/stuff/xml/expat-1.95.2/xmlwf'

    Gerrit
    --
    =^..^=

     
  • Greg Stein
    Greg Stein
    2002-05-17

    Logged In: YES
    user_id=6501

    I'll presume that siebenschlaefer has properly addressed the
    problem: the latest autotools are needed.

    Closing. If the problem has /not/ been fixed, then this can
    always be reopened.

     
  • Greg Stein
    Greg Stein
    2002-05-17

    • status: open --> closed-works-for-me