Error building libgcj on HP 10.20

'David Scott Urban urban@ast.lmco.com
Sat Apr 1 00:00:00 GMT 2000


I am trying to build libgcj on aq HP running HPUX 10.20.
Uname -a - HP-UX spica B.10.20 A 9000/735 unknown
gcc -v - Reading specs from 
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/specs
gcc version 2.95.2 19991024 (release)
cpp -v - Reading specs from 
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/cpp -lang-c -v 
-iprefix 
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/hppa1.1-hp-hpux10
.20/2.95.2/ -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix 
-D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ 
-D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix 
-Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) -D__hp9000s700 
-D_PA_RISC1_1 -D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__ -
GNU CPP version 2.95.2 19991024 (release) (hppa)
#include "..." search starts here:
#include <...> search starts here:
 /home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include
 
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/../../../../hppa1
.1-hp-hpux10.20/include
 /home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/../../../../inclu
de/g++-3
 /usr/local/include
End of omitted list.
During the build, I received the following error:
c++ -DHAVE_CONFIG_H -I. -I../../../libgcj/libjava -I./include 
-I../../../libgcj/libjava -Iinclude -I../../../libgcj/libjava/include 
-I../../../libgcj/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 
-DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 
-I../../../libgcj/libjava/../compat-include -I../../../libgcj/libjava/../zlib 
-I../../../libgcj/libjava/../libffi/include -I../libffi/include -fno-rtti 
-fvtable-thunks -fsjlj-exceptions -W -Wall -g -O2 -Wp,-MD,.deps/interpret.pp -c 
-fPIC -DPIC ../../../libgcj/libjava/interpret.cc -o .libs/interpret.lo
In file included from ../../../libgcj/libjava/include/jvm.h:14,
 from ../../../libgcj/libjava/interpret.cc:17:
../../../libgcj/libjava/gcj/javaprims.h:260: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/gcj/javaprims.h:262: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/gcj/javaprims.h:264: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/gcj/javaprims.h:269: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/gcj/javaprims.h:275: warning: `__malloc__' attribute 
directive ignored
In file included from ../../../libgcj/libjava/interpret.cc:17:
../../../libgcj/libjava/include/jvm.h:64: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/include/jvm.h:66: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/include/jvm.h:68: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/include/jvm.h:105: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/include/jvm.h:149: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/include/jvm.h:151: warning: `__malloc__' attribute 
directive ignored
../../../libgcj/libjava/include/jvm.h:166: warning: `__malloc__' attribute 
directive ignored
In file included from ../../../libgcj/libjava/java/lang/mprec.h:36,
 from ../../../libgcj/libjava/java/lang/fdlibm.h:25,
 from ../../../libgcj/libjava/interpret.cc:20:
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/math.h: 
In function `double pow(double, int)':
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/math.h:74
: declaration of C function `double pow(double, int)' conflicts with
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/math.h:71
: previous declaration `double pow(double, double)' here
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/math.h: 
In function `double pow(double, int)':
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/math.h:75
: warning: `double' used for argument 2 of `pow(double, int)'
In file included from ../../../libgcj/libjava/interpret.cc:20:
../../../libgcj/libjava/java/lang/fdlibm.h: At top level:
../../../libgcj/libjava/java/lang/fdlibm.h:73: declaration of C function `double 
pow(double, double)' conflicts with
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/math.h:74
: previous declaration `double pow(double, int)' here
gmake[2]: *** [interpret.lo] Error 1
Any help would be reatly appreciated.
Scott Urban
D. S. Urban 
email : urban@ast.lmco.com
-------------------------------------------------------------------------------
To be the person, you must know the person. To know the person, you must
understand the person. To understand the person, you must listen. To listen,
you must open your mind and put aside all preconceived ideas and notions.
-------------------------------------------------------------------------------
All opinions expressed are my own not that of my employer
PS: Attached are the two header files creating the problems


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /