Skip to contentSkip to conversation

2.5.13 sound compile error

DISCUSSION A Guy Called Tyketto 3 participants 3 messages May 3, 2002

lore
Share & tools
lore
#0 lore raw

Got this, while running make modules:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h -DKBUILD_BASENAME=isadma -c -o isadma.o isadma.c
gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h -DKBUILD_BASENAME=memory -c -o memory.o memory.c
gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h -DKBUILD_BASENAME=info -c -o info.o info.c
gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h -DKBUILD_BASENAME=control -c -o control.o control.c
gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h -DKBUILD_BASENAME=misc -c -o misc.o misc.c
misc.c: In function `snd_printd_Rf40b198a':
misc.c:93: `file' undeclared (first use in this function) misc.c:93: (Each undeclared identifier is reported only once misc.c:93: for each function it appears in.)
misc.c:93: `line' undeclared (first use in this function) make[2]: *** [misc.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.10/sound/core' make[1]: *** [_modsubdir_core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.10/sound'
make: *** [_mod_sound] Error 2

Revelant parts of .config below.

CONFIG_SOUND=m

#
# Open Sound System
#

CONFIG_SOUND_PRIME=m
CONFIG_SOUND_OSS=m
CONFIG_SOUND_VMIDI=m
CONFIG_SOUND_SB=m
CONFIG_SOUND_YM3812=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=m
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_MEMORY=y
CONFIG_SND_DEBUG_DETECT=y
CONFIG_SND_MPU401=m
CONFIG_SND_ENS1371=m
CONFIG_SND_FM801=m

                                                        BL.
Signature · 4 lines
Brad Littlejohn                         | Email:        [email protected]
Unix Systems Administrator,             |           [email protected]
Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF
#1 lore raw
Quoted 30 lines · A Guy Called Tyketto

Got this, while running make modules:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes

(quoted diff) +0 -4
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h  
-DKBUILD_BASENAME=isadma  -c -o isadma.o isadma.c

gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes

(quoted diff) +0 -4
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h  
-DKBUILD_BASENAME=memory  -c -o memory.o memory.c

gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes

(quoted diff) +0 -4
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h  
-DKBUILD_BASENAME=info  -c -o info.o info.c

gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes

(quoted diff) +0 -4
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h  
-DKBUILD_BASENAME=control  -c -o control.o control.c

gcc -D__KERNEL__ -I/usr/src/linux-2.5.10/include -Wall -Wstrict-prototypes

(quoted diff) +0 -4
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.5.10/include/linux/modversions.h  
-DKBUILD_BASENAME=misc  -c -o misc.o misc.c

misc.c: In function `snd_printd_Rf40b198a':
misc.c:93: `file' undeclared (first use in this function)

Quoted 8 lines

misc.c:93: (Each undeclared identifier is reported only once misc.c:93: for each function it appears in.) misc.c:93: `line' undeclared (first use in this function) make[2]: *** [misc.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.5.10/sound/core' make[1]: *** [_modsubdir_core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.10/sound'
make: *** [_mod_sound] Error 2

This patch fixes the problem:

misc.c +2 -2
@@ -96,10 +96,10 @@
 	if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && format[2] == '>') {
 		char tmp[] = "<0>";
 		tmp[1] = format[1];
-		printk("%sALSA %s:%d: ", tmp, file, line);
+		printk("%sALSA: ", tmp);
 		format += 3;
 	} else {
-		printk(KERN_DEBUG "ALSA %s:%d: ", file, line);
+		printk(KERN_DEBUG "ALSA: ");
 	}
 	va_start(args, format);
 	vsnprintf(tmpbuf, sizeof(tmpbuf)-1, format, args);

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

#2 lore raw
Quoted 5 lines · Jaroslav Kysela

This patch fixes the problem:

misc.c line 103

Quoted 10 lines
misc.c +2 -2
@@ -96,10 +96,10 @@
 	if (format[0] == '<' && format[1] >= '0' && format[1] <= '9' && format[2] == '>') {
 		char tmp[] = "<0>";
 		tmp[1] = format[1];
-		printk("%sALSA %s:%d: ", tmp, file, line);
+		printk("%sALSA: ", tmp);
 		format += 3;
 	} else {
-		printk(KERN_DEBUG "ALSA %s:%d: ", file, line);
+		printk(KERN_DEBUG "ALSA: ");
 	}

woaaahh!! 8)

Signature · 1 line
http://function.linuxpower.ca