Bug 255984 - java/openjdk7 fails to build
Summary: java/openjdk7 fails to build
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 02:56 UTC by cory
Modified: 2021-05-19 03:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cory 2021-05-19 02:56:36 UTC
With the latest ports tree and FreeBSD version openjdk7 fails to build due to duplicate symbols:

ld: error: duplicate symbol: fp_g_free
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_g_free)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x170)

ld: error: duplicate symbol: fp_g_object_unref
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_g_object_unref)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x178)

ld: error: duplicate symbol: fp_g_signal_connect_data
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_g_signal_connect_data)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x538)

ld: error: duplicate symbol: fp_g_thread_init
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_g_thread_init)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x550)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_bits_per_sample
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_bits_per_sample)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x2A8)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_has_alpha
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_has_alpha)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x2A0)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_height
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_height)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x288)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_n_channels
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_n_channels)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x2B0)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_pixels
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_pixels)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x290)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_rowstride
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_rowstride)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x298)

ld: error: duplicate symbol: fp_gdk_pixbuf_get_width
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_get_width)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x280)

ld: error: duplicate symbol: fp_gdk_pixbuf_new_from_file
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_pixbuf_new_from_file)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x278)

ld: error: duplicate symbol: fp_gdk_threads_enter
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_threads_enter)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x560)

ld: error: duplicate symbol: fp_gdk_threads_init
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_threads_init)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x558)

ld: error: duplicate symbol: fp_gdk_threads_leave
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gdk_threads_leave)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x568)

ld: error: duplicate symbol: fp_gtk_check_version
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gtk_check_version)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x88)

ld: error: duplicate symbol: fp_gtk_file_chooser_dialog_new
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gtk_file_chooser_dialog_new)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x98)

ld: error: duplicate symbol: fp_gtk_file_chooser_get_current_folder
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gtk_file_chooser_get_current_folder)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0xE8)

ld: error: duplicate symbol: fp_gtk_file_chooser_get_filename
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gtk_file_chooser_get_filename)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0x90)

ld: error: duplicate symbol: fp_gtk_file_chooser_get_filenames
>>> defined at awt_UNIXToolkit.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/awt_UNIXToolkit.o:(fp_gtk_file_chooser_get_filenames)
>>> defined at gtk2_interface.c
>>>            /usr/ports/java/openjdk7/work/jdk7u-jdk7u261-b02.1/build/bsd-amd64/tmp/sun/sun.awt.X11/xawt/obj64/gtk2_interface.o:(.bss+0xF0)

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)