All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: configure error with alsa-driver-0.9.7a
@ 2003-10-09  9:11 Paul Berry
  2003-10-09 10:22 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Berry @ 2003-10-09  9:11 UTC (permalink / raw)
  To: alsa-devel

Thank you Takashi,

With your advice I was able to run the configure script.
Now alas, make is giving me problems...
If it matters any this is an old 486 ISA (only) computer, (Dinosours still
roam some parts of the planet....) and no PCI stuff was compiled into the
kernel.

Thanks for any help,
Paul

Here is the tail end of  stdout:


<snip>-----------------------------------------------------

/lib/modules/2.2.20alsa/build/include/linux/pci.h:1518:20: warning: pasting
would not give a valid preprocessing token
memalloc.c: In function `preallocate_cards':
memalloc.c:827: `PCI_ANY_ID' undeclared (first use in this function)
memalloc.c:827: (Each undeclared identifier is reported only once
memalloc.c:827: for each function it appears in.)
memalloc.c:838: warning: implicit declaration of function `pci_set_dma_mask'
memalloc.c:846: warning: implicit declaration of function
`snd_dma_device_pci'
{standard input}: Assembler messages:
{standard input}:9: Warning: Ignoring changed section attributes for
.modinfo
make[1]: *** [memalloc.o] Error 1
make[1]: Leaving directory `/usr/local/src/alsa-driver-0.9.7a/acore'
make: *** [compile] Error 1
[root@FarNorth alsa-driver-0.9.7a]#


>At Wed, 8 Oct 2003 01:33:17 -0800,
>Paul Berry wrote:
>>
>> Hello kind alsa developers:
>>
>> I was attempting to upgrade the alsa-drivers in an old system,  Redhat
7.0
>> (upgraded to a custom compiled 2.2.20 kernel) that is presently using
>> alsa-driver-0.9.0rc6.
>> The system works fine, just wanted the latest drivers, but when I tried
to
>> upgrade to the 0.9.7a drivers the configure script stopped midway. I'm
>> puzzled as I've compiled this kernel using the same gcc version (2.96)
that
>> I am attempting to use on for the new drivers.
>
>then, $LINUXSRC/include/linux/compile.h wasn't regenerated by some
>reason.  you can remove that file (better rename to others to be
>sure), and retry configure again.
>
>
>Takashi




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: configure error with alsa-driver-0.9.7a
  2003-10-09  9:11 configure error with alsa-driver-0.9.7a Paul Berry
@ 2003-10-09 10:22 ` Takashi Iwai
  2003-10-10  9:54   ` Paul Berry
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2003-10-09 10:22 UTC (permalink / raw)
  To: Paul Berry; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

At Thu, 9 Oct 2003 01:11:49 -0800,
Paul Berry wrote:
> 
> Thank you Takashi,
> 
> With your advice I was able to run the configure script.
> Now alas, make is giving me problems...
> If it matters any this is an old 486 ISA (only) computer, (Dinosours still
> roam some parts of the planet....) and no PCI stuff was compiled into the
> kernel.

please try the patch attached below.  (it's already on cvs.)


ciao,

Takashi

[-- Attachment #2: memalloc-nopci.dif --]
[-- Type: application/octet-stream, Size: 633 bytes --]

Index: alsa-kernel/core/memalloc.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/core/memalloc.c,v
retrieving revision 1.16
diff -u -r1.16 memalloc.c
--- alsa-kernel/core/memalloc.c	8 Sep 2003 09:02:16 -0000	1.16
+++ alsa-kernel/core/memalloc.c	9 Oct 2003 10:19:42 -0000
@@ -783,6 +783,7 @@
  * allocation of buffers for pre-defined devices
  */
 
+#ifdef CONFIG_PCI
 /* FIXME: for pci only - other bus? */
 struct prealloc_dev {
 	unsigned short vendor;
@@ -854,6 +855,9 @@
 		}
 	}
 }
+#else
+#define preallocate_cards()	/* NOP */
+#endif
 
 
 #ifdef CONFIG_PROC_FS

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: configure error with alsa-driver-0.9.7a
  2003-10-09 10:22 ` Takashi Iwai
