From: Takashi Iwai Subject: Re: namehint problem... Date: Tue, 03 Jul 2007 20:23:12 +0200 Message-ID: References: <468A7BB9.1040703@tse.gov.br> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id DEF312443E for ; Tue, 3 Jul 2007 20:23:17 +0200 (CEST) In-Reply-To: <468A7BB9.1040703@tse.gov.br> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Fausto Carvalho Marques SIlva Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 03 Jul 2007 13:39:21 -0300, Fausto Carvalho Marques SIlva wrote: > > Compiling alsa-lib-1.0.14rc4 with the above options: > > ./configure --disable-aload --disable-alisp --disable-instr > --disable-seq --disable-hwdep --disable-rawmidi --with-debug=no > --with-pcm-plugins=hw --with-ctl-plugins=hw > > > After the build of asound and a linking against a simple program: > > #include > #include > #include > > main (int argc, char *argv[]) > { > int i; > int err; > short buf[128]; > snd_pcm_t *playback_handle; > snd_pcm_hw_params_t *hw_params; > > if ((err = snd_pcm_open (&playback_handle, argv[1], > SND_PCM_STREAM_PLAYBACK, 0)) < 0) { > fprintf (stderr, "cannot open audio device %s (%s)\n", > argv[1], > snd_strerror (err)); > exit (1); > } > snd_pcm_close (playback_handle); > exit (0); > } > > > > gcc -o teste teste.c -I./include src/.libs/libasound.so.2.0.0 -ldl > src/.libs/libasound.so.2.0.0: undefined reference to > `snd_hwdep_info_get_name' > src/.libs/libasound.so.2.0.0: undefined reference to > `snd_rawmidi_info_get_name' > src/.libs/libasound.so.2.0.0: undefined reference to > `snd_rawmidi_info_sizeof' > src/.libs/libasound.so.2.0.0: undefined reference to > `snd_rawmidi_info_set_device' > src/.libs/libasound.so.2.0.0: undefined reference to > `snd_hwdep_info_set_device' > src/.libs/libasound.so.2.0.0: undefined reference to `snd_hwdep_info_sizeof' > src/.libs/libasound.so.2.0.0: undefined reference to > `snd_rawmidi_info_set_stream' > collect2: ld returned 1 exit status > > > > After some verification discoverd that the problem is on > src/control/namehint.c that references this functions but the configure > removed > rawmidi and hwdep. How can we resolve this problem? We need simply add ifdefs around the function calls there. I fixed on HG tree now. Thanks for reporting! Takashi