Re: make dev problems

2003-11-07 Thread Lowell Gilbert
"Jason Burris" <[EMAIL PROTECTED]> writes:

> > Tim Aslat <[EMAIL PROTECTED]> writes:
> >
> >> In the immortal words of "Jason Burris" <[EMAIL PROTECTED]>...
> >> > I need to compile a kernel with IPFW on a remote machine running
> >> > FreeBSD4.7.  I followed the steps listed at:
> >> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
> >>
> >> Following the handbook isn't a bad start.
> >
> > It's nice to see someone actually do it for a change.
> >
> >> > In my COMPUTERNAME config file I've add the following three
> >> lines to
> >> > the end for IPFW:
> >> >
> >> > options IPFIREWALL
> >> > options IPFIREWALL_VERBOSE
> >> > options IPFIREWALL_DEFAULT_TO_ACCEPT
> >> >
> >> > And I changed this line, which I read was necessary:
> >> >
> >> > ident COMPUTERNAME
> >>
> >> Not bad, but a more secure way would be to default to deny rather
> >> than
> >> accept, but that's personal preference.
> >
> > In this case, where the machine is remote and you could lock
> > yourself
> > out, it's probably better to default to accept instead.  Eventually,
> > there will be a firewall rule denying unmatched packets, and even
> > then
> > you have to be careful about backing out the ruleset automatically
> > if
> > you lock yourself out.
> >
> >> > I'm able to run:
> >> >
> >> > /usr/sbin/config COMPUTERNAME
> >> > cd ../../compile/COMPUTERNAME
> >> >
> >> > When I run
> >> >
> >> > make depend
> >> >
> >> > Everything runs fine until it dies with the error:
> >> >
> >> > make: don't know how to make iconv.h.
> >> > Stop*** Error code 2
> >> > Stop in /usr/src/sys/modules.***
> >> > Error code 1
> >> >
> >> > I've checked and this file is in my /usr/src/sys directory.What
> >> am I
> >> > doing wrong?  Do I even need this header to be compiled intothe
> >> > kernel?
> >>
> >> You might want to try the "newer" method of building a kernel.
> >>
> >> cd /usr/src
> >> make buildkernel KERNCONF=COMPUTERNAME
> >> 
> >> make installkernel KERNCONF=COMPUTERNAME
> >
> > I don't think that will be any better.  Either way, he needs to have
> > sources that match his system, and the "old" way will work fine when
> > that is the case.
> >
> 
> The system didn't have the sources, so I downloaded the first CD ISO
> and extracted them from there into:
> 
> /usr/src/sys
> 
> Could there be more sources that I need to extract?

Where did you get the ISO from?  Is it for the exact same version as
the system you're already running?  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make dev problems

2003-11-06 Thread Tim Aslat
In the immortal words of "Jason Burris" <[EMAIL PROTECTED]>...
> The system didn't have the sources, so I downloaded the first CD ISO
> and extracted them from there into:
> 
> /usr/src/sys
> 
> Could there be more sources that I need to extract?
> 
> Also I tried the suggestion:
> 
> cd /usr/src
> make buildkernel KERNCONF=COMPUTERNAME
> 
> make installkernel KERNCONF=COMPUTERNAME
> 
> And I just got the message:
> 
> make: don't know how to make buildkernel. Stop
> 
> There is nothing in my /usr/src directory besides the /sys dir.

You only have the kernel sources, you need the rest of the base sources
and a make buildworld before you can compile the kernel.

You might want to consider installing cvsup (pkg_add -rv
cvsup-without-gui) and getting the latest version of the complete
sources.

for more details, the handbook is always a good source of information.

Cheers

Tim

-- 
Tim Aslat <[EMAIL PROTECTED]>
Spyderweb Consulting
http://www.spyderweb.com.au
P: +61 8 82243020M: +61 0401088479
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make dev problems

2003-11-06 Thread Jason Burris

> Tim Aslat <[EMAIL PROTECTED]> writes:
>
>> In the immortal words of "Jason Burris" <[EMAIL PROTECTED]>...
>> > I need to compile a kernel with IPFW on a remote machine running
>> > FreeBSD4.7.  I followed the steps listed at:
>> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
>>
>> Following the handbook isn't a bad start.
>
> It's nice to see someone actually do it for a change.
>
>> > In my COMPUTERNAME config file I've add the following three
>> lines to
>> > the end for IPFW:
>> >
>> > options IPFIREWALL
>> > options IPFIREWALL_VERBOSE
>> > options IPFIREWALL_DEFAULT_TO_ACCEPT
>> >
>> > And I changed this line, which I read was necessary:
>> >
>> > ident COMPUTERNAME
>>
>> Not bad, but a more secure way would be to default to deny rather
>> than
>> accept, but that's personal preference.
>
> In this case, where the machine is remote and you could lock
> yourself
> out, it's probably better to default to accept instead.  Eventually,
> there will be a firewall rule denying unmatched packets, and even
> then
> you have to be careful about backing out the ruleset automatically
> if
> you lock yourself out.
>
>> > I'm able to run:
>> >
>> > /usr/sbin/config COMPUTERNAME
>> > cd ../../compile/COMPUTERNAME
>> >
>> > When I run
>> >
>> > make depend
>> >
>> > Everything runs fine until it dies with the error:
>> >
>> > make: don't know how to make iconv.h.
>> > Stop*** Error code 2
>> > Stop in /usr/src/sys/modules.***
>> > Error code 1
>> >
>> > I've checked and this file is in my /usr/src/sys directory.What
>> am I
>> > doing wrong?  Do I even need this header to be compiled intothe
>> > kernel?
>>
>> You might want to try the "newer" method of building a kernel.
>>
>> cd /usr/src
>> make buildkernel KERNCONF=COMPUTERNAME
>> 
>> make installkernel KERNCONF=COMPUTERNAME
>
> I don't think that will be any better.  Either way, he needs to have
> sources that match his system, and the "old" way will work fine when
> that is the case.
>

