linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't compile HiSaX into 2.2.20pre9 kernel
@ 2001-08-28 22:57 Pascal Schmidt
  2001-08-29  0:25 ` Pascal Schmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal Schmidt @ 2001-08-28 22:57 UTC (permalink / raw)
  To: linux-kernel


Hello all!

I get an error message during 'make bzImage' when I try to compile
2.2.20pre9 with the HiSax ISDN driver included (it works with HiSax as
module):

ld -m elf_i386 -T /usr/src/linux-2.2.20pre9/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.o drivers/misc/misc.a
drivers/isdn/isdn.a drivers/net/net.a drivers/scsi/scsi.a
drivers/cdrom/cdrom.a drivers/sound/sounddrivers.o drivers/pci/pci.a
drivers/video/video.a \
        /usr/src/linux-2.2.20pre9/arch/i386/lib/lib.a
/usr/src/linux-2.2.20pre9/lib/lib.a
/usr/src/linux-2.2.20pre9/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
init/main.o(.data.init+0x39c): undefined reference to `HiSax_setup'
init/main.o(.data.init+0x3a4): undefined reference to `HiSax_setup'
make: *** [vmlinux] Error 1

The strange thing is, the drivers/isdn/isdn.a included above defines
the symbol:

/usr/src/linux-2.2.20pre9 # nm -a drivers/isdn/isdn.a | grep HiSax_setup
0000043c t HiSax_setup

I have no idea what goes wrong here. It works as expected with 2.2.19.

I did:
bzcat ../pre-patch-2.2.0-9.bz2 | patch -p1
make clean
make mrproper
cp ../linux-2.2.19/.config .
make oldconfig
make dep
make bzImage

-- 
Ciao, Pascal

-<[ pharao90@tzi.de, netmail 2:241/215.72, home http://cobol.cjb.net/) ]>-


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

* Re: Can't compile HiSaX into 2.2.20pre9 kernel
  2001-08-28 22:57 Can't compile HiSaX into 2.2.20pre9 kernel Pascal Schmidt
@ 2001-08-29  0:25 ` Pascal Schmidt
  2001-08-29  8:40   ` Kai Germaschewski
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal Schmidt @ 2001-08-29  0:25 UTC (permalink / raw)
  To: linux-kernel

On Wed, 29 Aug 2001, Pascal Schmidt wrote:

> The strange thing is, the drivers/isdn/isdn.a included above defines
> the symbol:
> /usr/src/linux-2.2.20pre9 # nm -a drivers/isdn/isdn.a | grep HiSax_setup
> 0000043c t HiSax_setup

Whooops, silly me. The problem is of course that the small "t" indicates
that HiSax_setup is a local symbol here, where it should be global and
shown as "T". It works with 2.2.19 because there HiSax_setup is a global
symbol.

Fix should be easy, though I don't know how to fix it. ;)

-- 
Ciao, Pascal

-<[ pharao90@tzi.de, netmail 2:241/215.72, home http://cobol.cjb.net/) ]>-


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

* Re: Can't compile HiSaX into 2.2.20pre9 kernel
  2001-08-29  0:25 ` Pascal Schmidt
@ 2001-08-29  8:40   ` Kai Germaschewski
  2001-08-29 15:26     ` Pascal Schmidt
  0 siblings, 1 reply; 4+ messages in thread
From: Kai Germaschewski @ 2001-08-29  8:40 UTC (permalink / raw)
  To: Pascal Schmidt; +Cc: linux-kernel

On Wed, 29 Aug 2001, Pascal Schmidt wrote:

> On Wed, 29 Aug 2001, Pascal Schmidt wrote:
> 
> > The strange thing is, the drivers/isdn/isdn.a included above defines
> > the symbol:
> > /usr/src/linux-2.2.20pre9 # nm -a drivers/isdn/isdn.a | grep HiSax_setup
> > 0000043c t HiSax_setup
> 
> Whooops, silly me. The problem is of course that the small "t" indicates
> that HiSax_setup is a local symbol here, where it should be global and
> shown as "T". It works with 2.2.19 because there HiSax_setup is a global
> symbol.
> 
> Fix should be easy, though I don't know how to fix it. ;)

In drivers/isdn/hisax/config.c, remove the "static" in the line

static void HiSax_setup(...)

I'll send a patch to Alan, thanks for reporting.

--Kai



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

* Re: Can't compile HiSaX into 2.2.20pre9 kernel
  2001-08-29  8:40   ` Kai Germaschewski
@ 2001-08-29 15:26     ` Pascal Schmidt
  0 siblings, 0 replies; 4+ messages in thread
From: Pascal Schmidt @ 2001-08-29 15:26 UTC (permalink / raw)
  To: Kai Germaschewski; +Cc: Pascal Schmidt, linux-kernel

On Wed, 29 Aug 2001, Kai Germaschewski wrote:

> In drivers/isdn/hisax/config.c, remove the "static" in the line
> static void HiSax_setup(...)
Thanks, now it works.

-- 
Ciao, Pascal

-<[ pharao90@tzi.de, netmail 2:241/215.72, home http://cobol.cjb.net/) ]>-


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

end of thread, other threads:[~2001-08-29 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-28 22:57 Can't compile HiSaX into 2.2.20pre9 kernel Pascal Schmidt
2001-08-29  0:25 ` Pascal Schmidt
2001-08-29  8:40   ` Kai Germaschewski
2001-08-29 15:26     ` Pascal Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).