[Expat-bugs] [ expat-Bugs-1796209 ] Build failed on SUSE linux with gcc (GCC) version 3.2

SourceForge.net noreply at sourceforge.net
Fri Nov 9 05:20:00 CET 2007


Bugs item #1796209, was opened at 2007-09-17 09:22
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1796209&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build control
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Build failed on SUSE linux with gcc (GCC)  version 3.2

Initial Comment:
we are looking for a UNICODE build of expat-2.0.1 
our platform details are as follows :

OS name and version details : SUSE Linux 2.4.21-138-default  i686

gcc compiler version: 3.2

we have followed following steps: 

1) ./configure --prefix=/home/eXpat/binaries/debug/ --disable-static CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS="-DXML_UNICODE_WCHAR_T" 

2)make

then it throws following errors : 
/bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c
/bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o lib/xmltok.lo -c lib/xmltok.c
/bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o lib/xmlrole.lo -c lib/xmlrole.c
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -no-undefined -version-info 6:2:5 -rpath /home/gcuser/venkat/eXpat/binaries/debug//lib  -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o xmlwf/xmlwf.o -c xmlwf/xmlwf.c
xmlwf/xmlwf.c: In function `characterData':
xmlwf/xmlwf.c:34: warning: implicit declaration of function `fputws'
xmlwf/xmlwf.c:53: warning: implicit declaration of function `fwprintf'
xmlwf/xmlwf.c:57: warning: implicit declaration of function `putwc'
xmlwf/xmlwf.c: In function `attcmp':
xmlwf/xmlwf.c:117: warning: implicit declaration of function `wcscmp'
xmlwf/xmlwf.c: In function `nsattcmp':
xmlwf/xmlwf.c:159: warning: implicit declaration of function `wcsrchr'
xmlwf/xmlwf.c: In function `startElementNS':
xmlwf/xmlwf.c:176: warning: assignment makes pointer from integer without a cast
xmlwf/xmlwf.c:197: warning: assignment makes pointer from integer without a cast
xmlwf/xmlwf.c: In function `endElementNS':
xmlwf/xmlwf.c:222: warning: assignment makes pointer from integer without a cast
xmlwf/xmlwf.c: In function `metaStartElement':
xmlwf/xmlwf.c:353: warning: implicit declaration of function `wcslen'
xmlwf/xmlwf.c: In function `unknownEncoding':
xmlwf/xmlwf.c:575: warning: implicit declaration of function `wcschr'
xmlwf/xmlwf.c:575: warning: initialization makes pointer from integer without a cast
xmlwf/xmlwf.c: At top level:
xmlwf/xmlwf.c:644: warning: no previous prototype for `wmain'
xmlwf/xmlwf.c: In function `wmain':
xmlwf/xmlwf.c:779: warning: initialization makes pointer from integer without a cast
xmlwf/xmlwf.c:795: warning: implicit declaration of function `wcscpy'
xmlwf/xmlwf.c:796: warning: implicit declaration of function `wcscat'
xmlwf/xmlwf.c:798: warning: implicit declaration of function `_wfopen'
xmlwf/xmlwf.c:798: warning: assignment makes pointer from integer without a cast
xmlwf/xmlwf.c:800: warning: implicit declaration of function `_wperror'
xmlwf/xmlwf.c:853: warning: implicit declaration of function `_wremove'
gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o xmlwf/xmlfile.o -c xmlwf/xmlfile.c
xmlwf/xmlfile.c: In function `reportError':
xmlwf/xmlfile.c:66: warning: implicit declaration of function `fwprintf'
xmlwf/xmlfile.c: In function `resolveSystemId':
xmlwf/xmlfile.c:114: warning: implicit declaration of function `wcslen'
xmlwf/xmlfile.c:118: warning: implicit declaration of function `wcscpy'
xmlwf/xmlfile.c:120: warning: implicit declaration of function `wcsrchr'
xmlwf/xmlfile.c:121: warning: assignment makes pointer from integer without a cast
xmlwf/xmlfile.c: In function `processStream':
xmlwf/xmlfile.c:160: warning: implicit declaration of function `_wopen'
xmlwf/xmlfile.c:162: warning: implicit declaration of function `_wperror'
xmlwf/xmlfile.c:173: warning: pointer type mismatch in conditional expression
xmlwf/xmlfile.c:178: warning: pointer type mismatch in conditional expression
xmlwf/xmlfile.c:184: warning: pointer type mismatch in conditional expression
gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o xmlwf/codepage.o -c xmlwf/codepage.c
gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H -o xmlwf/unixfilemap.o -c xmlwf/unixfilemap.c
/bin/sh ./libtool --silent --mode=link gcc -I./lib -I. -g -O2 -fshort-wchar -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DXML_UNICODE_WCHAR_T -DHAVE_EXPAT_CONFIG_H  -o xmlwf/xmlwf xmlwf/xmlwf.o xmlwf/xmlfile.o xmlwf/codepage.o xmlwf/unixfilemap.o libexpat.la
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
xmlwf/xmlwf.o: In function `wmain':
/home/gcuser/venkat/eXpat/expat-2.0.1/xmlwf/xmlwf.c:798: undefined reference to `_wfopen'
/home/gcuser/venkat/eXpat/expat-2.0.1/xmlwf/xmlwf.c:853: undefined reference to `_wremove'
/home/gcuser/venkat/eXpat/expat-2.0.1/xmlwf/xmlwf.c:800: undefined reference to `_wperror'
xmlwf/xmlfile.o: In function `processStream':
/home/gcuser/venkat/eXpat/expat-2.0.1/xmlwf/xmlfile.c:160: undefined reference to `_wopen'
/home/gcuser/venkat/eXpat/expat-2.0.1/xmlwf/xmlfile.c:178: undefined reference to `_wperror'
/home/gcuser/venkat/eXpat/expat-2.0.1/xmlwf/xmlfile.c:162: undefined reference to `_wperror'
collect2: ld returned 1 exit status
make: *** [xmlwf/xmlwf] Error 1


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2007-11-08 23:20

Message:
Logged In: YES 
user_id=3066
Originator: NO

I don't have access to a SUSE linux system at this time; hopefully someone
else will be able to test and reproduce.


I'll see if I can put together a SUSE linux environment if I can squeeze
out some time, but I don't know anything about that distribution, so I may
be stabbing in the dark.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2007-09-17 10:26

Message:
Logged In: YES 
user_id=290026
Originator: NO

It looks like the Expat parser still builds OK, but xmlwf doesn't.
Not sure if any of our Unix experts can step in to resolve this issue ... 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1796209&group_id=10127


More information about the Expat-bugs mailing list