From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001351]: The misc.c is reported to have incomplete type with thread_excited. Date: Fri, 23 Sep 2005 12:25:49 +0200 Message-ID: <6376f8cd6703976c536c3d706bebe59b@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 56E9F161 for ; Fri, 23 Sep 2005 12:25:51 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: lionhead Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 1351 Category: 0_compilation problem_!!! Reproducibility: always Severity: crash Priority: normal Status: feedback Distribution: the structure description of thread_excited in acore/misc.c caused failure during compilation. Kernel Version: linux-2.4.7-10 ====================================================================== Date Submitted: 08-21-2005 12:32 CEST Last Modified: 09-23-2005 12:25 CEST ====================================================================== Summary: The misc.c is reported to have incomplete type with thread_excited. Description: kernel :linux-2.4.7-10. When I compile the alsa drive on my redhat7.2, it always failed with result as below. results: ------------------------------------------------------------------------------ [/home/ws/sound/alsa-driver-1.0.9rc4a]$ make make[1]: Entering directory `/home/ws/sound/alsa-driver-1.0.9rc4a/acore' gcc -D__KERNEL__ -DMODULE=1 -I/home/ws/sound/alsa-driver-1.0.9rc4a/include -I/lib/modules/2.4.7-1 0/build/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes - fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdi nc -iwithprefix include -DMODVERSIONS -include /lib/modules/2.4.7-10/build/include/linux/modversio ns.h -DKBUILD_BASENAME=misc -c -o misc.o misc.c misc.c:289: field `thread_exited' has incomplete type <--------- misc.c: In function `snd_compat_destroy_workqueue_Raba0304c': misc.c:340: warning: implicit declaration of function `wait_for_completion_R02032293' misc.c: In function `snd_compat_create_workqueue_R6659e20e': misc.c:388: warning: implicit declaration of function `init_completion' ------------------------------------------------------------------------------- ====================================================================== ---------------------------------------------------------------------- croiset - 09-23-05 08:57 ---------------------------------------------------------------------- I also reproduce the problem with my configuration redhat 7.2 kernel 2.4.7 in the release 1.0.9. I test also the new release 1.0.10rc1 and the problem still exist also : misc.c:289: field `thread_exited' has incomplete type misc.c: In function `snd_compat_destroy_workqueue_Raba0304c': misc.c:340: warning: implicit declaration of function `wait_for_completion_R020 32293' misc.c: In function `snd_compat_create_workqueue_R6659e20e': misc.c:388: warning: implicit declaration of function `init_completion' make[1]: *** [misc.o] Erreur 1 ---------------------------------------------------------------------- croiset - 09-23-05 12:25 ---------------------------------------------------------------------- I solved the compilation problem by modifying this line in acore/misc.c Line 207 was : #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0) /* wait-for-completion handler emulation */ replaced by : #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0) /* wait-for-completion handler emulation */ Issue History Date Modified Username Field Change ====================================================================== 08-21-05 12:32 lionhead New Issue 08-21-05 12:32 lionhead File Added: misc.c 08-21-05 12:32 lionhead Distribution => the structure description of thread_excited in acore/misc.c caused failure during compilation. 08-21-05 12:32 lionhead Kernel Version => linux-2.4.7-10 08-22-05 12:21 perex Note Added: 0005891 08-22-05 12:31 perex Status assigned => feedback 08-22-05 12:31 perex Steps to Reproduce Updated 08-29-05 14:54 lionhead Issue Monitored: lionhead 09-23-05 08:57 croiset Note Added: 0006362 09-23-05 12:25 croiset Note Added: 0006366 ====================================================================== ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php