@ 2003-10-10  9:54   ` Paul Berry
  2003-10-10 15:23     ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Berry @ 2003-10-10  9:54 UTC (permalink / raw)
  To: alsa-devel

Thank you for the patch Takashi and here is what came of it.

I'm kinda green at this so this is what I did with the patch. I copied it to
the alsa-driver-0.9.7a/acore/ folder and ran:
patch -b --verbose memalloc.c <memalloc-nopci.dif

everything seemed to go fine so I restarted the make process and here is the
tail of what followed (the memalloc.o file was created as well):

<snip>----------------------------------------------------------------------
---------
/lib/modules/2.2.20alsa/build/include/linux/pci.h:1518:20: warning: pasting
would not give a valid preprocessing token
In file included from memory_wrapper.c:18:
pci_compat_22.c: In function `snd_pci_compat_match_device':
pci_compat_22.c:83: dereferencing pointer to incomplete type
pci_compat_22.c:83: dereferencing pointer to incomplete type
pci_compat_22.c:83: dereferencing pointer to incomplete type
pci_compat_22.c:84: dereferencing pointer to incomplete type
pci_compat_22.c:84: `PCI_ANY_ID' undeclared (first use in this function)
pci_compat_22.c:84: (Each undeclared identifier is reported only once
pci_compat_22.c:84: for each function it appears in.)
pci_compat_22.c:84: dereferencing pointer to incomplete type
pci_compat_22.c:85: dereferencing pointer to incomplete type
pci_compat_22.c:85: dereferencing pointer to incomplete type
pci_compat_22.c:86: dereferencing pointer to incomplete type
pci_compat_22.c:86: dereferencing pointer to incomplete type
pci_compat_22.c:87: dereferencing pointer to incomplete type
pci_compat_22.c:87: dereferencing pointer to incomplete type
pci_compat_22.c:88: dereferencing pointer to incomplete type
pci_compat_22.c:88: dereferencing pointer to incomplete type
pci_compat_22.c:90: increment of pointer to unknown structure
pci_compat_22.c:90: arithmetic on pointer to an incomplete type
pci_compat_22.c: In function `snd_pci_announce_device':
pci_compat_22.c:100: dereferencing pointer to incomplete type
pci_compat_22.c:101: dereferencing pointer to incomplete type
pci_compat_22.c:117: dereferencing pointer to incomplete type
pci_compat_22.c: In function `snd_pci_compat_register_driver':
pci_compat_22.c:129: dereferencing pointer to incomplete type
pci_compat_22.c:130: warning: implicit declaration of function
`pci_for_each_dev'
pci_compat_22.c:130: parse error before `{'
pci_compat_22.c:132: `map' undeclared (first use in this function)
pci_compat_22.c:126: warning: `dev' might be used uninitialized in this
function
pci_compat_22.c:134: warning: control reaches end of non-void function
pci_compat_22.c: At top level:
pci_compat_22.c:135: parse error before `return'
pci_compat_22.c: In function `snd_pci_compat_unregister_driver':
pci_compat_22.c:142: dereferencing pointer to incomplete type
pci_compat_22.c:143: parse error before `{'
pci_compat_22.c:145: `map' undeclared (first use in this function)
pci_compat_22.c:146: dereferencing pointer to incomplete type
pci_compat_22.c:147: dereferencing pointer to incomplete type
pci_compat_22.c: At top level:
pci_compat_22.c:152: parse error before `}'
pci_compat_22.c: In function `snd_pci_compat_set_power_state':
pci_compat_22.c:221: warning: implicit declaration of function
`snd_pci_compat_find_capability'
make[1]: *** [memory_wrapper.o] Error 1
make[1]: Leaving directory `/usr/local/src/alsa-driver-0.9.7a/acore'
make: *** [compile] Error 1
[root@FarNorth alsa-driver-0.9.7a]#

If this is an obscure bug that only occurs in my case then I don't want to
waste your time tracking it down as the old drivers do work, but if all this
is good for the cause then I'm game to see it through.

Thank you very much for your efforts.

Sincerely,
Paul

----- Original Message -----
From: "Takashi Iwai" <tiwai@suse.de>
To: "Paul Berry" <pnberry@gustavus.ak.us>
Cc: <alsa-devel@lists.sourceforge.net>
Sent: Thursday, October 09, 2003 2:22 AM
Subject: Re: [Alsa-devel] configure error with alsa-driver-0.9.7a


> please try the patch attached below.  (it's already on cvs.)
>
>
> ciao,
>
> Takashi
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: configure error with alsa-driver-0.9.7a
  2003-10-10  9:54   ` Paul Berry