The system didn't have the sources, so I downloaded the first CD ISO
and extracted them from there into:

/usr/src/sys

Could there be more sources that I need to extract?

Also I tried the suggestion:

cd /usr/src
make buildkernel KERNCONF=COMPUTERNAME

make installkernel KERNCONF=COMPUTERNAME

And I just got the message:

make: don't know how to make buildkernel. Stop

There is nothing in my /usr/src directory besides the /sys dir.

Thanks for all the help.

_
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>


:wq!
Jason
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make dev problems

2003-11-06 Thread Lowell Gilbert
Tim Aslat <[EMAIL PROTECTED]> writes:

> In the immortal words of "Jason Burris" <[EMAIL PROTECTED]>...
> > I need to compile a kernel with IPFW on a remote machine running
> > FreeBSD4.7.  I followed the steps listed at:
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
> 
> Following the handbook isn't a bad start.

It's nice to see someone actually do it for a change.

> > In my COMPUTERNAME config file I've add the following three lines to
> > the end for IPFW:
> > 
> > options IPFIREWALL
> > options IPFIREWALL_VERBOSE
> > options IPFIREWALL_DEFAULT_TO_ACCEPT
> > 
> > And I changed this line, which I read was necessary:
> > 
> > ident COMPUTERNAME
> 
> Not bad, but a more secure way would be to default to deny rather than
> accept, but that's personal preference.

In this case, where the machine is remote and you could lock yourself
out, it's probably better to default to accept instead.  Eventually,
there will be a firewall rule denying unmatched packets, and even then
you have to be careful about backing out the ruleset automatically if
you lock yourself out.

> > I'm able to run:
> > 
> > /usr/sbin/config COMPUTERNAME
> > cd ../../compile/COMPUTERNAME
> > 
> > When I run
> > 
> > make depend
> > 
> > Everything runs fine until it dies with the error:
> > 
> > make: don't know how to make iconv.h.
> > Stop*** Error code 2
> > Stop in /usr/src/sys/modules.***
> > Error code 1
> > 
> > I've checked and this file is in my /usr/src/sys directory.What am I
> > doing wrong?  Do I even need this header to be compiled intothe
> > kernel?
> 
> You might want to try the "newer" method of building a kernel.
> 
> cd /usr/src
> make buildkernel KERNCONF=COMPUTERNAME
> 
> make installkernel KERNCONF=COMPUTERNAME

I don't think that will be any better.  Either way, he needs to have
sources that match his system, and the "old" way will work fine when
that is the case.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make dev problems

2003-11-06 Thread Tim Aslat
In the immortal words of "Jason Burris" <[EMAIL PROTECTED]>...
> I need to compile a kernel with IPFW on a remote machine running
> FreeBSD4.7.  I followed the steps listed at:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html

Following the handbook isn't a bad start.

> In my COMPUTERNAME config file I've add the following three lines to
> the end for IPFW:
> 
> options IPFIREWALL
> options IPFIREWALL_VERBOSE
> options IPFIREWALL_DEFAULT_TO_ACCEPT
> 
> And I changed this line, which I read was necessary:
> 
> ident COMPUTERNAME

Not bad, but a more secure way would be to default to deny rather than
accept, but that's personal preference.

> I'm able to run:
> 
> /usr/sbin/config COMPUTERNAME
> cd ../../compile/COMPUTERNAME
> 
> When I run
> 
> make depend
> 
> Everything runs fine until it dies with the error:
> 
> make: don't know how to make iconv.h.
> Stop*** Error code 2
> Stop in /usr/src/sys/modules.***
> Error code 1
> 
> I've checked and this file is in my /usr/src/sys directory.What am I
> doing wrong?  Do I even need this header to be compiled intothe
> kernel?

You might want to try the "newer" method of building a kernel.

cd /usr/src
make buildkernel KERNCONF=COMPUTERNAME

make installkernel KERNCONF=COMPUTERNAME

Cheers

Tim


-- 
Tim Aslat <[EMAIL PROTECTED]>
Spyderweb Consulting
http://www.spyderweb.com.au
P: +61 8 82243020M: +61 0401088479
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"