Re: Got an error: Unknown option "DDB_CTF"

2010-12-02 Thread Weihang Wang

On Dec 2, 2010, at 10:16 PM, Chris Brennan wrote:

> Hi Chris,
> 
> I use FreeBSD version 8.1, the host OS is Ubuntu 10.10. The host OS could 
> connect to the Internet correctly. This host uses a private IP address. Yes, 
> I allowed the VM software to install the bridge adapter now, when booting 
> there are some msgs "no DHCP offers received". Actually I am a little 
> confused where the DHCP server is, do I need to install a DHCP server? Also, 
> do I need to add that line "ifconfig_le0/pcn0="DHCP" in /etc/rc.conf?
> I am also don't understand how to set the static IP address since when 
> setting a static IP address, we should have a router interface address, 
> right? But now it's only a virtual machine running on a real machine, how can 
> we do that?
> Thank you so much for your help. I am sorry for bring you so much trouble. 
> 
> Best,
> W.W.
> 
> Weihang,
> 
> It's no trouble, below you will see what I have in my /etc/rc.conf for a 
> static IP. I use this same configuration in FreeBSD7.3 (and old Sony Vaio 
> PIII), FreeBSD8.1-amd64 (My HP Laptop) and in my FreeBSD9 VM. Obviously the 
> device name changes depending on the machine, but otherwise the configuration 
> is the same. If you have a Router that your internet is connected to, that 
> will usually provide DHCP Services, else you would indeed need to set one up 
> on the host and tell the bridge to use it.
> 
> 
> ifconfig_nfe0="inet 192.168.0.4  netmask 255.255.255.0"
> defaultrouter="192.168.0.1"
> 
> A quick search of vBox and Ubuntu revealed this URL: 
> https://help.ubuntu.com/community/VirtualBox/Networking, I suggest giving it 
> a read and see if you missed something. I do believe there are some extra 
> steps necessary to set up a bridging device correctly on a Linux Host. I 
> would also check out the vBox Community wiki as I believe there are some tips 
> there as well for your Host OS. I am purposly vague about instructing you in 
> *Linux* for a reason. Each OS does things differently, just as FreeBSD does 
> things differently then Linux. They all speak a different langauge. The thing 
> with Linux is that they are speak a different dialect of the same root 
> language. The problem here, I don't speak Ubuntu's dialect. So I'll just 
> safely point you to the resources that can help you.
> 
> Some Links for you
> 
> https://wiki.ubuntu.com/VirtualBox
> https://help.ubuntu.com/community/VirtualBox/Networking
> http://forums.virtualbox.org/viewtopic.php?t=1787
> http://ubuntuforums.org/showthread.php?t=716404
> http://www.virtualbox.org/manual/ch06.html - This one will be *endlessly* 
> useful for you ... I would suggest checking out the whole handbook. vBox is 
> actually very well documented

Hi Chris,

Thank you so much. I typed the lines you used in your rc.conf, it does not work 
here. Perhaps I need do some other things, I do not know. I have to check some 
of these resources you provide. I got this problem several days ago, but still 
could not solve it now. It is really time consuming... But anyway, I will check 
these resources. I will contact you if I have any progress or other problems. : 
)
Thanks,

Best,
W.W.

___
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: Got an error: Unknown option "DDB_CTF"

2010-12-02 Thread Chris Brennan
>
> Hi Chris,
>
> I use FreeBSD version 8.1, the host OS is Ubuntu 10.10. The host OS could
> connect to the Internet correctly. This host uses a private IP address. Yes,
> I allowed the VM software to install the bridge adapter now, when booting
> there are some msgs "no DHCP offers received". Actually I am a little
> confused where the DHCP server is, do I need to install a DHCP server? Also,
> do I need to add that line "ifconfig_le0/pcn0="DHCP" in /etc/rc.conf?
> I am also don't understand how to set the static IP address since when
> setting a static IP address, we should have a router interface address,
> right? But now it's only a virtual machine running on a real machine, how
> can we do that?
> Thank you so much for your help. I am sorry for bring you so much trouble.
>
> Best,
> W.W.
>

