problem with ld-elf.so.1 install
Ruslan Ermilov
ru at freebsd.org
Wed Feb 18 01:40:16 PST 2004
On Sun, Feb 15, 2004 at 06:48:50PM -0700, Kenneth D. Merry wrote:
>
> I just upgraded from -current as of January 31st to -current as of February
> 13th.
>
> I'm getting core dumps in random binaries. It's not consistent, but does
> happen occasionally. e.g.:
>
[...]
>
> Since it blew up in ld-elf.so.1, I figured I'd look there...
>
> When I did the installworld, though, ld-elf.so.1 didn't seem to get
> upgraded. (See the January 31st date below.) But when I tried to install
> it manually, the install didn't fail, but didn't work either:
>
> [ looks like we have an old binary, for some reason ]
> =======================================
> # pwd
> /usr/c/ken/perforce/FreeBSD-ken/src/libexec/rtld-elf
> # ls -lao /libexec/
> total 130
> drwxr-xr-x 2 root wheel - 512 Feb 15 18:36 ./
> drwxr-xr-x 27 root wheel - 1536 Feb 15 17:30 ../
> -r-xr-xr-x 1 root wheel schg 128992 Jan 31 16:45 ld-elf.so.1*
> =======================================
>
> [ try doing the install manually ]
> =======================================
> # make install
> chflags noschg /usr/libexec/ld-elf.so.1
> install -s -o root -g wheel -m 555 -fschg -C -b ld-elf.so.1 /libexec
> install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1
> /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz
> /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz
> /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1
> =======================================
>
> [ let's see if it worked ]
> =======================================
> # ls -lao /libexec/
> total 130
> drwxr-xr-x 2 root wheel - 512 Feb 15 18:36 ./
> drwxr-xr-x 27 root wheel - 1536 Feb 15 17:30 ../
> -r-xr-xr-x 1 root wheel schg 128992 Jan 31 16:45 ld-elf.so.1*
> # diff /libexec/ld-elf.so.1 /usr/obj/usr/c/ken/perforce/FreeBSD-ken/src/libex >
> Binary files /libexec/ld-elf.so.1 and /usr/obj/usr/c/ken/perforce/FreeBSD-ken/src/libexec/rtld-elf/ld-elf.so.1 differ
> =======================================
>
> [ it didn't work, try doing a chflags on the binary first ]
> =======================================
> # chflags noschg /libexec/ld-elf.so.1
> # make install
> chflags noschg /usr/libexec/ld-elf.so.1
> install -s -o root -g wheel -m 555 -fschg -C -b ld-elf.so.1 /libexec
> install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1
> /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz
> /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz
> /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1
> =======================================
>
> [ see if it worked this time ]
> =======================================
> # ls -lao /libexec/
> total 130
> drwxr-xr-x 2 root wheel - 512 Feb 15 18:44 ./
> drwxr-xr-x 27 root wheel - 1536 Feb 15 17:30 ../
> -r-xr-xr-x 1 root wheel schg 128992 Jan 31 16:45 ld-elf.so.1*
> # diff /libexec/ld-elf.so.1 /usr/obj/usr/c/ken/perforce/FreeBSD-ken/src/libex >
> Binary files /libexec/ld-elf.so.1 and /usr/obj/usr/c/ken/perforce/FreeBSD-ken/src/libexec/rtld-elf/ld-elf.so.1 differ
> =======================================
> [ didn't work ]
>
> Anyone have any ideas on what I'm doing wrong here?
>
Yes. Note the -C option to install(1).
Cheers,
--
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040218/cc3c24f8/attachment.bin
More information about the freebsd-current
mailing list