After you downloaded gcc and installed it, did you re-run any configure scripts (i.e. runConfigure for Xalan & Xerces or configure for a lot of other packages) before trying to re-build them? The compiler options generated by autoconf are probably different...
 
Rachael
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, April 07, 2003 9:08 AM
To: [email protected]
Subject: Problem to rebuild Xalan 1.4 with ICU 2.2


Hello,

I need to rebuild Xalan with ICU, as I need to use the format-number() function.

I have downloaded ICU (ver. 2.2) and tried to build it on the HP-UX platform. As my "cc" is not an ANSI-C compiler...

gmake[1]: Entering directory `/homedev/mvasice/ICU/icu/source/common'
cc -DHAVE_CONFIG_H -DU_COMMON_IMPLEMENTATION  -I. -I.  -O -O2  +Olibcalls -Ae +ESlit -c  +z -o putil.o putil.c
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.

...I have dowloaded gcc and tried to use it as an ANSI-C compiler. But I do not succeed to compile a single source file. Almost all options are not recognized by gcc and "-o" and "-c" can't be specified together.

mucobet4:/homedev/mvasice/ICU/icu/source$ gmake
rm -rf config/icu-config
/opt/imake/bin/install -c -m 644 ./config/icu-config-top config/icu-config
sed -f ./config/make2sh.sed < ./config/Makefile.inc | grep -v '#M#' | uniq >> config/icu-config
sed -f ./config/make2sh.sed < ./config/mh-hpux-acc | grep -v '#M#' | uniq >> config/icu-config
cat ./config/icu-config-bottom >> config/icu-config
echo "# Rebuilt on "`date` >> config/icu-config
gmake[0]: Making `all' in `stubdata'
gmake[1]: Entering directory `/homedev/mvasice/ICU/icu/source/stubdata'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/homedev/mvasice/ICU/icu/source/stubdata'
gmake[0]: Making `all' in `common'
gmake[1]: Entering directory `/homedev/mvasice/ICU/icu/source/common'
gcc -DHAVE_CONFIG_H -DU_COMMON_IMPLEMENTATION  -I. -I.  -O -O2  +Olibcalls -Ae +ESlit -c  +z -o putil.o putil.c
gcc: cannot specify -o with -c or -S and multiple compilations
gmake[1]: *** [putil.o] Error 1
gmake[1]: Leaving directory `/homedev/mvasice/ICU/icu/source/common'
gmake: *** [all-recursive] Error 2

Here are the specs:
HP-UX:                11.00
aCC:                HP ANSI C++ B3910B A.03.30
gmake:                GNU Make version 3.79.1, built for hppa2.0w-hp-hpux11.00
gcc:                version 3.2, built for hppa2.0n-hp-hpux11.00


ICU Readme file doesn't provide too many details on building the ICU. Any help is more than welcome!

Cheers, Miro.

Reply via email to