build with openjdk-src fails

56 views
Skip to first unread message

Gevik

unread,
May 2, 2013, 12:03:47 PM5/2/13
to av...@googlegroups.com
Hi,

I am trying to build Avian + open-jdk 7 but it fails. Here is what I do:

$ make clean
$ make platform=linux openjdk=/usr/java/jdk1.7.0_17/ openjdk-src=/home/gevik/Downloads/openjdk/jdk/src

ERROR:

compiling build/linux-x86_64-openjdk-src/openjdk/solaris/native/sun/nio/ch/DatagramChannelImpl-openjdk.o
build/linux-x86_64-openjdk-src/openjdk/DatagramChannelImpl.c:200: error: conflicting types for ‘Java_sun_nio_ch_DatagramChannelImpl_send0’
build/linux-x86_64-openjdk-src/openjdk/sun_nio_ch_DatagramChannelImpl.h:47: note: previous declaration of ‘Java_sun_nio_ch_DatagramChannelImpl_send0’ was here
make: *** [build/linux-x86_64-openjdk-src/openjdk/solaris/native/sun/nio/ch/DatagramChannelImpl-openjdk.o] Error 1

Any idea what I am doing wrong here?

Joel Dice

unread,
May 2, 2013, 12:29:41 PM5/2/13
to av...@googlegroups.com
On Thu, 2 May 2013, Gevik wrote:

> I am trying to build Avian + open-jdk 7 but it fails. Here is what I do:
> $ make clean
> $ make platform=linux openjdk=/usr/java/jdk1.7.0_17/
> openjdk-src=/home/gevik/Downloads/openjdk/jdk/src
>
> ERROR:
>
> compilingbuild/linux-x86_64-openjdk-src/openjdk/solaris/native/sun/nio/ch/DatagramCh
> annelImpl-openjdk.o
> build/linux-x86_64-openjdk-src/openjdk/DatagramChannelImpl.c:200: error:
> conflicting types for �Java_sun_nio_ch_DatagramChannelImpl_send0�
> build/linux-x86_64-openjdk-src/openjdk/sun_nio_ch_DatagramChannelImpl.h:47:
> note: previous declaration of �Java_sun_nio_ch_DatagramChannelImpl_send0�
> was here
> make: ***[build/linux-x86_64-openjdk-src/openjdk/solaris/native/sun/nio/ch/DatagramC
> hannelImpl-openjdk.o] Error 1
>
> Any idea what I am doing wrong here?

Are you sure the source code in /home/gevik/Downloads/openjdk/jdk/src
corresponds exactly with the binary code in /usr/java/jdk1.7.0_17/? The
best way to guarantee that is to build the source code itself and use the
resulting j2sdk-image for the openjdk option to make.

Gevik Babakhani

unread,
May 2, 2013, 12:39:04 PM5/2/13
to av...@googlegroups.com
Thank you I will do that :)
Reply all
Reply to author
Forward
0 new messages