Skip to contentSkip to conversation

: alsa-driver 1.0.10rc2 fails to compile with kernel suse-2.4.21

ALSA - driver 0001480 [email protected] 1 participant 1 message Oct 20, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been REOPENED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1480>
======================================================================

Reported By:                roadrunner
Assigned To:                perex
======================================================================
Project:                    ALSA - driver
Issue ID:                   1480
Category:                   0_compilation problem_!!!
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Distribution:               SuSE Linux
Kernel Version:             Linux version 2.4.21-297-default ([email protected])
(gcc version 3.3.1 (SuSE Linux)) #1 Sat Jul 23 07:47:39 UTC 2005
======================================================================
Date Submitted:             10-18-2005 00:20 CEST
Last Modified:              10-20-2005 10:43 CEST

======================================================================
Summary: alsa-driver 1.0.10rc2 fails to compile with kernel
suse-2.4.21
Description:
Compiling fails:

command:
./cvscompile --with-cards=ca0106 --with-debug=basic

result:
[...]
make[1]: Entering directory `/home/erik/archiv/alsa-driver-1.0.10rc2/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/home/erik/archiv/alsa-driver-1.0.10rc2/include -I/lib/modules/2.4.21-297-default/build/include -O2 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DMODVERSIONS -include /lib/modules/2.4.21-297-default/build/include/linux/modversions.h -DEXPORT_SYMTAB -c memalloc.c
In file included from memalloc.inc:13,
from memalloc.c:1:
/home/erik/archiv/alsa-driver-1.0.10rc2/include/adriver.h:667:5: missing binary operator before token "(" /home/erik/archiv/alsa-driver-1.0.10rc2/include/adriver.h:688:5: missing binary operator before token "("
make[1]: *** [memalloc.o] Error 1
make[1]: Leaving directory `/home/erik/archiv/alsa-driver-1.0.10rc2/acore'
make: *** [compile] Error 1

compiler: gcc-3.3.6

======================================================================

----------------------------------------------------------------------
tiwai - 10-18-05 17:25
----------------------------------------------------------------------
A known problem. Already fixed on CVS.

----------------------------------------------------------------------
roadrunner - 10-20-05 10:43
----------------------------------------------------------------------
Bug still exists in current CVS. I think it something with the 'HZ' preprocessor macro. In my kernel it is defined like this:

include/linux/hz.h:
static inline unsigned long get_hz(void)
{

#ifdef CONFIG_DEBUG_HZ
	if (unlikely(!__HZ)) {
		__label__ here;
		printk("early HZ: %p\n", &&here);
	here:
		init_HZ(USER_HZ);
	}
#endif /* CONFIG_DEBUG_HZ */
	return __HZ;
}

#define HZ get_hz()

and here is the output of './cvscompile --with-cards=ca0106 --with-debug=basic'
run on the current cvs version:
[...]
gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/home/erik/archiv/alsa-cvs/alsa-driver/include -I/lib/modules/2.4.21-297-default/build/include -O2 -DLINUX -DALSA_BUILD -nostdinc -iwithprefix include -I/home/erik/archiv/alsa-cvs/alsa-driver/alsa-kernel/core/oss -fno-omit-frame-pointer mixer_oss.c pcm_oss.c pcm_plugin.c io.c copy.c linear.c mulaw.c route.c rate.c > .depend
In Datei, eingefügt von /home/erik/archiv/alsa-cvs/alsa-driver/include/sound/driver.h:42,

                    von mixer_oss.c:22:

/home/erik/archiv/alsa-cvs/alsa-driver/include/adriver.h:670:5: fehlender binärer Operator vor Token &#187;(&#171; /home/erik/archiv/alsa-cvs/alsa-driver/include/adriver.h:691:5: fehlender binärer Operator vor Token &#187;(&#171;
In Datei, eingefügt von /home/erik/archiv/alsa-cvs/alsa-driver/include/sound/driver.h:42,

                    von pcm_oss.c:29:

[...]

Issue History
Date Modified Username Field Change
======================================================================

10-18-05 00:20 roadrunner     New Issue                                    
10-18-05 00:20 roadrunner     Distribution              => SuSE Linux      
10-18-05 00:20 roadrunner     Kernel Version            => Linux version
2.4.21-297-default ([email protected]) (gcc version 3.3.1 (SuSE Linux)) #1 Sat
Jul 23 07:47:39 UTC 2005
10-18-05 17:25 tiwai          Status                   assigned => resolved
10-18-05 17:25 tiwai          Resolution               open => fixed       
10-18-05 17:25 tiwai          Note Added: 0006490                          
10-20-05 10:43 roadrunner     Status                   resolved => feedback
10-20-05 10:43 roadrunner     Resolution               fixed => reopened   
10-20-05 10:43 roadrunner     Note Added: 0006500                          

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl