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.