Hi, I am getting the following error when building openjdk 7.0 on ubuntu 11.10 But I already have the package libasound2-dev installed.
Please tell me what am I missing? Thank you. PLATFORM_API_LinuxOS_ALSA_CommonUtils.c:(.text+0x32): undefined reference to `snd_lib_error_set_handler' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_GetFormats': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x1fd): undefined reference to `snd_pcm_format_mask_malloc' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x20a): undefined reference to `snd_pcm_close' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x225): undefined reference to `snd_pcm_hw_params_malloc' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x236): undefined reference to `snd_pcm_hw_params_get_format_mask' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x246): undefined reference to `snd_pcm_format_mask_free' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x259): undefined reference to `snd_pcm_hw_params_any' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x26a): undefined reference to `snd_pcm_hw_params_get_format_mask' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x277): undefined reference to `snd_pcm_hw_params_get_channels_min' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x288): undefined reference to `snd_pcm_hw_params_get_channels_max' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x2cf): undefined reference to `snd_pcm_format_mask_test' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x45d): undefined reference to `snd_pcm_hw_params_free' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `setStartThresholdNoCommit': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x48c): undefined reference to `snd_pcm_sw_params_set_start_threshold' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `setStartThreshold': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x4bf): undefined reference to `snd_pcm_sw_params' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `setHWParams': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x518): undefined reference to `snd_pcm_hw_params_any' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x531): undefined reference to `snd_pcm_hw_params_set_access' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x544): undefined reference to `snd_pcm_hw_params_set_format' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x557): undefined reference to `snd_pcm_hw_params_set_channels' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x58a): undefined reference to `snd_pcm_hw_params_set_rate_near' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x5dc): undefined reference to `snd_pcm_hw_params_set_buffer_size_near' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x60b): undefined reference to `snd_pcm_hw_params_set_period_time_near' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x61b): undefined reference to `snd_pcm_hw_params' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x647): undefined reference to `snd_pcm_hw_params_set_periods_near' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `setSWParams': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x67e): undefined reference to `snd_pcm_sw_params_current' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x6b4): undefined reference to `snd_pcm_sw_params_set_avail_min' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x6c4): undefined reference to `snd_pcm_sw_params' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Start': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x6f3): undefined reference to `snd_pcm_nonblock' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x708): undefined reference to `snd_pcm_state' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x71f): undefined reference to `snd_pcm_start' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x72c): undefined reference to `snd_pcm_nonblock' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x734): undefined reference to `snd_pcm_state' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x774): undefined reference to `snd_pcm_prepare' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x786): undefined reference to `snd_pcm_pause' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x794): undefined reference to `snd_pcm_resume' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Stop': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x7b0): undefined reference to `snd_pcm_nonblock' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x7c7): undefined reference to `snd_pcm_pause' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x7d7): undefined reference to `snd_pcm_nonblock' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Close': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x80a): undefined reference to `snd_pcm_close' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x818): undefined reference to `snd_pcm_hw_params_free' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x826): undefined reference to `snd_pcm_sw_params_free' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x834): undefined reference to `snd_pcm_status_free' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Open': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x906): undefined reference to `snd_pcm_nonblock' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x90f): undefined reference to `snd_pcm_hw_params_malloc' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x978): undefined reference to `snd_pcm_hw_params_get_period_size' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x98c): undefined reference to `snd_pcm_hw_params_get_periods' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x999): undefined reference to `snd_pcm_hw_params_get_buffer_size' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x9b4): undefined reference to `snd_pcm_sw_params_malloc' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x9d4): undefined reference to `snd_pcm_prepare' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x9e5): undefined reference to `snd_pcm_status_malloc' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0x9fa): undefined reference to `snd_pcm_nonblock' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `xrun_recovery': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xa44): undefined reference to `snd_pcm_prepare' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xa5c): undefined reference to `snd_pcm_resume' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Write': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xac3): undefined reference to `snd_pcm_writei' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Read': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xb6a): undefined reference to `snd_pcm_readi' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_StillDraining': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xbd8): undefined reference to `snd_pcm_state' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_Flush': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xc17): undefined reference to `snd_pcm_drop' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_GetAvailable': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xc60): undefined reference to `snd_pcm_state' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xc83): undefined reference to `snd_pcm_avail_update' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCM.o: In function `DAUDIO_GetBytePosition': PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xcf1): undefined reference to `snd_pcm_state' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xd1f): undefined reference to `snd_pcm_status' PLATFORM_API_LinuxOS_ALSA_PCM.c:(.text+0xd2c): undefined reference to `snd_pcm_status_get_avail' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCMUtils.o: In function `deviceInfoIterator.part.0': PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0xdb): undefined reference to `snd_ctl_card_info_get_id' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x131): undefined reference to `snd_ctl_card_info_get_name' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x17a): undefined reference to `snd_pcm_info_get_id' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x1c3): undefined reference to `snd_pcm_info_get_name' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x20c): undefined reference to `snd_pcm_info_get_subdevices_count' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x224): undefined reference to `snd_pcm_info_get_id' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x234): undefined reference to `snd_pcm_info_get_name' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCMUtils.o: In function `iteratePCMDevices': PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x2ff): undefined reference to `snd_pcm_info_malloc' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x308): undefined reference to `snd_ctl_card_info_malloc' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x31f): undefined reference to `snd_pcm_open' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x33c): undefined reference to `snd_pcm_info' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x348): undefined reference to `snd_pcm_close' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x35d): undefined reference to `snd_pcm_info_get_card' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x395): undefined reference to `snd_ctl_open' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x3a6): undefined reference to `snd_ctl_card_info' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x3b6): undefined reference to `snd_ctl_close' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x3f5): undefined reference to `snd_card_next' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x438): undefined reference to `snd_ctl_open' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x449): undefined reference to `snd_ctl_card_info' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x469): undefined reference to `snd_ctl_pcm_next_device' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x47d): undefined reference to `snd_pcm_info_set_device' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x488): undefined reference to `snd_pcm_info_set_subdevice' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x493): undefined reference to `snd_pcm_info_set_stream' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x4a0): undefined reference to `snd_ctl_pcm_info' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x512): undefined reference to `snd_ctl_close' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x52a): undefined reference to `snd_pcm_info_set_stream' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x537): undefined reference to `snd_ctl_pcm_info' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x55d): undefined reference to `snd_ctl_card_info_free' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x566): undefined reference to `snd_pcm_info_free' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x595): undefined reference to `snd_pcm_info_get_subdevices_count' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x5b7): undefined reference to `snd_pcm_open' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCMUtils.o: In function `openPCMfromDeviceID': PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x66c): undefined reference to `snd_pcm_open' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCMUtils.o: In function `getFormatFromAlsaFormat': PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x71f): undefined reference to `snd_pcm_format_physical_width' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x736): undefined reference to `snd_pcm_format_width' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x74b): undefined reference to `snd_pcm_format_signed' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x75d): undefined reference to `snd_pcm_format_big_endian' PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x779): undefined reference to `snd_pcm_format_linear' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_PCMUtils.o: In function `getAlsaFormatFromFormat': PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:(.text+0x855): undefined reference to `snd_pcm_build_linear_format' /home/scheung/src/jdk7/build/linux-amd64/tmp/sun/javax.sound/jsoundalsa/obj64/PLATFORM_API_LinuxOS_ALSA_MidiIn.o: In function `MIDI_IN_GetMessage': PLATFORM_API_LinuxOS_ALSA_MidiIn.c:(.text+0x125): undefined reference to `snd_rawmidi_read' PLATFORM_API_LinuxOS_ALSA_MidiIn.c:(.text+0x13b): undefined reference to `snd_midi_event_encode_byte'