Current-Users archive

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

Re: Build broken on amd64 - __explicit_bzero



On Mon, 24 Jun 2013, Joerg Sonnenberger wrote:

On Mon, Jun 24, 2013 at 11:21:46AM -0700, Paul Goyette wrote:
With sources updated today at 12:50 UTC

Try the attached patch. Otherwise, this is PR 47922.

With the patch to ld/emultempl/elf32.em I get a new error, which looks like the patch itself might be useful (looks like a new library needed here?)

#      link  zdb/zdb
/build/netbsd-local/tools/x86_64/amd64/bin/x86_64--netbsd-gcc --sysroot=/build/netbsd-local/dest/amd64 -o zdb zdb.o zdb_il.o -Wl,-rpath-link,/build/netbsd-local/dest/amd64/lib -L=/lib -L/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libavl -lavl -L/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libnvpair -lnvpair -L/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libumem -lumem -L/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libuutil -luutil -L/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libzfs -lzfs -L/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libzpool -lzpool -lm -lpthread /build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.4/../../../../x86_64--netbsd/bin/ld: warning: libutil.so.7, needed by /build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libzfs/libzfs.so, not found (try using -rpath or -rpath-link)
/build/netbsd-local/tools/x86_64/amd64/lib/gcc/x86_64--netbsd/4.5.4/../../../../x86_64--netbsd/bin/ld:
 warning: libz.so.1, needed by 
/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libzpool/libzpool.so, not 
found (try using -rpath or -rpath-link)
/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libzpool/libzpool.so: 
undefined reference to `compress2'
/build/netbsd-local/obj/amd64/external/cddl/osnet/lib/libzpool/libzpool.so: 
undefined reference to `uncompress'
collect2: ld returned 1 exit status

(Note the directive "-Wl,-rpath-link,/build/netbsd-local/dest/amd64/lib" ...)

However, the original problem is probably not related to the patch, since the ld command explicitly includes "-Wl,-rpath,/lib" (as the very first library directives), forcing it to consider the host's libraries first. (Which, in my case are from amd64-6.99.17)

Or am I completely misunderstanding -Wl,-rpath directive?



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index