Re: Linux 4.19 in Debian FTBFS with "undefined reference to `strcmp'"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arnd,

Are you seeing this issue (gcc replacing calls to strncmp() by strcmp() behind
our back, causing link errors later), too?

See also https://lore.kernel.org/lkml/28ebe45d-3dbd-2a82-f537-b0725f7a2bcf@xxxxxxxxxxxxx/

Thanks!

On Wed, Dec 19, 2018 at 10:32 AM Geert Uytterhoeven
<geert@xxxxxxxxxxxxxx> wrote:
On Wed, Dec 19, 2018 at 9:39 AM Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx> wrote:
On Tue, 18 Dec 2018, John Paul Adrian Glaubitz wrote:
Could someone quickly remind me how to fix the linking issue when building Linux 4.19
on m68k [1]?


Here's the patch that I use. I don't know what the best fix is.
https://github.com/fthain/linux/commit/8fa8322eb20f8d1fdd4228742e45d0400e1dfa15

Porbably the best fix is to follow Andreas' advice, and replace the
calls to strncmp() by
direct calls to strcmp()?

--

+ ld -m m68kelf --build-id -X -o .tmp_vmlinux1 -T ./arch/m68k/kernel/vmlinux.lds --whole-archive built-in.a --no-whole-archive --start-group lib/lib.a arch/m68k/lib/lib.a --end-group
/usr/bin/ld: block/partitions/ldm.o: in function `ldm_parse_tocblock':
./debian/build/build_m68k_none_m68k/./block/partitions/ldm.c:153: undefined reference to `strcmp'
/usr/bin/ld: ./debian/build/build_m68k_none_m68k/./block/partitions/ldm.c:163: undefined reference to `strcmp'
/usr/bin/ld: drivers/rtc/rtc-proc.o: in function `is_rtc_hctosys':
./debian/build/build_m68k_none_m68k/./drivers/rtc/rtc-proc.c:33: undefined reference to `strcmp'

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux