Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 12:03:09 +0930
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Andrzej Kwiatkowski <kwiatek@tpi.pl>
Cc:        freebsd-java@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG
Subject:   Re: Problems with j2sdk_1.3.1
Message-ID:  <20020715120309.B33740@misty.eyesbeyond.com>
In-Reply-To: <20020712181154.T80249-100000@kwiatek.eu.org>; from kwiatek@tpi.pl on Fri, Jul 12, 2002 at 06:15:07PM %2B0200
References:  <20020712181154.T80249-100000@kwiatek.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 12, 2002 at 06:15:07PM +0200, Andrzej Kwiatkowski wrote:
> When i try to compile Openoffice 1.0
> my instalation stops when compiling port jdk13
> My output looks like:
> 
> g++ -Wall -Wno-unused -Wconversion  -c -I/usr/local/include -O
> -D_GNU_SOURCE -DXP_UNIX  -DVERSION="\"1.3.1-p6-kwiatek-020712-17:22\""
> -DDATE="\"Jul-12-2002\"" -DARCH="\"i386\"" -DRAPTOR_API
> -DNEW_STREAMING_API -I../../oji-plugin/include/solaris/navig4/nspr
> -I../../oji-plugin/include/solaris/navig4/xpcom
> -I../../oji-plugin/include/solaris/navig4/caps
> -I../../oji-plugin/include/solaris/navig4/js
> -I../../oji-plugin/include/solaris/navig4/raptor
> -I../../tmp/bsd/i386/CClassHeaders
> -I../../oji-plugin/include/solaris/navig4/oji
> -I../../oji-plugin/include/solaris/navig4/plugin
> -I../../oji-plugin/src/motif/common -I../../oji-plugin/src/motif/navig4
> -I/usr/X11R6/include -I../../oji-plugin/src/motif/badapter
> -I../../../../src/share/javavm/export
> -I../../../../src/solaris/javavm/export -I/usr/X11R6/include  -o
> ../../tmp/bsd/i386/GetFactory.o
> ../../oji-plugin/src/motif/common/GetFactory.cpp
> In file included from
> ../../oji-plugin/include/solaris/navig4/oji/nsIJVMPlugin.h:34,
>                  from
> ../../oji-plugin/src/motif/common/JavaPluginFactory.h:34,
>                  from ../../oji-plugin/src/motif/common/GetFactory.cpp:55:
> /usr/local/include/jni.h:17:31: gcj/libgcj-config.h: No such file or
> directory

This is your problem.  The ports version of gcc31 is obviously built with
Java support via gcj.  Its got its own jni.h which is conflicting with
that included in the JDK.

> ../../oji-plugin/src/motif/common/GetFactory.cpp: In function `nsresult
>    JPI_NSGetFactory(nsISupports*, const nsCID&, const char*, const char*,
>    nsIFactory**)':
> ../../oji-plugin/src/motif/common/GetFactory.cpp:156: warning: cast from
>    pointer to integer of different size
> ../../oji-plugin/src/motif/common/GetFactory.cpp:156: warning: cast to
> pointer
>    from integer of different size
> gmake[1]: *** [../../tmp/bsd/i386/GetFactory.o] Error 1
> gmake[1]: Leaving directory
> `/home/system/ports/java/jdk13/work/j2sdk1.3.1/ext/plugin/build/solaris'
> gmake: *** [plugin-all] Error 1
> *** Error code 2A
> 
> My gcc is 3.1 installed from ports:
> 
> Reading specs from
> /usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.1.1/specs
> Configured with: ./..//gcc-20020701/configure --disable-nls --with-gnu-as
> --with-gnu-ld
> --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd5.0/3.1.1/include/g++
> --disable-libgcj --disable-shared --prefix=/usr/local
> i386-portbld-freebsd5.0
> Thread model: posix
> gcc version 3.1.1 20020701 (prerelease) [FreeBSD]
> 
> Have got any idea ??

See above.  Also note that I'm not sure how well things are testing
building with gcc3.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020715120309.B33740>