On my Linux 2.2.24 system with gcc-2.95, building for
cs4236, support/isapnp will not build. After, the configure
in Makefile.conf has:
.
.
.
CONFIG_ISA = y
CONFIG_ISAPNP_KERNEL =
CONFIG_ISAPNP = y
.
.
.
If I apply the following patch after the configure, I get the correct build.
===============================================
*** ./Makefile.orig Thu Jan 9 09:08:07 2003
--- ./Makefile Fri Mar 14 11:20:20 2003
***************
*** 36,42 ****
SUBDIRS =
CSUBDIRS =
! ifeq (n,$(CONFIG_ISAPNP_KERNEL))
ifeq (y,$(CONFIG_ISAPNP))
ifeq (y,$(CONFIG_ISA))
SUBDIRS += support
--- 36,42 ----
SUBDIRS =
CSUBDIRS =
! ifeq (,$(CONFIG_ISAPNP_KERNEL))
ifeq (y,$(CONFIG_ISAPNP))
ifeq (y,$(CONFIG_ISA))
SUBDIRS += support
*** ./Makefile.conf.orig Fri Mar 14 11:20:42 2003
--- ./Makefile.conf Fri Mar 14 11:40:01 2003
***************
*** 68,74 ****
INCLUDE = -I$(TOPDIR)/include -I$(CONFIG_SND_KERNELDIR)/include
CFLAGS = $(MODFLAGS) $(INCLUDE) $(c_opts) -Wall -Wstrict-prototypes \
! -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common \
-pipe -DALSA_BUILD
MAKE += $(m_opts)
SNDVERSIONS = $(TOPDIR)/include/sndversions.h
--- 68,74 ----
INCLUDE = -I$(TOPDIR)/include -I$(CONFIG_SND_KERNELDIR)/include
CFLAGS = $(MODFLAGS) $(INCLUDE) $(c_opts) -Wall -Wstrict-prototypes \
! -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing \
-pipe -DALSA_BUILD
MAKE += $(m_opts)
SNDVERSIONS = $(TOPDIR)/include/sndversions.h
===========================================================================
The patch to Makefile appears to be necessary, because CONFIG_ISAPNP_KERNEL
is no longer set to 'n' when it's false.
The second part appears to be necessary because otherwise -fno-common seems to
require that support/isapnp_proc.c be patched this way:
================================================================
*** ./support/isapnp_proc.c.orig Fri Jan 4 07:17:26 2002
--- ./support/isapnp_proc.c Thu Mar 13 19:36:26 2003
***************
*** 50,57 ****
#include "isapnp.h"
void *isapnp_alloc(long size);
! struct isapnp_card *isapnp_cards;
! struct isapnp_dev *isapnp_devices;
struct isapnp_info_buffer {
char *buffer; /* pointer to begin of buffer */
--- 50,57 ----
#include "isapnp.h"
void *isapnp_alloc(long size);
! extern struct isapnp_card *isapnp_cards;
! extern struct isapnp_dev *isapnp_devices;
struct isapnp_info_buffer {
char *buffer; /* pointer to begin of buffer */
======================================================================
I'm not sure the best way to fix this, but the first patch above
is what I'm using to get the snd-isapnp.o module built.
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user