Weihang,

It's no trouble, below you will see what I have in my /etc/rc.conf for a
static IP. I use this same configuration in FreeBSD7.3 (and old Sony Vaio
PIII), FreeBSD8.1-amd64 (My HP Laptop) and in my FreeBSD9 VM. Obviously the
device name changes depending on the machine, but otherwise the
configuration is the same. If you have a Router that your internet is
connected to, that will usually provide DHCP Services, else you would indeed
need to set one up on the host and tell the bridge to use it.


ifconfig_nfe0="inet 192.168.0.4  netmask 255.255.255.0"
defaultrouter="192.168.0.1"

A quick search of vBox and Ubuntu revealed this URL:
https://help.ubuntu.com/community/VirtualBox/Networking, I suggest giving it
a read and see if you missed something. I do believe there are some extra
steps necessary to set up a bridging device correctly on a Linux Host. I
would also check out the vBox Community wiki as I believe there are some
tips there as well for your Host OS. I am purposly vague about instructing
you in *Linux* for a reason. Each OS does things differently, just as
FreeBSD does things differently then Linux. They all speak a different
langauge. The thing with Linux is that they are speak a different dialect of
the same root language. The problem here, I don't speak Ubuntu's dialect. So
I'll just safely point you to the resources that can help you.

Some Links for you

*https://wiki.ubuntu.com/VirtualBox
https://help.ubuntu.com/community/VirtualBox/Networking
http://forums.virtualbox.org/viewtopic.php?t=1787
http://ubuntuforums.org/showthread.php?t=716404
http://www.virtualbox.org/manual/ch06.html - This one will be *endlessly*
useful for you ... I would suggest checking out the whole handbook. vBox is
actually very well documented*
___
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: Got an error: Unknown option "DDB_CTF"

2010-12-02 Thread Weihang Wang

On Dec 2, 2010, at 9:40 PM, Chris Brennan wrote:

> Hi,
> 
> I will try and see whether the same method works for me. If it could not get 
> network access. I am afraid I could not use virtual machine and might go back 
> to run FreeBSD on real hardware. Thank you very much,
> 
> Best,
> W.W.
> 
> 
> Weihang,
> 
> The whole point of the VM right now is to try and test your software to see 
> if it works on newer versions of FreeBSD. What is the Host OS? Is the Host OS 
> doing anything strange to connect to the network? Did you allow the VM 
> Software to install the bridge Adapter?
> 
> C-

Hi Chris,

I use FreeBSD version 8.1, the host OS is Ubuntu 10.10. The host OS could 
connect to the Internet correctly. This host uses a private IP address. Yes, I 
allowed the VM software to install the bridge adapter now, when booting there 
are some msgs "no DHCP offers received". Actually I am a little confused where 
the DHCP server is, do I need to install a DHCP server? Also, do I need to add 
that line "ifconfig_le0/pcn0="DHCP" in /etc/rc.conf?
I am also don't understand how to set the static IP address since when setting 
a static IP address, we should have a router interface address, right? But now 
it's only a virtual machine running on a real machine, how can we do that?
Thank you so much for your help. I am sorry for bring you so much trouble. 

Best,
W.W.___
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: Got an error: Unknown option "DDB_CTF"

2010-12-02 Thread Chris Brennan
>
> Hi,
>
> I will try and see whether the same method works for me. If it could not
> get network access. I am afraid I could not use virtual machine and might go
> back to run FreeBSD on real hardware. Thank you very much,
>
> Best,
> W.W.
>
>
Weihang,

The whole point of the VM right now is to try and test your software to see
if it works on newer versions of FreeBSD. What is the Host OS? Is the Host
OS doing anything strange to connect to the network? Did you allow the VM
Software to install the bridge Adapter?

C-
___
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: Got an error: Unknown option "DDB_CTF"

2010-12-02 Thread Weihang Wang

On Dec 2, 2010, at 9:03 PM, Chris Brennan wrote:

> Hi Chris,
> 
> Thanks for your kind help. Now I am running FreeBSD on Virtualbox as a guest 
> OS on Ubuntu. But I got some other problems. I have searched on the Internet 
> but could not find a solution work for me. 
> Now the guest OS does have network access. When using ifconfig, the virtual 
> ethernet card le0 (when using PCI II) or pcn0 (when using PCnet FAST III) has 
> no IP address. I have configured ifconfig_le0/pcn0="DHCP" in /etc/rc.conf. 
> But it still has no network access. In the virtualbox, I choose the 
> networking mode "Bridged" or "NAT", they don't work, either. I found in the 
> virtualbox the name of this virtual network interface is eth0. But when i use 
> ifconfig, there is no eth0 in this operating system. I don't know whether 
> this is the reason.
> Hope you could give me some possible ideas on solutions. I will post a new 
> email on this problem, too.
> Thank you very much. 
> 
> Best,
> W.W.
> 
> Greetings Weihang,
> 
> I've had a simmilar issue, infact. Having one now in my VM that will be 
> fbsd9+zfs (testing stuff for my environment). The only way I can get proper 
> access to the outside world is to allow VMWare or VBox to install the 
> Bridgeing Adapter. In the VM Software, choose the bridging device and then 
> choose any network device the VM offers you (in vBox I have 2 PCINET devices 
> and 3 others, the choice doesn't matter really). When I assigned a static IP 
> to the VM (in my case 192.168.0.20) but it doesn't work (be sure yo set the 
> default route, 'route add gateway ). The only way I had it working was to 
> let DHCP get an IP at the command line w/ 'dhclient -q '. 
> Anyway, hope that helps a little.

Hi,

I will try and see whether the same method works for me. If it could not get 
network access. I am afraid I could not use virtual machine and might go back 
to run FreeBSD on real hardware. Thank you very much,

Best,
W.W.



___
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: Got an error: Unknown option "DDB_CTF"

2010-12-02 Thread Chris Brennan
>
> Hi Chris,
>
> Thanks for your kind help. Now I am running FreeBSD on Virtualbox as a
> guest OS on Ubuntu. But I got some other problems. I have searched on the
> Internet but could not find a solution work for me.
> Now the guest OS does have network access. When using ifconfig, the virtual
> ethernet card le0 (when using PCI II) or pcn0 (when using PCnet FAST III)
> has no IP address. I have configured ifconfig_le0/pcn0="DHCP" in
> /etc/rc.conf. But it still has no network access. In the virtualbox, I
> choose the networking mode "Bridged" or "NAT", they don't work, either. I
> found in the virtualbox the name of this virtual network interface is eth0.
> But when i use ifconfig, there is no eth0 in this operating system. I don't
> know whether this is the reason.
> Hope you could give me some possible ideas on solutions. I will post a new
> email on this problem, too.
> Thank you very much.
>
> Best,
> W.W.
>

Greetings Weihang,

I've had a simmilar issue, infact. Having one now in my VM that will be
fbsd9+zfs (testing stuff for my environment). The only way I can get proper
access to the outside world is to allow VMWare or VBox to install the
Bridgeing Adapter. In the VM Software, choose the bridging device and then
choose any network device the VM offers you (in vBox I have 2 PCINET devices
and 3 others, the choice doesn't matter really). When I assigned a static IP
to the VM (in my case 192.168.0.20) but it doesn't work (be sure yo set the
default route, 'route add gateway ). The only way I had it working was
to let DHCP get an IP at the command line w/ 'dhclient -q '.
Anyway, hope that helps a little.
___
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: Got an error: Unknown option "DDB_CTF"

2010-11-23 Thread Chris Brennan
On Mon, Nov 22, 2010 at 9:58 PM, Weihang Wang  wrote:

> Hi,
>
> Thanks for your reply. Yes, now I still got problems. I have checked the
> release notes of versions later than 6.0, almost every version has not so
> few changes in their network protocols kernel. For example, some functions
> were replaced by others, arguments for a function is not needed in a later
> version, things like that... This will make the transport protocol does not
> work. But if I go through to adapt the protocol to a new version, that would
> be lots of work. Also, that's not what I supposed to do.
> On the other hand, I could not find other kind of instrumenting tools for
> FreeBSD either. E.g., Systemtap, LLtng, Oprofile e.t. which are all for
> Linux kernel.
> In terms of not on real machine, I have thought of using some kind of
> simulator, which could be used to get the performance statistics of the
> kernel. That is, I run the kernel and transport protocol on this simulator,
> and get information from this simulator. But again, not found a simulator
> for FreeBSD...
> BTW, I do not know how to use VM to do this... Could you explain a bit for
> me? Thank you so much.
>
> Best,
> W.Wang
>
>
>
Don't top post, ruins the flow of reading. VM = Virtual Machine. Grab
yourself a copy of Virtual Box or VMWare for your OS of choice and install
it, the rest is fairly self-explanatory. Once the VM is installed, grab a
few copies of VMWare and install them (If you have enough resources, you can
run more then 1 VM) and see if your code works on newer versions of FreeBSD.
You might be surprised what does still work w/ the compat libs from previous
branches.

Also keep in mind that if your 6x machine is forward-facing (i.e. has
access  to the world) and you happen across a security flaw, you will get
almost no support from the community in fixing it as it's a discontinued
branch and has reach it's EoL (End-of-Life). So you will be left to either
leave the hole alone or attempt to fix it yourself.

Anywho ... hth
___
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: Got an error: Unknown option "DDB_CTF"

2010-11-22 Thread Weihang Wang
Hi,

Thanks for your reply. Yes, now I still got problems. I have checked the 
release notes of versions later than 6.0, almost every version has not so few 
changes in their network protocols kernel. For example, some functions were 
replaced by others, arguments for a function is not needed in a later version, 
things like that... This will make the transport protocol does not work. But if 
I go through to adapt the protocol to a new version, that would be lots of 
work. Also, that's not what I supposed to do. 
On the other hand, I could not find other kind of instrumenting tools for 
FreeBSD either. E.g., Systemtap, LLtng, Oprofile e.t. which are all for Linux 
kernel. 
In terms of not on real machine, I have thought of using some kind of 
simulator, which could be used to get the performance statistics of the kernel. 
That is, I run the kernel and transport protocol on this simulator, and get 
information from this simulator. But again, not found a simulator for FreeBSD...
BTW, I do not know how to use VM to do this... Could you explain a bit for me? 
Thank you so much.

Best,
W.Wang


On Nov 22, 2010, at 9:04 PM, Chris Brennan wrote:

> On Mon, Nov 22, 2010 at 6:41 PM, Weihang Wang  wrote:
> Hi,
> 
> Thanks again. The transport protocol is not implemented by me, but I need to 
> run this protocol to see the behavior of this protocol. So now I have no idea 
> about the implementation of the transport protocol and don't know whether it 
> could run on later versions than FreeBSD 6.0. I guess what I could do now is 
> try to see whether this protocol could work on FreeBSD later version (8.1 or 
> later?? ). If it works, then everything is fine. If not, maybe I have to find 
> other instrumenting tools instead of DTrace.
> Thank you so much.
> 
> Best,
> W.Wang
> 
> 
> Why not run this test into a VM to test? It would sav you considerable time. 

___
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: Got an error: Unknown option "DDB_CTF"

2010-11-22 Thread Chris Brennan
On Mon, Nov 22, 2010 at 6:41 PM, Weihang Wang  wrote:

> Hi,
>
> Thanks again. The transport protocol is not implemented by me, but I need
> to run this protocol to see the behavior of this protocol. So now I have no
> idea about the implementation of the transport protocol and don't know
> whether it could run on later versions than FreeBSD 6.0. I guess what I
> could do now is try to see whether this protocol could work on FreeBSD later
> version (8.1 or later?? ). If it works, then everything is fine. If not,
> maybe I have to find other instrumenting tools instead of DTrace.
> Thank you so much.
>
> Best,
> W.Wang
>
>
Why not run this test into a VM to test? It would sav you considerable time.
___
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: Got an error: Unknown option "DDB_CTF"

2010-11-22 Thread Weihang Wang
Hi,

Thanks again. The transport protocol is not implemented by me, but I need to 
run this protocol to see the behavior of this protocol. So now I have no idea 
about the implementation of the transport protocol and don't know whether it 
could run on later versions than FreeBSD 6.0. I guess what I could do now is 
try to see whether this protocol could work on FreeBSD later version (8.1 or 
later?? ). If it works, then everything is fine. If not, maybe I have to find 
other instrumenting tools instead of DTrace.
Thank you so much.

Best,
W.Wang



On Nov 22, 2010, at 4:31 PM, Dan Nelson wrote:

> In the last episode (Nov 22), Weihang Wang said:
>> On Nov 22, 2010, at 12:08 PM, Dan Nelson wrote:
>>> In the last episode (Nov 22), Weihang Wang said:
 I am a totally newbie to FreeBSD. I am building a custom kernel based
 on FreeBSD 6.0 kernel (I have to use this version cause I need to run
 an application which is only available for FreeBSD 6.0).  I conform to
 the handbook to add the following lines in kernel configuration file to
 enable DTrace support:
 
 optionsKDTRACE_FRAME
 optionsKDTRACE_HOOKS
 optionsDDB_CTF
 makeoptions WITH_CTF=1
 
 Then I use the following commands to recompile my kernel and install
 this new kernel:
 
 make buildkernel KERNCONF=KERNELNAME
 make installkernel KERNCONF=KERNELNAME
 
 The compiling process encounters an error: Unknown option "DDB_CTF", I
 have no idea how to fix this?
>>> 
>>> Just remove all references to CTF; that's for Dtrace support, which doesn't
>>> exist in the 6.* branch.
>>> 
>>> You might also want to try running your application on FreeBSD 8.1 after
>>> installing the misc/compat6x package.  Backwards binary compatibility
>>> support is very good.
>> 
>> Thank you so much for your help. But I am still concerned about the
>> backward compatibility.  First I have to use DTrace to instrument the
>> kernel to do performance analysis.  At the same time, the program I need
>> to build on the FreeBSD is a kind of transport protocol, which is based on
>> the FreeBSD 6.0.  The transport protocol may change the network stack of
>> the kernel networking system, so I do not know whether this would work. 
>> Hope to hear from you.  Thank you very much.
> 
> If your program includes kernel modifications and the modifications only
> apply cleanly to FreeBSD 6, then you may be stuck unless you can port the
> changes to a newer version of FreeBSD.  DTrace support for the kernel went
> into FreeBSD 7.1, and DTrace for user processes will be in 9.0 (with
> backports to 8.2 and 7.4 later).
> 
> If your program implements its transport protocol completely in userland (by
> opening raw sockets for example), then it will probably run on FreeBSD 8.1.
> 
> -- 
>   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"

___
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: Got an error: Unknown option "DDB_CTF"

2010-11-22 Thread Dan Nelson
In the last episode (Nov 22), Weihang Wang said:
> On Nov 22, 2010, at 12:08 PM, Dan Nelson wrote:
> > In the last episode (Nov 22), Weihang Wang said:
> >> I am a totally newbie to FreeBSD. I am building a custom kernel based
> >> on FreeBSD 6.0 kernel (I have to use this version cause I need to run
> >> an application which is only available for FreeBSD 6.0).  I conform to
> >> the handbook to add the following lines in kernel configuration file to
> >> enable DTrace support:
> >> 
> >> optionsKDTRACE_FRAME
> >> optionsKDTRACE_HOOKS
> >> optionsDDB_CTF
> >> makeoptions WITH_CTF=1
> >> 
> >> Then I use the following commands to recompile my kernel and install
> >> this new kernel:
> >> 
> >> make buildkernel KERNCONF=KERNELNAME
> >> make installkernel KERNCONF=KERNELNAME
> >> 
> >> The compiling process encounters an error: Unknown option "DDB_CTF", I
> >> have no idea how to fix this?
> > 
> > Just remove all references to CTF; that's for Dtrace support, which doesn't
> > exist in the 6.* branch.
> > 
> > You might also want to try running your application on FreeBSD 8.1 after
> > installing the misc/compat6x package.  Backwards binary compatibility
> > support is very good.
>
> Thank you so much for your help. But I am still concerned about the
> backward compatibility.  First I have to use DTrace to instrument the
> kernel to do performance analysis.  At the same time, the program I need
> to build on the FreeBSD is a kind of transport protocol, which is based on
> the FreeBSD 6.0.  The transport protocol may change the network stack of
> the kernel networking system, so I do not know whether this would work. 
> Hope to hear from you.  Thank you very much.

If your program includes kernel modifications and the modifications only
apply cleanly to FreeBSD 6, then you may be stuck unless you can port the
changes to a newer version of FreeBSD.  DTrace support for the kernel went
into FreeBSD 7.1, and DTrace for user processes will be in 9.0 (with
backports to 8.2 and 7.4 later).

If your program implements its transport protocol completely in userland (by
opening raw sockets for example), then it will probably run on FreeBSD 8.1.

-- 
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: Got an error: Unknown option "DDB_CTF"

2010-11-22 Thread Weihang Wang
Hi,

Thank you so much for your help. But I am still concerned about the backward 
compatibility. 
First I have to use DTrace to instrument the kernel to do performance analysis. 
At the same time, the program I need to build on the FreeBSD is a kind of 
transport protocol, which is based on the FreeBSD 6.0. The transport protocol 
may change the network stack of the kernel networking system, so I do not know 
whether this would work.
Hope to hear from you. Thank you very much.

Best,
W.Wang

On Nov 22, 2010, at 12:08 PM, Dan Nelson wrote:

> In the last episode (Nov 22), Weihang Wang said:
>> I am a totally newbie to FreeBSD. I am building a custom kernel based on
>> FreeBSD 6.0 kernel (I have to use this version cause I need to run an
>> application which is only available for FreeBSD 6.0).  I conform to the
>> handbook to add the following lines in kernel configuration file to enable
>> DTrace support:
>> 
>> options  KDTRACE_FRAME
>> options  KDTRACE_HOOKS
>> options  DDB_CTF
>> makeoptions WITH_CTF=1
>> 
>> Then I use the following commands to recompile my kernel and install this
>> new kernel:
>> 
>> make buildkernel KERNCONF=KERNELNAME
>> make installkernel KERNCONF=KERNELNAME
>> 
>> The compiling process encounters an error: Unknown option "DDB_CTF", I
>> have no idea how to fix this?
> 
> Just remove all references to CTF; that's for Dtrace support, which doesn't
> exist in the 6.* branch.
> 
> You might also want to try running your application on FreeBSD 8.1 after
> installing the misc/compat6x package.  Backwards binary compatibility
> support is very good.
> 
> -- 
>   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"

___
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: Got an error: Unknown option "DDB_CTF"

2010-11-22 Thread Dan Nelson
In the last episode (Nov 22), Weihang Wang said:
> I am a totally newbie to FreeBSD. I am building a custom kernel based on
> FreeBSD 6.0 kernel (I have to use this version cause I need to run an
> application which is only available for FreeBSD 6.0).  I conform to the
> handbook to add the following lines in kernel configuration file to enable
> DTrace support:
> 
> options   KDTRACE_FRAME
> options   KDTRACE_HOOKS
> options   DDB_CTF
> makeoptions WITH_CTF=1
> 
> Then I use the following commands to recompile my kernel and install this
> new kernel:
> 
> make buildkernel KERNCONF=KERNELNAME
> make installkernel KERNCONF=KERNELNAME
> 
> The compiling process encounters an error: Unknown option "DDB_CTF", I
> have no idea how to fix this?

Just remove all references to CTF; that's for Dtrace support, which doesn't
exist in the 6.* branch.

You might also want to try running your application on FreeBSD 8.1 after
installing the misc/compat6x package.  Backwards binary compatibility
support is very good.

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