bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling coreutils on hpux


From: John O'Grady
Subject: compiling coreutils on hpux
Date: Fri, 21 May 2004 09:24:09 +0100

I'm trying to compile coreutils-5.2.1 on hpux. System settings are:

uname -a
HP-UX hp10 B.11.11 U 9000/800 825930620 unlimited-user license

gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/specs
Configured with: ./configure  : (reconfigured) ./configure  : (reconfigured)
./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  :
(reconfigured) ./configure  : (reconfigured) ./configure  : (reconfigured)
./configure  : (reconfigured) ./configure  : (reconfigured) ./configure  :
(reconfigured) ./configure
Thread model: posix
gcc version 3.2

While following the instructions, in the INSTALL, all initially goes well.
The ./configure script works fine, but the problems start when the build of
the libraries commences. I get the following error:

        make  all-am
        if
cc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -I. -I. -I..  -I.. -I.  -I/us
r/local/include  -g -O2 -MT memcasecmp.o -MD -MP -MF
".deps/memcasecmp.Tpo" -c -o memcasecmp.o memcasecmp.c; \
        then mv -f ".deps/memcasecmp.Tpo" ".deps/memcasecmp.Po"; else rm -f
".deps/memcasecmp.Tpo"; exit 1; fi
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
In file included from memcasecmp.c:39:
memcasecmp.h:24: parse error before "size_t"
memcasecmp.c:46: parse error before "size_t"
memcasecmp.c: In function `memcasecmp':
memcasecmp.c:48: `size_t' undeclared (first use in this function)
memcasecmp.c:48: (Each undeclared identifier is reported only once
memcasecmp.c:48: for each function it appears in.)
memcasecmp.c:48: parse error before "i"
memcasecmp.c:49: `vs1' undeclared (first use in this function)
memcasecmp.c:50: `vs2' undeclared (first use in this function)
memcasecmp.c:51: `i' undeclared (first use in this function)
memcasecmp.c:51: `n' undeclared (first use in this function)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

The problem seems to be that gcc has been compiled for hpux 11.00. Hoping to
avoid rebuilding gcc, is there any simple workaround to get the coreutils
built given the current configuration?

Rgds,
John O'Grady





reply via email to

[Prev in Thread] Current Thread [Next in Thread]