mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Mikael Pettersson <mikpe@it.uu.se>
Cc: ak@suse.de, davem@davemloft.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.4.34-pre1] fix x86_64 etc build failure due to memchr change
Date: Sun, 20 Aug 2006 12:40:30 +0200	[thread overview]
Message-ID: <20060820104030.GF602@1wt.eu> (raw)
In-Reply-To: <200608201024.k7KAO4i5023339@harpo.it.uu.se>

On Sun, Aug 20, 2006 at 12:24:04PM +0200, Mikael Pettersson wrote:
> On Sun, 20 Aug 2006 03:31:09 +0200, Willy Tarreau wrote:
> >On Sun, Aug 20, 2006 at 12:19:06AM +0200, Mikael Pettersson wrote:
> >> 2.4.34-pre1 doesn't build on x86_64:
> >> 
> >> kernel/kernel.o(__ksymtab+0x1c10): multiple definition of `__ksymtab_memchr'
> >> arch/x86_64/kernel/kernel.o(__ksymtab+0x3f0): first defined here
> >> kernel/kernel.o(.kstrtab+0x3960): multiple definition of `__kstrtab_memchr'
> >> arch/x86_64/kernel/kernel.o(.kstrtab+0x5fd): first defined here
> >> ld: Warning: size of symbol `__kstrtab_memchr' changed from 7 in arch/x86_64/kernel/kernel.o to 17 in kernel/kernel.o
> >> make: *** [vmlinux] Error 1
> >> 
> >> This is because the 'export memchr() which is used by smbfs and lp driver'
> >> change in 2.4.34-pre1 added an EXPORT_SYMBOL of memchr to kernel/ksyms.c
> >> without also removing the existing one in arch/x86_64/kernel/x8664_ksyms.c.
> >> Alpha, ARM, ppc32, and SH also have EXPORTs of memchr so they probably
> >> also broke.
> >> 
> >> This patch removes the EXPORTs of memchr under arch/, which fixes x86_64
> >> and should fix the other architectures as well.
> >
> >OK Mikael,
> >
> >I have fixed sparc and sparc64 instead, and it's OK now without having to
> >export memchr() in kernel/ksyms.c. So the fix is shorter and more logical.
> >It brings non-sparc architectures to their state before my wrong fix. However,
> >sparc needs to export memchr() for smbfs and lp.
> 
> Works for me. Tested on i386, x86_64, and ppc32. I'll try to test on sparc64
> later today.

Perfect. I have already checked sparc64 last night, so I think the fix was
the right thing to do.

> /Mikael

Thanks Mikael,
Willy


  reply	other threads:[~2006-08-20 10:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-20 10:24 Mikael Pettersson
2006-08-20 10:40 ` Willy Tarreau [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-19 22:19 Mikael Pettersson
2006-08-19 23:16 ` Willy Tarreau
2006-08-20  1:31 ` Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060820104030.GF602@1wt.eu \
    --to=w@1wt.eu \
    --cc=ak@suse.de \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@it.uu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome