Kernel compile failure with ppp+irda or tokenring+pcmciatokenring in-kernel

From: Rasmus Andersen (rasmus@diku.dk)
Date: Fri Jul 21 2000 - 15:40:15 EST


Hi.

This post covers two similar problems, namely the kernel build failure
given certain configuration combinations. The combinations in question
is either CONFIG_PPP_DEFLATE=y and CONFIG_IRDA_COMPRESSION=y or
CONFIG_IBMTR=y, CONFIG_PCMCIA_IBMTR=y and CONFIG_PCMCIA_RAYCS=y.
(The relevant sections of the respective .configs are attached below).

The build failures are caused by duplicate inclusion of code in the
final kernel linking. Which is unsurprising since inspection of the
first case reveals that drivers/net/ppp_deflate.c and
net/irda/compressors/irda_deflate.c both include drivers/net/zlib.c
and, in the second case, that the IBM tokenring pcmcia driver is
linked together with the driver for the non-pcmcia driver (as per
drivers/net/pcmcia/Makefile).

In both cases we only want the shared code to be included once which
should be doable by some configuration magic, but that is beyond me.
I'll just rat on the problem :)

.config for PPP and IRDA conflict:

CONFIG_PPP=y
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_ASYNC is not set
# CONFIG_PPP_SYNC_TTY is not set
CONFIG_PPP_DEFLATE=y
# CONFIG_PPP_BSDCOMP is not set
# CONFIG_PPPOE is not set

[...]

#
# IrDA (infrared) support
#
CONFIG_IRDA=y

#
# IrDA protocols
#
# CONFIG_IRLAN is not set
# CONFIG_IRCOMM is not set
# CONFIG_IRDA_ULTRA is not set
# CONFIG_IRDA_OPTIONS is not set
CONFIG_IRDA_COMPRESSION=y

#
# IrDA compressors
#
CONFIG_IRDA_DEFLATE=y

.config for pcmcia and non-pcmcia ibm tokenring driver conflict:
(Note that for some reason I could not fathom the viator/Raytheon
PCMCIA driver had to be included in the configuration for this
failure to appear.)

#
# Token Ring devices
#
CONFIG_TR=y
CONFIG_IBMTR=y

[...]

#
# PCMCIA network device support
#
CONFIG_NET_PCMCIA=y
# CONFIG_PCMCIA_3C589 is not set
# CONFIG_PCMCIA_3C574 is not set
# CONFIG_PCMCIA_FMVJ18X is not set
# CONFIG_PCMCIA_PCNET is not set
# CONFIG_PCMCIA_NMCLAN is not set
# CONFIG_PCMCIA_SMC91C92 is not set
# CONFIG_PCMCIA_XIRC2PS is not set
# CONFIG_ARCNET_COM20020_CS is not set
CONFIG_PCMCIA_IBMTR=y
# CONFIG_PCMCIA_XIRTULIP is not set
CONFIG_NET_PCMCIA_RADIO=y
CONFIG_PCMCIA_RAYCS=y
# CONFIG_PCMCIA_NETWAVE is not set
# CONFIG_PCMCIA_WAVELAN is not set
# CONFIG_AIRONET4500_CS is not set
CONFIG_PCMCIA_NETCARD=y

        Rasmus(rasmus@diku.dk)

Half this game is ninety percent mental.
-Philadelphia Phillies manager Danny Ozark

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:17 EST