@ 2003-10-10 15:23     ` Takashi Iwai
  2003-10-11  9:30       ` Paul Berry
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2003-10-10 15:23 UTC (permalink / raw)
  To: Paul Berry; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

At Fri, 10 Oct 2003 01:54:25 -0800,
Paul Berry wrote:
> 
> Thank you for the patch Takashi and here is what came of it.
> 
> I'm kinda green at this so this is what I did with the patch. I copied it to
> the alsa-driver-0.9.7a/acore/ folder and ran:
> patch -b --verbose memalloc.c <memalloc-nopci.dif
> 
> everything seemed to go fine so I restarted the make process and here is the
> tail of what followed (the memalloc.o file was created as well):

does the attached patch solve the problem?


Takashi

[-- Attachment #2: linux22-nopci.dif --]
[-- Type: application/octet-stream, Size: 588 bytes --]

Index: alsa-driver/acore/memory_wrapper.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/acore/memory_wrapper.c,v
retrieving revision 1.8
diff -u -r1.8 memory_wrapper.c
--- alsa-driver/acore/memory_wrapper.c	30 Jun 2003 10:07:07 -0000	1.8
+++ alsa-driver/acore/memory_wrapper.c	10 Oct 2003 15:21:15 -0000
@@ -13,8 +13,10 @@
 #include <linux/mm.h>
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
+#ifdef CONFIG_PCI
 #include <sound/memalloc.h>
 #include "pci_compat_22.c"
+#endif
 #endif
 
 /* vmalloc_to_page wrapper */

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: configure error with alsa-driver-0.9.7a
  2003-10-10 15:23     ` Takashi Iwai
@ 2003-10-11  9:30       ` Paul Berry
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Berry @ 2003-10-11  9:30 UTC (permalink / raw)
  To: alsa-devel

Takashi:

Thanks for the linux22-nopci.dif patch. When it was applied and make was
re-run the alsa-drivers successfully compiled and installed.

Thank you very much,
Paul

----- Original Message -----
From: "Takashi Iwai" <tiwai@suse.de>
To: "Paul Berry" <pnberry@gustavus.ak.us>
Cc: <alsa-devel@lists.sourceforge.net>
Sent: Friday, October 10, 2003 7:23 AM
Subject: Re: [Alsa-devel] configure error with alsa-driver-0.9.7a



>
> does the attached patch solve the problem?
>
>
> Takashi
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: configure error with alsa-driver-0.9.7a
  2003-10-08  9:33 Paul Berry
  2003-10-08 12:37 ` Takashi Iwai
@ 2003-10-10  0:29 ` James Courtier-Dutton
  1 sibling, 0 replies; 8+ messages in thread
From: James Courtier-Dutton @ 2003-10-10  0:29 UTC (permalink / raw)
  To: Paul Berry; +Cc: alsa-devel

Paul Berry wrote:
> Hello kind alsa developers:
> 
> I was attempting to upgrade the alsa-drivers in an old system,  Redhat 7.0
> (upgraded to a custom compiled 2.2.20 kernel) that is presently using
> alsa-driver-0.9.0rc6.
> The system works fine, just wanted the latest drivers, but when I tried to
> upgrade to the 0.9.7a drivers the configure script stopped midway. I'm
> puzzled as I've compiled this kernel using the same gcc version (2.96) that
> I am attempting to use on for the new drivers.
> 
> Here is the configure report as requested and thank you in advance for any
> help.
> 
> Sincerely,
> Paul
> 
> checking for GCC version... Kernel compiler: gcc egcs-2.91.66 19990314/Linux
> (egcs-1.1.2 release) Used compiler: 2.96
> Fatal error: Compiler type does not match
> Decoded kernel compiler: type=egcs version=2.91.66
> Decoded used compiler: type=gcc version=2.96
> Please, send ./configure output to <alsa-devel@alsa-project.org>
> [root@FarNorth alsa-driver-0.9.7a]#
> 
> 

That message is correct.
You should NEVER compile kernel modules with a different compile than 
you did the kernel.

Cheers
James



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: configure error with alsa-driver-0.9.7a
  2003-10-08  9:33 Paul Berry
@ 2003-10-08 12:37 ` Takashi Iwai
  2003-10-10  0:29 ` James Courtier-Dutton
  1 sibling, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2003-10-08 12:37 UTC (permalink / raw)
  To: Paul Berry; +Cc: alsa-devel

At Wed, 8 Oct 2003 01:33:17 -0800,
Paul Berry wrote:
> 
> Hello kind alsa developers:
> 
> I was attempting to upgrade the alsa-drivers in an old system,  Redhat 7.0
> (upgraded to a custom compiled 2.2.20 kernel) that is presently using
> alsa-driver-0.9.0rc6.
> The system works fine, just wanted the latest drivers, but when I tried to
> upgrade to the 0.9.7a drivers the configure script stopped midway. I'm
> puzzled as I've compiled this kernel using the same gcc version (2.96) that
> I am attempting to use on for the new drivers.

then, $LINUXSRC/include/linux/compile.h wasn't regenerated by some
reason.  you can remove that file (better rename to others to be
sure), and retry configure again.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 8+ messages in thread

* configure error with alsa-driver-0.9.7a
@ 2003-10-08  9:33 Paul Berry
  2003-10-08 12:37 ` Takashi Iwai
  2003-10-10  0:29 ` James Courtier-Dutton
  0 siblings, 2 replies; 8+ messages in thread
From: Paul Berry @ 2003-10-08  9:33 UTC (permalink / raw)
  To: alsa-devel

Hello kind alsa developers:

I was attempting to upgrade the alsa-drivers in an old system,  Redhat 7.0
(upgraded to a custom compiled 2.2.20 kernel) that is presently using
alsa-driver-0.9.0rc6.
The system works fine, just wanted the latest drivers, but when I tried to
upgrade to the 0.9.7a drivers the configure script stopped midway. I'm
puzzled as I've compiled this kernel using the same gcc version (2.96) that
I am attempting to use on for the new drivers.

Here is the configure report as requested and thank you in advance for any
help.

Sincerely,
Paul

[root@FarNorth alsa-driver-0.9.7a]#
./configure --with-debug=full --with-isapnp=yes --with-sequencer=yes --with-
oss=yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/local/src/alsa-driver-0.9.7a
checking cross compile...
checking for directory with kernel source... /lib/modules/2.2.20alsa/build
checking for kernel version... 2.2.20alsa
checking for GCC version... Kernel compiler: gcc egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release) Used compiler: 2.96
Fatal error: Compiler type does not match
Decoded kernel compiler: type=egcs version=2.91.66
Decoded used compiler: type=gcc version=2.96
Please, send ./configure output to <alsa-devel@alsa-project.org>
[root@FarNorth alsa-driver-0.9.7a]#




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-10-11  9:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09  9:11 configure error with alsa-driver-0.9.7a Paul Berry
2003-10-09 10:22 ` Takashi Iwai
2003-10-10  9:54   ` Paul Berry
2003-10-10 15:23     ` Takashi Iwai
2003-10-11  9:30       ` Paul Berry
  -- strict thread matches above, loose matches on Subject: below --
2003-10-08  9:33 Paul Berry
2003-10-08 12:37 ` Takashi Iwai
2003-10-10  0:29 ` James Courtier-Dutton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.