2002-07-22 21:27:03

by Diego Calleja

[permalink] [raw]
Subject: Compile error 2.5.27: [ad1848_lib.o] Error 1

make[2]: Entering directory `/usr/src/unstable/sound/isa'
make[3]: Entering directory `/usr/src/unstable/sound/isa/ad1816a'
make[3]: Leaving directory `/usr/src/unstable/sound/isa/ad1816a'
make[3]: Entering directory `/usr/src/unstable/sound/isa/ad1848'
gcc -Wp,-MD,./.ad1848_lib.o.d -D__KERNEL__ -I/usr/src/unstable/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i586 -nostdinc -iwithprefix include -DMODULE
-DKBUILD_BASENAME=ad1848_lib -DEXPORT_SYMTAB -c -o ad1848_lib.o
ad1848_lib.c ad1848_lib.c:1171: parse error before `alsa_ad1848_init'
ad1848_lib.c:1172: warning: return-type defaults to `int'
ad1848_lib.c:1176: parse error before `alsa_ad1848_exit'
ad1848_lib.c:1177: warning: return-type defaults to `int'
ad1848_lib.c: In function `alsa_ad1848_exit':
ad1848_lib.c:1178: warning: control reaches end of non-void function
ad1848_lib.c: At top level:
ad1848_lib.c:1181: parse error before `module_exit'
ad1848_lib.c:1182: parse error at end of input
make[3]: *** [ad1848_lib.o] Error 1
make[3]: Leaving directory `/usr/src/unstable/sound/isa/ad1848'
make[2]: *** [ad1848] Error 2
make[2]: Leaving directory `/usr/src/unstable/sound/isa'
make[1]: *** [isa] Error 2
make[1]: Leaving directory `/usr/src/unstable/sound'
make: *** [sound] Error 2
root@diego:/usr/src/unstable#


2002-07-22 22:57:27

by Erlend Aasland

[permalink] [raw]
Subject: Re: Compile error 2.5.27: [ad1848_lib.o] Error 1

Hi,

Does this patch make it compile?

--- clean/sound/isa/ad1848/ad1848_lib.c 2002-07-06 01:42:22.000000000 +0200
+++ dirty/sound/isa/ad1848/ad1848_lib.c 2002-07-10 04:50:20.000000000 +0200
@@ -24,6 +24,7 @@
#include <asm/io.h>
#include <asm/dma.h>
#include <linux/delay.h>
+#include <linux/init.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <sound/core.h>


Regards,
Erlend Aasland

On Mon, Jul 22, 2002 at 11:30:21PM +0200, Diego Calleja wrote:
> make[2]: Entering directory `/usr/src/unstable/sound/isa'
> make[3]: Entering directory `/usr/src/unstable/sound/isa/ad1816a'
> make[3]: Leaving directory `/usr/src/unstable/sound/isa/ad1816a'
> make[3]: Entering directory `/usr/src/unstable/sound/isa/ad1848'
> gcc -Wp,-MD,./.ad1848_lib.o.d -D__KERNEL__ -I/usr/src/unstable/include
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=i586 -nostdinc -iwithprefix include -DMODULE
> -DKBUILD_BASENAME=ad1848_lib -DEXPORT_SYMTAB -c -o ad1848_lib.o
> ad1848_lib.c ad1848_lib.c:1171: parse error before `alsa_ad1848_init'
> ad1848_lib.c:1172: warning: return-type defaults to `int'
> ad1848_lib.c:1176: parse error before `alsa_ad1848_exit'
> ad1848_lib.c:1177: warning: return-type defaults to `int'
> ad1848_lib.c: In function `alsa_ad1848_exit':
> ad1848_lib.c:1178: warning: control reaches end of non-void function
> ad1848_lib.c: At top level:
> ad1848_lib.c:1181: parse error before `module_exit'
> ad1848_lib.c:1182: parse error at end of input
> make[3]: *** [ad1848_lib.o] Error 1
> make[3]: Leaving directory `/usr/src/unstable/sound/isa/ad1848'
> make[2]: *** [ad1848] Error 2
> make[2]: Leaving directory `/usr/src/unstable/sound/isa'
> make[1]: *** [isa] Error 2
> make[1]: Leaving directory `/usr/src/unstable/sound'
> make: *** [sound] Error 2
> root@diego:/usr/src/unstable#
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

2002-07-22 23:12:23

by Diego Calleja

[permalink] [raw]
Subject: Re: Compile error 2.5.27: [ad1848_lib.o] Error 1

On Tue, 23 Jul 2002 01:00:30 +0200
Erlend Aasland <[email protected]> escribi?:

> Hi,
>
> Does this patch make it compile?

Yes it does ;)


>
> --- clean/sound/isa/ad1848/ad1848_lib.c 2002-07-06 01:42:22.000000000 +0200
> +++ dirty/sound/isa/ad1848/ad1848_lib.c 2002-07-10 04:50:20.000000000 +0200
> @@ -24,6 +24,7 @@
> #include <asm/io.h>
> #include <asm/dma.h>
> #include <linux/delay.h>
> +#include <linux/init.h>
> #include <linux/slab.h>
> #include <linux/ioport.h>
> #include <sound/core.h>
>
>
> Regards,
> Erlend Aasland

2002-07-22 23:21:41

by Jose Luis Domingo Lopez

[permalink] [raw]
Subject: Re: Compile error 2.5.27: [ad1848_lib.o] Error 1

On Monday, 22 July 2002, at 23:30:21 +0200,
Diego Calleja wrote:

> ad1848_lib.c: At top level:
> ad1848_lib.c:1181: parse error before `module_exit'
> ad1848_lib.c:1182: parse error at end of input
> make[3]: *** [ad1848_lib.o] Error 1
> make[3]: Leaving directory `/usr/src/unstable/sound/isa/ad1848'
> make[2]: *** [ad1848] Error 2
> make[2]: Leaving directory `/usr/src/unstable/sound/isa'
> make[1]: *** [isa] Error 2
> make[1]: Leaving directory `/usr/src/unstable/sound'
> make: *** [sound] Error 2
> root@diego:/usr/src/unstable#
>
WORKAROUND/PATCH: see lkml "Subject: PATCH: 2.5.27 Fix dump non compile in ad1848 audio"

--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1)