: Alsa-driver doesn't compile on x86_64
The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=458>
======================================================================
Reported By: aldg Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 458 Category: 0_compilation problem_!!! Reproducibility: always Severity: block Priority: normal Status: resolved Distribution: Mandrake Kernel Version: 2.4.27 Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 08-21-2004 12:17 CEST Last Modified: 11-10-2004 13:59 CET
======================================================================
Summary: Alsa-driver doesn't compile on x86_64
Description:
make -C ioctl32 modules
make[2]: Entering directory `/mnt/data/packages/alsa/alsa-driver-1.0.6a/acore/ioctl32'
gcc -D__KERNEL__ -DMODULE=1 -I/mnt/data/packages/alsa/alsa-driver-1.0.6a/include -I/lib/modules/2.4.27/build/include -O2 -mno-red-zone -mcmodel=kernel -fno-reorder-blocks -fno-strength-reduce -finline-limit=2000 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix
include -DKBUILD_BASENAME=ioctl32 -c -o ioctl32.o ioctl32.c
In file included from ioctl32.c:2:../../alsa-kernel/core/ioctl32/ioctl32.c: In function `_snd_ioctl32_ctl_elem_list':../../alsa-kernel/core/ioctl32/ioctl32.c:119: warning: implicit declaration of function `compat_ptr' ../../alsa-kernel/core/ioctl32/ioctl32.c:119: warning: assignment makes pointer from integer without a cast
In file included from ioctl32.c:2:../../alsa-kernel/core/ioctl32/ioctl32.c: In function `_snd_ioctl32_ctl_elem_value':../../alsa-kernel/core/ioctl32/ioctl32.c:302: warning: assignment makes pointer from integer without a cast
gcc -D__KERNEL__ -DMODULE=1 -I/mnt/data/packages/alsa/alsa-driver-1.0.6a/include -I/lib/modules/2.4.27/build/include -O2 -mno-red-zone -mcmodel=kernel -fno-reorder-blocks -fno-strength-reduce -finline-limit=2000 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix
include -DKBUILD_BASENAME=pcm32 -c -o pcm32.o pcm32.c
In file included from /mnt/data/packages/alsa/alsa-driver-1.0.6a/include/linux/compat.h:1,
from ../../alsa-kernel/core/ioctl32/ioctl32.h:29,
from ../../alsa-kernel/core/ioctl32/pcm32.c:27,
from pcm32.c:2:/mnt/data/packages/alsa/alsa-driver-1.0.6a/include/compat_64.h:5: error:
redefinition of `compat_time_t' /mnt/data/packages/alsa/alsa-driver-1.0.6a/include/compat_64.h:5: error:
`compat_time_t' previously declared here /mnt/data/packages/alsa/alsa-driver-1.0.6a/include/compat_64.h:7: error:
redefinition of `struct compat_timespec' /mnt/data/packages/alsa/alsa-driver-1.0.6a/include/compat_64.h:12: error:
redefinition of `struct compat_timeval'
In file included from pcm32.c:2:../../alsa-kernel/core/ioctl32/pcm32.c: In function `_snd_ioctl32_xferi':../../alsa-kernel/core/ioctl32/pcm32.c:196: warning: implicit declaration of function `compat_ptr' ../../alsa-kernel/core/ioctl32/pcm32.c:196: warning: assignment makes pointer from integer without a cast
In file included from pcm32.c:2:../../alsa-kernel/core/ioctl32/pcm32.c: In function `_snd_ioctl32_xfern':../../alsa-kernel/core/ioctl32/pcm32.c:260: warning: assignment makes pointer from integer without a cast ../../alsa-kernel/core/ioctl32/pcm32.c:268: warning: assignment makes pointer from integer without a cast
make[2]: *** [pcm32.o] Error 1
make[2]: Leaving directory `/mnt/data/packages/alsa/alsa-driver-1.0.6a/acore/ioctl32' make[1]: *** [_modsubdir_ioctl32] Error 2
make[1]: Leaving directory `/mnt/data/packages/alsa/alsa-driver-1.0.6a/acore'
make: *** [compile] Error 1
======================================================================
----------------------------------------------------------------------
perex - 10-22-04 16:47
----------------------------------------------------------------------
Can you try with 1.0.7rc2?
----------------------------------------------------------------------
aldg - 10-23-04 18:51
----------------------------------------------------------------------
1.0.7rc2 now compiles and runs perfectly with both, 2.4.27 and 2.6.8.1, on amd64-Mandrake. I tested via82xx with OSS and AC3.
Thank you!
Issue History
Date Modified Username Field Change
======================================================================
08-21-04 12:17 aldg New Issue 08-21-04 12:17 aldg Distribution => Mandrake 08-21-04 12:17 aldg Kernel Version => 2.4.27 10-22-04 16:47 perex Note Added: 0002248 10-22-04 16:47 perex Status assigned => feedback 10-23-04 18:51 aldg Note Added: 0002255 11-10-04 13:59 tiwai Status feedback => resolved 11-10-04 13:59 tiwai Resolution open => fixed
======================================================================
-------------------------------------------------------
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