This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Error building libgcj on HP 10.20


Jeff,

Tha patch worked for the first problem. Now, I am receiving the following error 
later related to the pow function:

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 -D_GNU_SOURCE -g -O2 -c  -fPIC -DPIC 
../../../libgcj/libjava/java/lang/natMath.cc -o java/lang/.libs/natMath.lo
../../../libgcj/libjava/java/lang/natMath.cc: In function `jdouble 
java::lang::Math::pow (__java_double, __java_double)':
../../../libgcj/libjava/java/lang/natMath.cc:82: call of overloaded `pow 
(jdouble, jdouble)' is ambiguous
../../../libgcj/libjava/java/lang/fdlibm.h:73: candidates are: double pow 
(double, double)
/home/urban/local/hp10/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.96/include/math.h:72:  
               double pow (double, int)
../../../libgcj/libjava/java/lang/natMath.cc:83: warning: control reaches end of 
non-void function `java::lang::Math::pow (__java_double, __java_double)'
gmake[2]: *** [java/lang/natMath.lo] Error 1
gmake[2]: Leaving directory 
`/tmp_mnt/home/urban/gnu_src/compile/objdir/hppa1.1-hp-hpux10.20/libjava'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/tmp_mnt/home/urban/gnu_src/compile/objdir/hppa1.1-hp-hpux10.20/libjava'
gmake: *** [all-target-libjava] Error 2

Scott Urban

> From java-discuss-return-1692-urban=ast.lmco.com@sourceware.cygnus.com Fri Jan 
 7 15:16 MST 2000
> Date: Fri, 07 Jan 2000 17:53:55 -0500
> From: Jeff Sturm <jsturm@sigma6.com>
> Subject: Re: Error building libgcj on HP 10.20
> To: "'David Scott Urban" <urban@ast.lmco.com>,
        java-discuss@sourceware.cygnus.com
> MIME-version: 1.0
> Delivered-to: mailing list java-discuss@sourceware.cygnus.com
> Mailing-List: contact java-discuss-help@sourceware.cygnus.com; run by ezmlm
> X-Accept-Language: en
> List-Post: <mailto:java-discuss@sourceware.cygnus.com>
> List-Subscribe: <mailto:java-discuss-subscribe@sourceware.cygnus.com>
> List-Unsubscribe: 
<mailto:java-discuss-unsubscribe-urban=ast.lmco.com@sourceware.cygnus.com>
> List-Archive: <http://sourceware.cygnus.com/ml/java-discuss/>
> List-Help: <mailto:java-discuss-help@sourceware.cygnus.com>, 
<http://sourceware.cygnus.com/ml/#faqs>
> 
> *sigh* my mail agent, or something garbled the patch... use the one
> attached to this message instead.
> 
> Jeff Sturm wrote:
> > 
> > David Scott Urban wrote:
> > > The patch did not work. I am still getting the same error.
> > 
> > OK.  I don't have a HP/UX machine here to test with, so I was guessing a
> > little.  This time I put the "inline pow(double, int)" into my math.h so
> > I can duplicate the error.
> > 
> > I discovered that fdlibm.h does the same thing, wrapping the includes
> > into a extern "C" block.  Both files are patched below.  This should
> > work on a fresh libgcj tree:
> 
> -- 
> Jeff Sturm
> jsturm@sigma6.com
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]