: memalloc.c:53 build error
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=605>
======================================================================
Reported By: Andrew Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 605 Category: 0_compilation problem_!!! Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: Kernel Version: ====================================================================== Date Submitted: 10-26-2004 12:37 CEST Last Modified: 10-27-2004 17:58 CEST
======================================================================
Summary: memalloc.c:53 build error
Description:
GCC 3.3.4 is in use.
./cvscomile for current CVS tree shows:
make[1]: Entering directory `/usr/src/linux-2.6.9-gentoo-r1'
CC [M] /wrk/cvs/alsa/alsa-driver/kbuild/../acore/memalloc.o
/wrk/cvs/alsa/alsa-driver/acore/memalloc.c:53: error: invalid lvalue in unary `&'
/wrk/cvs/alsa/alsa-driver/acore/memalloc.c:53: error: initializer element is not constant
/wrk/cvs/alsa/alsa-driver/acore/memalloc.c:53: error: (near initialization for `__param_arr_enable.num')
make[4]: *** [/wrk/cvs/alsa/alsa-driver/kbuild/../acore/memalloc.o] Error 1
======================================================================
----------------------------------------------------------------------
Clemens Ladisch - 10-27-04 17:43
----------------------------------------------------------------------
lee, your fix is just the reserve of the CVS change that broke things (i.e. it's the CVS as it was Friday).
There is no fix in CVS. The CVS change was made because of a change in the kernel that was made immediately after the release of 2.6.9.
2.6.9 and later kernels are incompatible (in this regard), and ALSA currently works _only_ with later kernels.
The alsa-driver package needs some compatibility code to make it work with older kernels again. I'll write something until tomorrow.
----------------------------------------------------------------------
lee - 10-27-04 17:58
----------------------------------------------------------------------
OK, thanks, I was seeing this problem before the CVS message so I just figured the CVS update was to fix this, looks like it actually introduces the problem.
Issue History
Date Modified Username Field Change
======================================================================
10-26-04 12:37 Andrew New Issue
10-27-04 15:58 Clemens LadischNote Added: 0002274
10-27-04 17:27 lee Note Added: 0002276
10-27-04 17:43 Clemens LadischNote Added: 0002277
10-27-04 17:58 lee Note Added: 0002278
======================================================================
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click