setloginclass: Function not implemented.

Hello,

When I start any process (for ex. daemon) I have got the following error:
cron[1561]:setloginclass(daemon); Function not implemented.
Such error appears when I start ssh etc.

output of
uname -a 

Open in new window

FreeBSD hostname 8,3-RELEASE FreeBSD 8.3-Release 0#: Sta Jul 7 12:30:55
user@ns1.<other_hostname>:/usr/obj/usr/src/sys/kernel amd64


Probably, I have faced with the problem of inconsistent kernel upgrade (was not done by me)
Also when I execute on the same machine
man man 

Open in new window

In the last line I have:
FreeBSD 9.1 June 3, 2011

when I
ls /usr/src/sys/amd64/conf/

Open in new window

Output is
GENERIC kernel mykernel

but when I
uname -i

Open in new window

Output is
kernel

Needless to say the sometime I have got kernel panic, stack backtrace (omitted addresses):
kdb_backtrace
panic
ffs_blkfree_cg
ffs_blkfree
indor_trunc
handle_workitem_freeblocks
process_worklist_ite,
softdep_process_worklist
softdep_flush
fork_exit
fork_trampoline
Nusrat NuriyevAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
HISTORY
     The getloginclass() and setloginclass() system calls first appeared in FreeBSD 9.0.

You run v8 kernel and v9 userland. Your system is completely broken.
Get fresh system as soon as you can because
1) you cannot downgrade userland
2) you cannot use it ti build working kernel

Maybe you succeed extracting kernel from any v9 and booting it and get system to 9-releng or something like that. But dont expect everything to sun smoothly or easy.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.