#450 Build failed on SUSE linux with gcc (GCC) version 3.2

Platform Specific
closed-wont-fix
5
2012-03-03
2007-09-17
Anonymous
No

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

Discussion

  • Karl Waclawek

    Karl Waclawek - 2007-09-17
    • assigned_to: gstein --> fdrake
     
  • Karl Waclawek

    Karl Waclawek - 2007-09-17

    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 ...

     
  • Fred L. Drake, Jr.

    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.

     
  • Karl Waclawek

    Karl Waclawek - 2007-11-09

    Logged In: YES
    user_id=290026
    Originator: NO

    I am not even sure xmlwf was ever meant to be built for UTF-16.
    The README seems to mention that (under Unix) you should only run "make buildlib" for UTF-16 output, which builds the Expat library itself, and nothing else.

    Fred, does a complete UTF-16 build really work for you?

     
  • Fred L. Drake, Jr.

    Logged In: YES
    user_id=3066
    Originator: NO

    Not if I'm actually careful about building it; reconfiguring an existing build doesn't cause the object files to be re-built, so I was still using the UTF-8 build.

    Doing a "make clean" before reconfiguring yields similar results on my Mac OS X (Leopard) machine (errors below). I don't think this ever worked before, but I've rarely built anything other than the UTF-8 version.

    /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -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 -std=gnu99 -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 -std=gnu99 -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 -std=gnu99 -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 /usr/local/lib -o libexpat.la lib/xmlparse.lo lib/xmltok.lo lib/xmlrole.lo
    gcc -std=gnu99 -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 -std=gnu99 -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 -std=gnu99 -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 -std=gnu99 -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 -std=gnu99 -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
    Undefined symbols:
    "__wfopen", referenced from:
    _wmain in xmlwf.o
    "_main", referenced from:
    start in crt1.10.5.o
    "__wopen", referenced from:
    _processStream in xmlfile.o
    "__wremove", referenced from:
    _wmain in xmlwf.o
    "__wperror", referenced from:
    _wmain in xmlwf.o
    _processStream in xmlfile.o
    _processStream in xmlfile.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** [xmlwf/xmlwf] Error 1

     
  • Karl Waclawek

    Karl Waclawek - 2009-01-17

    Fred,

    can we close this issue, or is there something to do?

     
  • Karl Waclawek

    Karl Waclawek - 2012-03-03
    • status: open --> closed-wont-fix
     
  • Karl Waclawek

    Karl Waclawek - 2012-03-03

    I added a note to the README file stating that a UTF-16 build of xmlwf and the tests is not supported.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks