Re: I made a mess. libc

2013-02-22 Thread Daniel O'Callaghan

On 22/02/2013 4:44 PM, Shane Ambler wrote:
You missed the earlier suggestion - at the single user prompt for a 
shell don't just hit enter - type in /rescue/sh
This suggestion was gold for me, but in a different way.  I have for 
years lamented the passing of static binaries in /bin and /sbin.


I forget who mentioned that /rescue/*  are statically linked - I had 
never known that.
Today I have just built a 5.4-RELEASE jail on a 9.1-STABLE system, and 
being able to include a statically linked 9.1-STABLE 'ps' is very useful.

The 5.4 version of ps is useless in this jail.

And just in case the significance is lost on Bernt, /rescue/sh does not 
rely on libc, so it won't care if libc is broken.


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


Copyright notice in 9.1-RELEASE-p1 is 1992-2012 instead of 1992-2013

2013-02-22 Thread Bas Smeelen
I just upgraded to systems from 7.4-STABLE to 9.1-RELEASE-p1 and noticed 
that the copyright shows 1992-2012 instead of 1992-2013


Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.4-STABLE #0 r247092: Thu Feb 21 11:22:38 CET 2013


Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.1-RELEASE-p1 #1: Fri Feb 22 11:14:03 CET 2013


In CURRENT it is OK

Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #2 r246823: Mon Feb 18 08:04:55 CET 2013


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


Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread uki
Hi,

I want to install freebsd9 (stable) on zfs root, unfortunately my bios
is unable to recognize GPT discs.
I'm using MBR disc, with BSD slice (on mbr index 4) containing
freebsd-zfs filesystem.

I've no idea how to make it bootable, I've tried using:

  zpool export sys
  dd if=/boot/zfsboot of=/dev/ada0s4 count=1
  dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
  zpool import sys


When I select F4 (slice with zfs) whilst booting the computer just turns off.
How do I make it boot? Do I need freebsd-boot slice?

I have set bootfs property on pool, and added vfs.root.mountfrom to loader.conf.


Cheers,
Łukasz Gruner
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread David Demelier
There are a lot of example in gpart(8) man page. You should use it

I think you should do something like

gpart bootcode -b /boot/pmbr ada0
gpart bootcode -p /boot/gptzfsboot -i 1 ada0

(The second assume that you have a freebsd-boot as first index in ada0)

Cheers,



2013/2/22 uki 

> Hi,
>
> I want to install freebsd9 (stable) on zfs root, unfortunately my bios
> is unable to recognize GPT discs.
> I'm using MBR disc, with BSD slice (on mbr index 4) containing
> freebsd-zfs filesystem.
>
> I've no idea how to make it bootable, I've tried using:
>
>   zpool export sys
>   dd if=/boot/zfsboot of=/dev/ada0s4 count=1
>   dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
>   zpool import sys
>
>
> When I select F4 (slice with zfs) whilst booting the computer just turns
> off.
> How do I make it boot? Do I need freebsd-boot slice?
>
> I have set bootfs property on pool, and added vfs.root.mountfrom to
> loader.conf.
>
>
> Cheers,
> Łukasz Gruner
> ___
> 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"




-- 
Demelier David
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread David Demelier
Sorry didn't read that you have a MBR slice instead of GPT

then you should take a look at that one
https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition


2013/2/22 David Demelier 

> There are a lot of example in gpart(8) man page. You should use it
>
> I think you should do something like
>
> gpart bootcode -b /boot/pmbr ada0
> gpart bootcode -p /boot/gptzfsboot -i 1 ada0
>
> (The second assume that you have a freebsd-boot as first index in ada0)
>
> Cheers,
>
>
>
> 2013/2/22 uki 
>
>> Hi,
>>
>> I want to install freebsd9 (stable) on zfs root, unfortunately my bios
>> is unable to recognize GPT discs.
>> I'm using MBR disc, with BSD slice (on mbr index 4) containing
>> freebsd-zfs filesystem.
>>
>> I've no idea how to make it bootable, I've tried using:
>>
>>   zpool export sys
>>   dd if=/boot/zfsboot of=/dev/ada0s4 count=1
>>   dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
>>   zpool import sys
>>
>>
>> When I select F4 (slice with zfs) whilst booting the computer just turns
>> off.
>> How do I make it boot? Do I need freebsd-boot slice?
>>
>> I have set bootfs property on pool, and added vfs.root.mountfrom to
>> loader.conf.
>>
>>
>> Cheers,
>> Łukasz Gruner
>> ___
>> 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"
>
>
>
>
> --
> Demelier David
>



-- 
Demelier David
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread uki
2013/2/22 David Demelier :
> Sorry didn't read that you have a MBR slice instead of GPT
>
> then you should take a look at that one
> https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition

I have used that one, unfortunately I was unable to boot.
___
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: Copyright notice in 9.1-RELEASE-p1 is 1992-2012 instead of 1992-2013

2013-02-22 Thread Lars Eighner

On Fri, 22 Feb 2013, Bas Smeelen wrote:

I just upgraded to systems from 7.4-STABLE to 9.1-RELEASE-p1 and noticed that 
the copyright shows 1992-2012 instead of 1992-2013


While it would be good for this to be fixed, under the terms of the Berne
Convention and US copyright law, the notice is not absolutely necessary

(this is the "You knew it wasn't yours!" answer your mom gave to "I did not
know whose it was")

and defects in the notice are not fatal to the copyright. Some fairly feeble
remedies (such as amending the notice on undistributes copies, even after an
infringement has been detected) are sufficient to protect the work.

(I am not a lawyer, but I live from intellectual property.)

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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: I made a mess. libc

2013-02-22 Thread Bernt Hansson

Thank you all for your input.

Went to the office very dark in my mind.

I found a cd with amd64 8.0-R and I could
copy libc.so.7

I Thank you ALLnow i'm crying
so I leave you now.
___
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"


Can't build kernel

2013-02-22 Thread Andre Goree
I'm running 8.3-STABLE (not sure if I should've posted this to freebsd-stable, 
please correct me if so).

I'm able to successfully buildworld after an svn up of /usr/src, however when 
I try to build my customer kernel, the build stops at the following:

/usr/local/libexec/ccache/world/cc -c -O2 -frename-registers -pipe -fno-
strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -
Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -
I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 
opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --
param large-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel -
mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -
msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -
Werror  /usr/src/sys/x86/x86/local_apic.c
cc1: warnings being treated as errors
/usr/src/sys/x86/x86/local_apic.c:166: warning: 'lapic_resume' declared 
'static' but never defined
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


Here is my kernel configuration [1].  Any suggestions on how to get this built 
properly or otherwise troubleshoot?  I've also tried with GENERIC, which fails 
at the same exact spot.  Building without ccache also fails at the same exact 
spot :(  

Thanks in advance for any guidance you can provide.

[1]http://www.drenet.net/images/BUILD011313.txt

-- 
Andre Goree
an...@drenet.info
___
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"