Re: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
On Mon, July 19, 2010 12:47 pm, Dan Nelson wrote: > In the last episode (Jul 19), David Brodbeck said: >> That doesn't work, unfortunately. Once you rename ld-elf.so.1 to >> ld-elf.so.1.old, trying to run any further commands -- even mv and cp -- >> fails with an error. (I didn't write down which one; something about >> failing to load the ELF interpreter, I think.) I know, I managed to >> cripple my system that way. I had to boot a LiveCD to recover, because >> it >> couldn't even load /bin/sh to get into single-user mode. > > A better method would be to copy (not move) the file to a backup location, > then either use mv or install to install the new version. Also, the > programs in /rescue/ are statically linked so they can be used to recover > if > you end up losing ld-elf.so.1 or other critical shared libs. That was actually what I tried first, but I got a file in use error when I tried to overwrite it with the new version. Good to know about /rescue. I'll remember that next time something like this happens. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
In the last episode (Jul 19), David Brodbeck said: > On Mon, July 19, 2010 1:37 am, Timur I. Bakeyev wrote: > > On Sun, Jul 18, 2010 at 10:42 PM, David Brodbeck wrote: > >> On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote: > >>> On Wed, July 7, 2010 2:20 am, mcoyles wrote: > David - have a look here... > http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html > >>> > >>> OK, I see. It looks like rtld is part of world, not a port, so then > >>> the question becomes, why didn't freebsd-update update it for me? Is > >>> there a way I can force a binary upgrade, or do I need to download the > >>> source and rebuild things that way? > >> > >> I ended up downloading the 7.3 livefs ISO, booting off of it, and > >> replacing /libexec/ld-elf.so.1 with the one from the CD. That fixed > >> the problem. > >> > >> I suspect the reason freebsd-update didn't upgrade it properly is it > >> appears it's impossible to replace this file on a running system, even > >> in single-user mode. Maybe there should be something in the release > >> notes about a 7.2 -> 7.3 upgrade being impossible to do properly except > >> by booting from CD? > > > > make installworld happily does it, so can you - by renaming file to the > > *.old and then putting new on in it's place. So, it could be that > > freebsd-update isn't sophisticated enough to do such a trick. > > That doesn't work, unfortunately. Once you rename ld-elf.so.1 to > ld-elf.so.1.old, trying to run any further commands -- even mv and cp -- > fails with an error. (I didn't write down which one; something about > failing to load the ELF interpreter, I think.) I know, I managed to > cripple my system that way. I had to boot a LiveCD to recover, because it > couldn't even load /bin/sh to get into single-user mode. A better method would be to copy (not move) the file to a backup location, then either use mv or install to install the new version. Also, the programs in /rescue/ are statically linked so they can be used to recover if you end up losing ld-elf.so.1 or other critical shared libs. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
On Mon, July 19, 2010 1:37 am, Timur I. Bakeyev wrote: > On Sun, Jul 18, 2010 at 10:42 PM, David Brodbeck wrote: >> On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote: >>> On Wed, July 7, 2010 2:20 am, mcoyles wrote: David - have a look here... http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html >>> >>> OK, I see. It looks like rtld is part of world, not a port, so then >>> the >>> question becomes, why didn't freebsd-update update it for me? Is there >>> a >>> way I can force a binary upgrade, or do I need to download the source >>> and >>> rebuild things that way? >> >> I ended up downloading the 7.3 livefs ISO, booting off of it, and >> replacing >> /libexec/ld-elf.so.1 with the one from the CD. That fixed the problem. >> >> I suspect the reason freebsd-update didn't upgrade it properly is it >> appears >> it's impossible to replace this file on a running system, even in >> single-user mode. Maybe there should be something in the release notes >> about a 7.2 -> 7.3 upgrade being impossible to do properly except by >> booting >> from CD? > > make installworld happily does it, so can you - by renaming file to > the *.old and then putting new on in it's place. So, it could be that > freebsd-update isn't sophisticated enough to do such a trick. That doesn't work, unfortunately. Once you rename ld-elf.so.1 to ld-elf.so.1.old, trying to run any further commands -- even mv and cp -- fails with an error. (I didn't write down which one; something about failing to load the ELF interpreter, I think.) I know, I managed to cripple my system that way. I had to boot a LiveCD to recover, because it couldn't even load /bin/sh to get into single-user mode. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
On Sun, Jul 18, 2010 at 10:42 PM, David Brodbeck wrote: > On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote: >> On Wed, July 7, 2010 2:20 am, mcoyles wrote: >>> David - have a look here... >>> http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html >> >> OK, I see. It looks like rtld is part of world, not a port, so then the >> question becomes, why didn't freebsd-update update it for me? Is there a >> way I can force a binary upgrade, or do I need to download the source and >> rebuild things that way? > > I ended up downloading the 7.3 livefs ISO, booting off of it, and replacing > /libexec/ld-elf.so.1 with the one from the CD. That fixed the problem. > > I suspect the reason freebsd-update didn't upgrade it properly is it appears > it's impossible to replace this file on a running system, even in > single-user mode. Maybe there should be something in the release notes > about a 7.2 -> 7.3 upgrade being impossible to do properly except by booting > from CD? make installworld happily does it, so can you - by renaming file to the *.old and then putting new on in it's place. So, it could be that freebsd-update isn't sophisticated enough to do such a trick. Timur. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote: On Wed, July 7, 2010 2:20 am, mcoyles wrote: Today I tried using "portupgrade -R -f samba34" to rebuild samba and all of its dependencies, but I'm still getting the same error. I'm a little surprised that a minor version upgrade broke this so thoroughly. I went back over the release notes to see if I missed any obvious caveats about upgrading, but if I did, I'm not seeing it. David - have a look here... http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html OK, I see. It looks like rtld is part of world, not a port, so then the question becomes, why didn't freebsd-update update it for me? Is there a way I can force a binary upgrade, or do I need to download the source and rebuild things that way? I ended up downloading the 7.3 livefs ISO, booting off of it, and replacing /libexec/ld-elf.so.1 with the one from the CD. That fixed the problem. I suspect the reason freebsd-update didn't upgrade it properly is it appears it's impossible to replace this file on a running system, even in single-user mode. Maybe there should be something in the release notes about a 7.2 -> 7.3 upgrade being impossible to do properly except by booting from CD? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
On Wed, July 7, 2010 2:20 am, mcoyles wrote: >> Today I tried using "portupgrade -R -f samba34" to rebuild samba and all >> of its dependencies, but I'm still getting the same error. I'm a little >> surprised that a minor version upgrade broke this so thoroughly. I went >> back over the release notes to see if I missed any obvious caveats about >> upgrading, but if I did, I'm not seeing it. > > David - have a look here... > http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html OK, I see. It looks like rtld is part of world, not a port, so then the question becomes, why didn't freebsd-update update it for me? Is there a way I can force a binary upgrade, or do I need to download the source and rebuild things that way? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
> Today I tried using "portupgrade -R -f samba34" to rebuild samba and all > of its dependencies, but I'm still getting the same error. I'm a little > surprised that a minor version upgrade broke this so thoroughly. I went > back over the release notes to see if I missed any obvious caveats about > upgrading, but if I did, I'm not seeing it. David - have a look here... http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html Cheers! Marci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
On Sat, July 3, 2010 2:49 pm, David Brodbeck wrote: > Today I upgraded my system from FreeBSD 7.2-RELEASE to FreeBSD 7.3- > RELEASE using freebsd-update. Samba no longer runs. I get the > following error messages: > > Starting nmbd. > /libexec/ld-elf.so.1: /usr/local/sbin/nmbd: invalid PT_PHDR > Starting smbd. > /libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR > > My upgrade sequence was to run 'freebsd-update upgrade -r 7.3-RELEASE' > and 'freebsd-update install', followed by a reboot, then 'freebsd- > update install' again, followed by a second reboot. > > I tried rebuilding the Samba port, thinking maybe it was an ABI > change, but it still doesn't work. Can someone point me in the right > direction? Today I tried using "portupgrade -R -f samba34" to rebuild samba and all of its dependencies, but I'm still getting the same error. I'm a little surprised that a minor version upgrade broke this so thoroughly. I went back over the release notes to see if I missed any obvious caveats about upgrading, but if I did, I'm not seeing it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE
I apologize if this has been asked before; I tried searching the list, but the search engine on lists.freebsd.org keeps giving me an error message. Today I upgraded my system from FreeBSD 7.2-RELEASE to FreeBSD 7.3- RELEASE using freebsd-update. Samba no longer runs. I get the following error messages: Starting nmbd. /libexec/ld-elf.so.1: /usr/local/sbin/nmbd: invalid PT_PHDR Starting smbd. /libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR My upgrade sequence was to run 'freebsd-update upgrade -r 7.3-RELEASE' and 'freebsd-update install', followed by a reboot, then 'freebsd- update install' again, followed by a second reboot. I tried rebuilding the Samba port, thinking maybe it was an ABI change, but it still doesn't work. Can someone point me in the right direction? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"