tech-toolchain archive

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

PR#47922



 Hi.

 I got the same problem as PR#47922:

         http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=47922

=================
amd64(msaitoh)% ../../../obj/tooldir.NetBSD-6.99.21-amd64/bin/nbmake-amd64
#      link  npfctl/npfctl
/var/sources/netbsd-6/src/obj/tooldir.NetBSD-6.99.21-amd64/bin/x86_64--netbsd-gcc
    --sysroot=/var/sources/netbsd-6/src/obj/destdir.amd64     -o npfctl  
npfctl.o npf_var.o npf_data.o npf_ncgen.o npf_build.o npf_extmod.o 
npf_disassemble.o npf_scan.o npf_parse.o -lnpf -lprop -lcrypto -lutil -ly       
-Wl,-dynamic-linker=/libexec/ld.elf_so -Wl,-rpath,/lib  -L=/lib
/lib/libcrypt.so.1: undefined reference to `__explicit_bzero'
collect2: ld returned 1 exit status

*** Failed target:  npfctl
*** Failed command: 
/var/sources/netbsd-6/src/obj/tooldir.NetBSD-6.99.21-amd64/bin/x86_64--netbsd-gcc
 --sysroot=/var/sources/netbsd-6/src/obj/destdir.amd64 -o npfctl npfctl.o 
npf_var.o npf_data.o npf_ncgen.o npf_build.o npf_extmod.o npf_disassemble.o 
npf_scan.o npf_parse.o -lnpf -lprop -lcrypto -lutil -ly 
-Wl,-dynamic-linker=/libexec/ld.elf_so -Wl,-rpath,/lib -L=/lib
*** Error code 1

Stop.
nbmake: stopped in /var/sources/netbsd-6/src/usr.sbin/npf/npfctl
===================

So, I checked the behavior using ktrace/kdump

===================
amd64(msaitoh)% ktrace -i 
/var/sources/netbsd-6/src/obj/tooldir.NetBSD-6.99.21-amd64/bin/x86_64--netbsd-gcc
 --sysroot=/var/sources/netbsd-6/src/obj/destdir.amd64 -o npfctl npfctl.o 
npf_var.o npf_data.o npf_ncgen.o npf_build.o npf_extmod.o npf_disassemble.o 
npf_scan.o npf_parse.o -lnpf -lprop -lcrypto -lutil -ly 
-Wl,-dynamic-linker=/libexec/ld.elf_so -Wl,-rpath,/lib -L=/lib
/lib/libcrypt.so.1: undefined reference to `__explicit_bzero'
collect2: ld returned 1 exit status
amd64(msaitoh)% kdump | grep 'NAMI  \"/lib'
 28679      1 ld       NAMI  "/lib/libcrypt.so.1"
 28679      1 ld       NAMI  "/lib/libcrypt.so.1"
 23722      1 collect2 NAMI  "/lib.rpo"
====================

There is no -lcrypt in command line. And,

amd64(msaitoh)% ldd ../../../../obj/destdir.amd64/lib/libcrypto.so
../../../../obj/destdir.amd64/lib/libcrypto.so:
        -lcrypt.1 => /lib/libcrypt.so.1
        -lgcc_s.1 => /lib/libgcc_s.so.1
        -lc.12 => /lib/libc.so.12

Is this the key of the bug? collect2 or ld?


-- 
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)


Home | Main Index | Thread Index | Old Index