Once this is pushed into jdk8, please consider backporting it to jdk7u - I'm seeing the same issue with jdk7u-dev on Ubuntu 11.10.
cheers, dalibor topic On 11/10/11 11:25 AM, Alex Menkov wrote: > Looks good > > regards > Alex > > On 10.11.2011 09:24, mark.reinh...@oracle.com wrote: >> Some Linux distros have started to adopt a "multiarch" filesystem layout for >> shared libraries in order to support the installation of packages for >> multiple >> hardware architectures on a single system. For more information see, e.g., >> http://wiki.debian.org/Multiarch. >> >> In Ubuntu 11.10 the ALSA shared library, libasound2, was converted to the >> multiarch format and so its files moved from their old location, /usr/lib, >> to /usr/lib/${ARCH_TRIPLET}. This caused the JDK build to fail when linking >> the Java sound library. The root cause appears to be that gcc only tries to >> resolve undefined symbols against a multiarch library if the library is named >> on the command line after the object files containing those symbols. >> >> The fix is simply to move -lasound to the end of the gcc invocation. >> >> I'll push this into JDK 8. It would trivially backport to 7. >> >> Patch: >> >> --- a/make/javax/sound/jsoundalsa/Makefile >> +++ b/make/javax/sound/jsoundalsa/Makefile >> @@ -65,7 +65,7 @@ >> $(MIDIFILES_export) \ >> $(PORTFILES_export) >> >> -LDFLAGS += -lasound >> +EXTRA_LIBS += -lasound >> >> CPPFLAGS += \ >> -DUSE_DAUDIO=TRUE \ >> >> Thanks, >> - Mark -- Oracle <http://www.oracle.com> Dalibor Topic | Java F/OSS Ambassador Phone: +494023646738 <tel:+494023646738> | Mobile: +491772664192 <tel:+491772664192> Oracle Java Platform Group ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 München Registergericht: Amtsgericht München, HRA 95603 Geschäftsführer: Jürgen Kunz Komplementärin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher Green Oracle <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment