Re: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-16 Thread Paul B. Mahol
On 7/16/09, Victor Starenky  wrote:
> I've finally managed to get all sources to the machine via mounted SMB
> drive that still works. (tar errors out).
> But alas, "make all install" immediately throws the very same error
> that started this topic:
> /libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"
>
> Very few commands actually work: cp, ls, cat etc.
> So I'm afraid my only option is to try rescue from cd...

There is /rescue

-- 
Paul
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-15 Thread Victor Starenky
I've finally managed to get all sources to the machine via mounted SMB
drive that still works. (tar errors out).
But alas, "make all install" immediately throws the very same error
that started this topic:
/libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"

Very few commands actually work: cp, ls, cat etc.
So I'm afraid my only option is to try rescue from cd...

Thanks for your help!
Victor

On Tue, Jul 14, 2009 at 3:34 PM, Sergio de Almeida
Lenzi wrote:
> Em Ter, 2009-07-14 às 10:00 -0400, Victor Starenky escreveu:
> ===OK... 
> you can try this script...
> it suposes that you have ALL the /usr/src  and the GENERIC KERNEL...
> in a slow machine, it is about 4 hours (Pentium 2, 256mb memory, 10Gb
> disk)
> FreeBSD 7.0 =>  FreeBSD 7.2
> save the script in the root directory say: updatebsd
> than with all the /usr/src (you can get it from the CD).
>
> sh updatebsd
> if it finds a small mistake it will stop.
> after building the OS, check if everything is ok, and reboot.
> this script will install the GENERIC KERNEL, so if you have your
> own kernel,   edit the last lines of the code to make your needs
> ==
> DEPEND=depend
> cd /usr/src
> set -e
> (cd share/mk;make all install || exit 1)
> make includes
> for i in etc share lib libexec secure/lib secure
> do
> (cd $i;make ${DEPEND} all install || exit 1)
> sync
> done
> for i in sbin bin usr.sbin usr.bin
> do
> (cd $i;make ${DEPEND} all install || exit 1)
> sync
> done
> cd /sys/`uname -m`/conf
> config GENERIC
> cd ../compile/GENERIC
> make ${DEPEND} all install
>
>
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Victor Starenky
Thank you Sergio!
I'll give it a try tonight while keeping my fingers crossed.

On Tue, Jul 14, 2009 at 3:34 PM, Sergio de Almeida
Lenzi wrote:
> Em Ter, 2009-07-14 às 10:00 -0400, Victor Starenky escreveu:
> ===OK... 
> you can try this script...
> it suposes that you have ALL the /usr/src  and the GENERIC KERNEL...
> in a slow machine, it is about 4 hours (Pentium 2, 256mb memory, 10Gb
> disk)
> FreeBSD 7.0 =>  FreeBSD 7.2
> save the script in the root directory say: updatebsd
> than with all the /usr/src (you can get it from the CD).
>
> sh updatebsd
> if it finds a small mistake it will stop.
> after building the OS, check if everything is ok, and reboot.
> this script will install the GENERIC KERNEL, so if you have your
> own kernel,   edit the last lines of the code to make your needs
> ==
> DEPEND=depend
> cd /usr/src
> set -e
> (cd share/mk;make all install || exit 1)
> make includes
> for i in etc share lib libexec secure/lib secure
> do
> (cd $i;make ${DEPEND} all install || exit 1)
> sync
> done
> for i in sbin bin usr.sbin usr.bin
> do
> (cd $i;make ${DEPEND} all install || exit 1)
> sync
> done
> cd /sys/`uname -m`/conf
> config GENERIC
> cd ../compile/GENERIC
> make ${DEPEND} all install
>
>
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Sergio de Almeida Lenzi
Em Ter, 2009-07-14 às 10:00 -0400, Victor Starenky escreveu:
===OK... 
you can try this script...
it suposes that you have ALL the /usr/src  and the GENERIC KERNEL...
in a slow machine, it is about 4 hours (Pentium 2, 256mb memory,
10Gb disk)
FreeBSD 7.0 =>  FreeBSD 7.2
save the script in the root directory say: updatebsd
than with all the /usr/src (you can get it from the CD).

sh updatebsd
if it finds a small mistake it will stop.
after building the OS, check if everything is ok, and reboot.
this script will install the GENERIC KERNEL, so if you have your
own kernel,   edit the last lines of the code to make your needs
==
DEPEND=depend
cd /usr/src
set -e
(cd share/mk;make all install || exit 1)
make includes
for i in etc share lib libexec secure/lib secure
do
(cd $i;make ${DEPEND} all install || exit 1)
sync
done
for i in sbin bin usr.sbin usr.bin 
do
(cd $i;make ${DEPEND} all install || exit 1)
sync
done
cd /sys/`uname -m`/conf
config GENERIC
cd ../compile/GENERIC
make ${DEPEND} all install

___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Victor Starenky
That's "restoring from backup" that's non-trivial :PI'd take on the
challenge of trying to restore just some pieces if you just point me into
the direction of what exactly needs to be done. I'm not asking step-by-steps
but rather something along the lines "recompile kernel - here's the link on
how to start". I don't want to abuse your help, you've already been very
helpful!

Thing is - I was in the process of building a new server to replace this guy
but one not-so-happy day it didn't boot after unsuccesful update (that's
Suse for a change). Meanwhile I wanted to keep mail and stuff running until
I finish with that one.
Now rebuilding this old machine would take weeks of just CPU time alone. I
remember very well the process of putting everything up there in the first
place.

Thanks again,
Victor

On Tue, Jul 14, 2009 at 6:53 AM, Sagara Wijetunga wrote:

> Victor Starenky writes:
>
> Sorry for the lame question. But how exactly would I go about recompiling
> the base?Could you point me to any articles/manuals about it? I'm just
> trying to understand which steps exactly need to be done and how to do it.
> Compiling everything would take me a few weeks on this machine :(
>
> Oops, I just explain is a brain surgery :)
>
> Are you sure that you cannot let go your server, erase everything,
> reinstall and restore from a backup? That's the easiest.
>
> Regards
> Sagara
>
>
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Sagara Wijetunga
Victor Starenky writes: 


Sorry for the lame question. But how exactly would I go about recompiling
the base?Could you point me to any articles/manuals about it? I'm just
trying to understand which steps exactly need to be done and how to do it.
Compiling everything would take me a few weeks on this machine :( 



Oops, I just explain is a brain surgery :) 

Are you sure that you cannot let go your server, erase everything, reinstall 
and restore from a backup? That's the easiest. 


