This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Perl module XML::Parser + Expat build problem


Folks,

I am trying to install XML::Parser using cygwin + cygwin perl,
which relies on the expat libs, but I have been unable to get expat to
build,
using make and gcc from cygwin. 
(cygwin install, version 2.78.2.9)

I got expat from:

http://expat.sourceforge.net/

and others have informed me that a static lib should work with cygwin,
and that expat-1.95.2 builds with a static lib by default.



This is the output when I run make:
(I ran '(expat-1.95.2)# ./configure' prior to make)

How do I fix the undefined refs?
Does the makefile need surgery?

Is this the cause? Is there a way around this warning?
""
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
""

The following object files are produced after the make with errors:

(expat-1.95.2)# find ./* -name *.o
./lib/xmlparse.o
./lib/xmlrole.o
./lib/xmltok.o
./xmlwf/codepage.o
./xmlwf/unixfilemap.o
./xmlwf/xmlfile.o
./xmlwf/xmlwf.o

also...

(expat-1.95.2)# find ./* -name *.*a
./lib/.libs/libexpat.a
./lib/.libs/libexpat.la
./lib/libexpat.la

"""""""""""""""""""
(expat-1.95.2)# make
cd lib && make
make[1]: Entering directory `/c/xml/expat_4/expat-1.95.2/lib'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"'
-DVERSION='"expat_1.95.2"' -I. -I. -I..  -g -O
2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmlparse.c
mkdir .libs
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I.
-I.. -g -O2 -Wall -Wmissing-prototypes -Wstri
ct-prototypes -fexceptions -c xmlparse.c  -DPIC -o .libs/xmlparse.lo
mv -f .libs/xmlparse.lo xmlparse.o
(cd . && ln -s xmlparse.o xmlparse.lo)
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"'
-DVERSION='"expat_1.95.2"' -I. -I. -I..  -g -O
2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmltok.c
rm -f .libs/xmltok.lo
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I.
-I.. -g -O2 -Wall -Wmissing-prototypes -Wstri
ct-prototypes -fexceptions -c xmltok.c  -DPIC -o .libs/xmltok.lo
mv -f .libs/xmltok.lo xmltok.o
(cd . && ln -s xmltok.o xmltok.lo)
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"'
-DVERSION='"expat_1.95.2"' -I. -I. -I..  -g -O
2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmlrole.c
rm -f .libs/xmlrole.lo
gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I.
-I.. -g -O2 -Wall -Wmissing-prototypes -Wstri
ct-prototypes -fexceptions -c xmlrole.c  -DPIC -o .libs/xmlrole.lo
xmlrole.c:7: warning: `RCSId' defined but not used
mv -f .libs/xmlrole.lo xmlrole.o
(cd . && ln -s xmlrole.o xmlrole.lo)
/bin/sh ../libtool --mode=link  gcc -version-info 1:0:1 -g -O2 -Wall
-Wmissing-prototypes -Wstrict-prototypes -fexceptio
ns  -o libexpat.la -rpath /usr/local/lib  xmlparse.lo xmltok.lo xmlrole.lo
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
rm -fr .libs/libexpat.la .libs/libexpat.* .libs/libexpat.*
ar cru .libs/libexpat.a  xmlparse.o xmltok.o xmlrole.o
ranlib .libs/libexpat.a
creating libexpat.la
(cd .libs && rm -f libexpat.la && ln -s ../libexpat.la libexpat.la)
make[1]: Leaving directory `/c/xml/expat_4/expat-1.95.2/lib'
cd xmlwf && make
make[1]: Entering directory `/c/xml/expat_4/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 -static xmlwf.o xmlfile.o codepage.o unixfilemap.o
-L../lib/.libs -lexpat
xmlwf.o: In function `defaultCharacterData':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:239: undefined reference to
`_imp__XML_DefaultCurrent'
xmlwf.o: In function `defaultStartElement':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:244: undefined reference to
`_imp__XML_DefaultCurrent'
xmlwf.o: In function `defaultEndElement':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:249: undefined reference to
`_imp__XML_DefaultCurrent'
xmlwf.o: In function `defaultProcessingInstruction':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:254: undefined reference to
`_imp__XML_DefaultCurrent'
xmlwf.o: In function `metaLocation':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:283: undefined reference to
`_imp__XML_GetBase'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:286: undefined reference to
`_imp__XML_GetCurrentColumnNumber'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:286: undefined reference to
`_imp__XML_GetCurrentLineNumber'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:286: undefined reference to
`_imp__XML_GetCurrentByteCount'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:286: undefined reference to
`_imp__XML_GetCurrentByteIndex'
xmlwf.o: In function `metaStartElement':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:311: undefined reference to
`_imp__XML_GetSpecifiedAttributeCount'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:313: undefined reference to
`_imp__XML_GetIdAttributeIndex'
xmlwf.o: In function `main':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:676: undefined reference to
`_imp__XML_ParserCreateNS'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:678: undefined reference to
`_imp__XML_ParserCreate'
...
... more xmlwf undefined refs ... 
...
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:740: undefined reference to
`_imp__XML_SetProcessingInstructionHandler'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:746: undefined reference to
`_imp__XML_SetUnknownEncodingHandler'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlwf.c:756: undefined reference to
`_imp__XML_ParserFree'
xmlfile.o: In function `reportError':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:48: undefined reference to
`_imp__XML_GetErrorCode'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:49: undefined reference to
`_imp__XML_ErrorString'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:51: undefined reference to
`_imp__XML_GetCurrentColumnNumber'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:51: undefined reference to
`_imp__XML_GetCurrentLineNumber'
xmlfile.o: In function `processFile':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:68: undefined reference to
`_imp__XML_Parse'
xmlfile.o: In function `externalEntityRefFilemap':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:124: undefined reference to
`_imp__XML_ExternalEntityParserCreate'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:129: undefined reference to
`_imp__XML_SetBase'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:133: undefined reference to
`_imp__XML_ParserFree'
xmlfile.o: In function `processStream':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:147: undefined reference to
`_imp__XML_GetBuffer'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:159: undefined reference to
`_imp__XML_ParseBuffer'
xmlfile.o: In function `externalEntityRefStream':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:182: undefined reference to
`_imp__XML_ExternalEntityParserCreate'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:184: undefined reference to
`_imp__XML_SetBase'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:187: undefined reference to
`_imp__XML_ParserFree'
xmlfile.o: In function `XML_ProcessFile':
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:197: undefined reference to
`_imp__XML_SetBase'
/c/xml/expat_4/expat-1.95.2/xmlwf/xmlfile.c:203: undefined reference to
`_imp__XML_SetExternalEntityRefHandler'
collect2: ld returned 1 exit status
make[1]: *** [xmlwf] Error 1
make[1]: Leaving directory `/c/xml/expat_4/expat-1.95.2/xmlwf'
make: *** [xmlwf] Error 2
""""""""""""""""

Regards,
Bruce 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]