NetBSD-Users archive

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

Re: Build of NetBSD-6.1RC2/amd64 fails

On 2013-03-28, at 20:21, Sverre Froyen <> wrote:

> Hi,
> I've been using a NetBSD-current/amd64 system to build netbsd-6 i386 and 
> amd64 kernels and sets ever since the netbsd-6 branch was created. This used 
> to work fine, but with the latest netbsd-6 sources an amd64 distribution 
> build fails with
> dependall ===> usr.sbin/npf/npfctl
> #      link  npfctl/npfctl
> /usr/src/tooldir/bin/x86_64--netbsd-gcc    
> --sysroot=/usr/src/obj.amd64/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/ undefined reference to `__explicit_bzero'
> collect2: ld returned 1 exit status
> It looks like the build system is using current version /lib/ 
> rather than the netbsd-6 version. Is this a known issue or have I somehow 
> messed up my build system?

Manually linking npfctl using the above statement, substituting



and then restarting the build, allows the build to complete. A grep of the 
build output shows that the "-Wl,-rpath,/lib" path occurs about 200 times, 
however. That does not seem right.


Home | Main Index | Thread Index | Old Index