Regards
Sagara
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Victor Starenky
Sorry for the lame question. But how exactly would I go about recompiling
the base?Could you point me to any articles/manuals about it? I'm just
trying to understand which steps exactly need to be done and how to do it.
Compiling everything would take me a few weeks on this machine :(

Thanks again!
Victor

On Tue, Jul 14, 2009 at 6:31 AM, Sagara Wijetunga wrote:

> Victor Starenky writes:
>
> Actually I am running this without GUI (X is a luxury on this machine) .But
>
> if I restore it from the live CD I understand that all ports I have will be
>
> messed up?
>
> You build ports on top of a working base. Now your foundation, aka the base
> has gone wrong. What you got to do is to get the base working again.
>
> Actually the first thing you should try is, to compile the base and the
> kernel (buildworld, buildkernel, etc) and install them properly. Check every
> stage complete without any error. If you can reinstall your base without any
> error, your base is working. Then you can rebuild your ports.
>
> If you cannot, recompile your base, ie. if errors develops, then copy
> necessary libs, etc. from the live CD till your recompile the base completes
> without errors.
>
> So my only option would be to go and install/reinstall all of them from the
>
> scratch? Building anything that needs Ruby for example takes like 24 hours
> on this machine :(
>
> This is your last option.
>
> Regards
> Sagara
>
>
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Sagara Wijetunga
Victor Starenky writes: 


Actually I am running this without GUI (X is a luxury on this machine) .But
if I restore it from the live CD I understand that all ports I have will be
messed up?


You build ports on top of a working base. Now your foundation, aka the base 
has gone wrong. What you got to do is to get the base working again. 

Actually the first thing you should try is, to compile the base and the 
kernel (buildworld, buildkernel, etc) and install them properly. Check every 
stage complete without any error. If you can reinstall your base without any 
error, your base is working. Then you can rebuild your ports. 

If you cannot, recompile your base, ie. if errors develops, then copy 
necessary libs, etc. from the live CD till your recompile the base completes 
without errors. 




So my only option would be to go and install/reinstall all of them from the
scratch? Building anything that needs Ruby for example takes like 24 hours
on this machine :(


This is your last option. 


Regards
Sagara
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-14 Thread Victor Starenky
Actually I am running this without GUI (X is a luxury on this machine) .But
if I restore it from the live CD I understand that all ports I have will be
messed up?
So my only option would be to go and install/reinstall all of them from the
scratch? Building anything that needs Ruby for example takes like 24 hours
on this machine :(
Can you think of any way I could try to fix just the damaged part
(nss/nsswitch)?
Is there any place I could search for the backed up libraries (I think
portupgrade would back them up first?).

Thanks guys, I really appreciate your help!

Victor

On Mon, Jul 13, 2009 at 10:43 PM, Sagara Wijetunga
wrote:

> Victor Starenky writes:
>
> Hi guys,
> I was running FreeBSD server at home for a few years on an old box for
> mail,
> some web and ftp etc. I've been through a number of upgrades even though
> it's not easy with the box as old as this one (PII 350). Right now I'm at
> 7.0 Release.
> Now last weekend something's screwed up there pretty badly and machine is
> pretty much unusable.
> The sympthom is that pretty much any command results in the following
> error:
> /libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"
> Specifically this is thrown when trying to login (after entering login
> name)
> on the console, ssh, ftp.
> This is also thrown for "fetch"or for "ls -l" (plain ls works).
> So I'm lucky to have one root session on the console as I can't login at
> any
> other...
> Most recent thing that might have something to do with it would be an
> (unsuccessful) attempt to portupgrade cups-base. This failed with the error
>
> message of wrong cups client. Now this is not new and I have a number of
> ports that wouldn't upgrade - cups-base, apache for example. But before
> portupgrade would fail without affecting the system. Same cups-base failed
> before without any side effects.
> As I said this might have nothing to do with the errors I'm getting, just
> most recent my actions.
> So currently server is not usable - it won't even accept mail (Currier
> server) with the same error message.
> I tried portupgrade bash but portupgrade itslef also fails with the same
> message. I do have one mean of getting new files there through mounted smb
> directory. I've tried putting all new bash files into
> /usr/ports/distfiles/bash but portupgrade still fails (just a bit further
> now).
> I ran pkg_libchk which shows a bunch of missing libraries, mostly for
> compat4x-i386-5.3_9 but for example courier also misses one:
> courier-0.54.0: /usr/local/libexec/filters/perlfilter misses libperl.so
> At this point I think I'm lost. I'd really rather avoid complete reinstall
> of the server if possible.
> I would greatly appreciate any help troubleshooting the libraries. Still
> hope there is something that can be done other than reinstall.
> Thanks in advance!
> Victor
>
> Hi Victor
>
> What you could do is put it back what is missing/damaged using an live
> FreeBSD CD and get the base system to work again without any GUI.
>
> Regards
> Sagara
>
>
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-13 Thread Sagara Wijetunga
Victor Starenky writes: 


Hi guys,
I was running FreeBSD server at home for a few years on an old box for mail,
some web and ftp etc. I've been through a number of upgrades even though
it's not easy with the box as old as this one (PII 350). Right now I'm at
7.0 Release.
Now last weekend something's screwed up there pretty badly and machine is
pretty much unusable.
The sympthom is that pretty much any command results in the following error:
/libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"
Specifically this is thrown when trying to login (after entering login name)
on the console, ssh, ftp.
This is also thrown for "fetch"or for "ls -l" (plain ls works).
So I'm lucky to have one root session on the console as I can't login at any
other...
Most recent thing that might have something to do with it would be an
(unsuccessful) attempt to portupgrade cups-base. This failed with the error
message of wrong cups client. Now this is not new and I have a number of
ports that wouldn't upgrade - cups-base, apache for example. But before
portupgrade would fail without affecting the system. Same cups-base failed
before without any side effects.
As I said this might have nothing to do with the errors I'm getting, just
most recent my actions.
So currently server is not usable - it won't even accept mail (Currier
server) with the same error message.
I tried portupgrade bash but portupgrade itslef also fails with the same
message. I do have one mean of getting new files there through mounted smb
directory. I've tried putting all new bash files into
/usr/ports/distfiles/bash but portupgrade still fails (just a bit further
now).
I ran pkg_libchk which shows a bunch of missing libraries, mostly for
compat4x-i386-5.3_9 but for example courier also misses one:
courier-0.54.0: /usr/local/libexec/filters/perlfilter misses libperl.so
At this point I think I'm lost. I'd really rather avoid complete reinstall
of the server if possible.
I would greatly appreciate any help troubleshooting the libraries. Still
hope there is something that can be done other than reinstall.
Thanks in advance!
Victor


Hi Victor 

What you could do is put it back what is missing/damaged using an live 
FreeBSD CD and get the base system to work again without any GUI. 


Regards
Sagara
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-13 Thread Paul B. Mahol
On 7/14/09, Victor Starenky  wrote:
> Hi guys,
> I was running FreeBSD server at home for a few years on an old box for mail,
> some web and ftp etc. I've been through a number of upgrades even though
> it's not easy with the box as old as this one (PII 350). Right now I'm at
> 7.0 Release.
> Now last weekend something's screwed up there pretty badly and machine is
> pretty much unusable.
> The sympthom is that pretty much any command results in the following error:
> /libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"

There is still /rescue, but you will need to resurect /lib/* files anyway.
This can happen only if something was attempting to upgrade/update something
and failed for whatever reson yet to be found.

> Specifically this is thrown when trying to login (after entering login name)
> on the console, ssh, ftp.
> This is also thrown for "fetch"or for "ls -l" (plain ls works).
> So I'm lucky to have one root session on the console as I can't login at any
> other...
> Most recent thing that might have something to do with it would be an
> (unsuccessful) attempt to portupgrade cups-base. This failed with the error
> message of wrong cups client. Now this is not new and I have a number of
> ports that wouldn't upgrade - cups-base, apache for example. But before
> portupgrade would fail without affecting the system. Same cups-base failed
> before without any side effects.
> As I said this might have nothing to do with the errors I'm getting, just
> most recent my actions.
> So currently server is not usable - it won't even accept mail (Currier
> server) with the same error message.
> I tried portupgrade bash but portupgrade itslef also fails with the same
> message. I do have one mean of getting new files there through mounted smb
> directory. I've tried putting all new bash files into
> /usr/ports/distfiles/bash but portupgrade still fails (just a bit further
> now).
> I ran pkg_libchk which shows a bunch of missing libraries, mostly for
> compat4x-i386-5.3_9 but for example courier also misses one:
> courier-0.54.0: /usr/local/libexec/filters/perlfilter misses libperl.so
> At this point I think I'm lost. I'd really rather avoid complete reinstall
> of the server if possible.
> I would greatly appreciate any help troubleshooting the libraries. Still
> hope there is something that can be done other than reinstall.
> Thanks in advance!
> Victor
> ___
> 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"
>


-- 
Paul
___
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: Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-13 Thread Olivier Nicole
Hi Victor,

> /libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"
> Specifically this is thrown when trying to login (after entering login name)
> on the console, ssh, ftp.
> This is also thrown for "fetch"or for "ls -l" (plain ls works).

>From the error message and from the diagnostic of ls working without
the -l, I would think it has something to do with nss/nsswitch, the
part that manage username, uid, gid and passwords.

Hence problem with connection (ssh, ftp) mail (it needs to know the
username) and even portupgrade that often need to check if a specific
user exists for a specific port.

Good luck,

Olivier
___
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"


Server screwed up (/lib/libc.so.7: Undefined symbol "_nsdispatch")

2009-07-13 Thread Victor Starenky
Hi guys,
I was running FreeBSD server at home for a few years on an old box for mail,
some web and ftp etc. I've been through a number of upgrades even though
it's not easy with the box as old as this one (PII 350). Right now I'm at
7.0 Release.
Now last weekend something's screwed up there pretty badly and machine is
pretty much unusable.
The sympthom is that pretty much any command results in the following error:
/libexec/ld-elf.so.1: /lib/libc.so.7: Undefined symbol "_nsdispatch"
Specifically this is thrown when trying to login (after entering login name)
on the console, ssh, ftp.
This is also thrown for "fetch"or for "ls -l" (plain ls works).
So I'm lucky to have one root session on the console as I can't login at any
other...
Most recent thing that might have something to do with it would be an
(unsuccessful) attempt to portupgrade cups-base. This failed with the error
message of wrong cups client. Now this is not new and I have a number of
ports that wouldn't upgrade - cups-base, apache for example. But before
portupgrade would fail without affecting the system. Same cups-base failed
before without any side effects.
As I said this might have nothing to do with the errors I'm getting, just
most recent my actions.
So currently server is not usable - it won't even accept mail (Currier
server) with the same error message.
I tried portupgrade bash but portupgrade itslef also fails with the same
message. I do have one mean of getting new files there through mounted smb
directory. I've tried putting all new bash files into
/usr/ports/distfiles/bash but portupgrade still fails (just a bit further
now).
I ran pkg_libchk which shows a bunch of missing libraries, mostly for
compat4x-i386-5.3_9 but for example courier also misses one:
courier-0.54.0: /usr/local/libexec/filters/perlfilter misses libperl.so
At this point I think I'm lost. I'd really rather avoid complete reinstall
of the server if possible.
I would greatly appreciate any help troubleshooting the libraries. Still
hope there is something that can be done other than reinstall.
Thanks in advance!
Victor
___
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"