: Compilation hangs on hda_codec.c and ak4114.c
The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1160>
======================================================================
Reported By: Henne Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 1160 Category: 0_compilation problem_!!! Reproducibility: always Severity: block Priority: normal Status: resolved Distribution: Aurox 10.0 Kernel Version: 2.6.7-aurox Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 06-06-2005 12:02 CEST Last Modified: 06-28-2005 11:28 CEST
======================================================================
Summary: Compilation hangs on hda_codec.c and ak4114.c
Description:
I tried to compile the driver package with cvscompile, and it hung at:alsa-kernel/i2c/other/ak4114.c alsa-kernel/pci/hda/hda_codec.c
with the message, that the macro create_workqueue needs 2 arguments, not one.
I browsed the code and found out, that that macro is defined for kernels lower than 2.6 in the alsa-driver, but I have a greater one. So the macro wasn't defined and another marco from the kernel source was taken, which needs 2 arguments.
I've added a zero as a second arg and the compilation worked, but that imho couldn't be the right solution.
======================================================================
----------------------------------------------------------------------
Henne - 06-14-05 11:49
----------------------------------------------------------------------
Aye, I found the Problem!
The Aurox 10.0 has some changes from the original 2.6 kernels.
In the "old" 2.6 kernels(<2.6.6) create_workqueue was a function with one argument. The create_workqueue macro (1 arg) came to the kernel in 2.6.6, but it calls the __create_workqueue function with fitting args. The Aurox-2.6.7-10.0 kernel added one argument. Look! :
/* Original Kernel Headers *>=2.6.6/
extern struct workqueue_struct *__create_workqueue(const char *name,
int singlethread);
#define create_workqueue(name) __create_workqueue((name), 0)
/* Aurox Header Files */
extern struct workqueue_struct *__create_workqueue(const char *name,
int singlethread, unsigned long freezer_flag);
#define create_workqueue(name, flags) __create_workqueue((name), 0, flags)
I think this is not your prob, the distri broke the compatibility.
This can be closed, but should be mentioned in README.
----------------------------------------------------------------------
perex - 06-28-05 11:28
----------------------------------------------------------------------
I added detection for modified macro to configure.in. The code is in CVS (and will be in next release).
Issue History
Date Modified Username Field Change
======================================================================
06-06-05 12:02 Henne New Issue 06-06-05 12:02 Henne Distribution => Aurox 10.0 06-06-05 12:02 Henne Kernel Version => 2.6.7-aurox 06-08-05 15:10 tiwai Note Added: 0004931 06-09-05 11:19 Henne Note Added: 0004979 06-09-05 11:39 Henne Note Edited: 0004979 06-09-05 12:04 Henne Note Edited: 0004979 06-09-05 12:21 Henne Note Edited: 0004979 06-14-05 11:49 Henne Note Edited: 0004979 06-28-05 11:28 perex Status assigned => resolved 06-28-05 11:28 perex Resolution open => fixed 06-28-05 11:28 perex Note Added: 0005295
======================================================================
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click