Re: Re: What's the simplest way to get a fresh copy of the source code for the system

2009-02-24 Thread af300wsm

On Feb 23, 2009 6:41am, Erich Dollansky  wrote:

Hi,





On Mon, 2009-02-23 at 01:15 +, af300...@gmail.com wrote:





> My churches web server is having problems compiling world for FreeBSD


> 7.0-p10 (I believe I just did the csup last night). It gets to this  
point



> and then stops with this error:





so, you did what you are supposed to do to get the latest source.



>


> So, basically, the question for everyone here is, what's the simplest  
way


> to get a fresh source code tree so that I can build the world  
applications?



>



If you want to make sure that nothing damaged is in your way, delete



everything under /usr/src except of your configuration file.





You also could use this to upgrade to 7.1.



I have considered that. There are a few ports installed on this system  
however, MySQL and Apache being the most important. How does one go about  
upgrading to a newer release and ensuring that the ports of "pristine" also  
when the upgrade is completed.


I was thinking of this approach, please advise if I'm mistaken.

1) comment all installed ports from auto-loading in rc.conf
2) upgrade kernel to newest release (7.1)
3) upgrade user land applications
4) csup the ports tree
5) portupgrade -a
6) uncomment the commented lines from rc.conf
7) reboot and hope all works as planned

Does this sound appropriate?

Andy
___
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: What's the simplest way to get a fresh copy of the source code for the system

2009-02-23 Thread Erich Dollansky
Hi,

On Mon, 2009-02-23 at 01:15 +, af300...@gmail.com wrote:

> My churches web server is having problems compiling world for FreeBSD  
> 7.0-p10 (I believe I just did the csup last night). It gets to this point  
> and then stops with this error:

so, you did what you are supposed to do to get the latest source.
> 
> So, basically, the question for everyone here is, what's the simplest way  
> to get a fresh source code tree so that I can build the world applications?
> 
If you want to make sure that nothing damaged is in your way, delete
everything under /usr/src except of your configuration file.

You also could use this to upgrade to 7.1.

Erich

___
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: What's the simplest way to get a fresh copy of the source code for the system

2009-02-23 Thread Lowell Gilbert
af300...@gmail.com writes:

> On Feb 23, 2009 10:43am, Roland Smith  wrote:
>> On Mon, Feb 23, 2009 at 01:15:16AM +, af300...@gmail.com wrote:
>
>> > Hi,
>
>> >
>
>> > My churches web server is having problems compiling world for FreeBSD
>
>> > 7.0-p10 (I believe I just did the csup last night). It gets to
>> this  point
>
>> > and then stops with this error:
>
>> >
>
>> > touch gtype-desc.h
>
>> > touch: No such file or directory
>
>
>
>> The file gtype-desc.h doesn't exist on my 7.1 system.
>
>> I think that this means that the 'touch' binary is missing. See below.
>
> I had over looked that possibility but I agree now that you mention it
> especially in light of reading your further comments below.

Note that it should probably be using the newly-built touch(1) at that
point, so one possibility is that make(1) is confused, possibly by an
incorrect clock.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: Re: What's the simplest way to get a fresh copy of the source code for the system

2009-02-23 Thread Robert Huff

af300...@gmail.com writes:

>  I'ma little unclear about how to build individual programs from
>  within the source tree. Can you please explain how I'd do this?

Assuming 1) you have the source tree installed, and 2) it and
the kernel are of compatible versions (shouldn't be a problem here):

cd /usr/src/usr.bin/touch
make clean && make && make install && make clean


Robert Huff



___
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: Re: What's the simplest way to get a fresh copy of the source code for the system

2009-02-23 Thread Roland Smith
On Mon, Feb 23, 2009 at 06:27:06PM +, af300...@gmail.com wrote:
>  On Feb 23, 2009 10:43am, Roland Smith  wrote:
>  > On Mon, Feb 23, 2009 at 01:15:16AM +, af300...@gmail.com wrote:
>  >
>  > > Hi,
>  >
>  > >
>  >
>  > > My churches web server is having problems compiling world for FreeBSD
>  >
>  > > 7.0-p10 (I believe I just did the csup last night). It gets to this point
>  >
>  > > and then stops with this error:
>  >
>  > >
>  >
>  > > touch gtype-desc.h
>  >
>  > > touch: No such file or directory
>  >
>  >
>  >
>  > The file gtype-desc.h doesn't exist on my 7.1 system.
>  >
>  > I think that this means that the 'touch' binary is missing. See below.
> 
>  I had over looked that possibility but I agree now that you mention it 
> especially in light of
>  reading your further comments below.
> 
>  >
>  >
>  >
>  > Touch should never complain about missing files, because one of its
>  >
>  > purposes is to create files that don't exist. So it is probably the
>  >
>  > 'touch' binary itself is missing. Try 'which touch'. It should report
>  >
>  > '/usr/bin/touch'. If it doesn't, touch is MIA.
>  >
>  >
>  >
>  > It might be saved in the lost+found directory of the partition that
>  >
>  > holds /usr/bin.
>  >
>  >
>  >
>  > The easiest way to get it back is to just build touch. Or copy it from
>  >
>  > the install/live-cd.
> 
>  I'm a little unclear about how to build individual programs from within the 
> source tree. Can you
>  please explain how I'd do this?

I think the correct way is to do the following:

  cd /usr/src/usr.bin/touch
  make obj && make depend && make && make install

This should build the binary in a directory under /usr/obj. When it's
done you can remove /usr/obj/*

Not to put too fine a point on it, but it might be a good idea to start
thinking about making backups... 

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpIE04m2b4Ni.pgp
Description: PGP signature


Re: Re: What's the simplest way to get a fresh copy of the source code for the system

2009-02-23 Thread af300wsm

On Feb 23, 2009 10:43am, Roland Smith  wrote:

On Mon, Feb 23, 2009 at 01:15:16AM +, af300...@gmail.com wrote:



> Hi,



>



> My churches web server is having problems compiling world for FreeBSD


> 7.0-p10 (I believe I just did the csup last night). It gets to this  
point



> and then stops with this error:



>



> touch gtype-desc.h



> touch: No such file or directory





The file gtype-desc.h doesn't exist on my 7.1 system.



I think that this means that the 'touch' binary is missing. See below.


I had over looked that possibility but I agree now that you mention it  
especially in light of reading your further comments below.






Touch should never complain about missing files, because one of its



purposes is to create files that don't exist. So it is probably the



'touch' binary itself is missing. Try 'which touch'. It should report



'/usr/bin/touch'. If it doesn't, touch is MIA.





It might be saved in the lost+found directory of the partition that



holds /usr/bin.





The easiest way to get it back is to just build touch. Or copy it from



the install/live-cd.


I'ma little unclear about how to build individual programs from within the  
source tree. Can you please explain how I'd do this?


Thanks,
Andy
___
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: What's the simplest way to get a fresh copy of the source code for the system

2009-02-23 Thread Roland Smith
On Mon, Feb 23, 2009 at 01:15:16AM +, af300...@gmail.com wrote:
> Hi,
> 
> My churches web server is having problems compiling world for FreeBSD  
> 7.0-p10 (I believe I just did the csup last night). It gets to this point  
> and then stops with this error:
> 
> touch gtype-desc.h
> touch: No such file or directory

The file gtype-desc.h doesn't exist on my 7.1 system.
I think that this means that the 'touch' binary is missing. See below.

> A little history for what's going on; the server was not responding at all  
> so I took it home to diagnose (it was at a friends house, where it's  
> hosted). I turned it on and it booted up ok for me, which was a little odd  
> because he told me that it wasn't doing "anything." So, I began looking the  
> system over. Within 10 minutes the system became slow and was rather  
> unresponsive to things. For example, saves while running vim took 20  
> seconds or so. Within a few minutes the kernel panicked and I had to reboot.
> 
> Before the panic I noticed that there were some background file system  
> checks going. So, since it was rebooting anyway I went into single user  
> mode and performed fsck on all of the partitions (except the root, that was  
> marked as clean). There were many problems fixed especially on the /usr  
> partition. I'm betting that this missing file, gtype-desc.h, happens to  
> have been one of the many problems fixed.

Touch should never complain about missing files, because one of its
purposes is to create files that don't exist. So it is probably the
'touch' binary itself is missing. Try 'which touch'. It should report
'/usr/bin/touch'. If it doesn't, touch is MIA.

It might be saved in the lost+found directory of the partition that
holds /usr/bin.
 
The easiest way to get it back is to just build touch. Or copy it from
the install/live-cd.

If your source tree really is corrupt, use csup(1) to update it.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpjdds54zYI9.pgp
Description: PGP signature


What's the simplest way to get a fresh copy of the source code for the system

2009-02-22 Thread af300wsm

Hi,

My churches web server is having problems compiling world for FreeBSD  
7.0-p10 (I believe I just did the csup last night). It gets to this point  
and then stops with this error:


touch gtype-desc.h
touch: No such file or directory

A little history for what's going on; the server was not responding at all  
so I took it home to diagnose (it was at a friends house, where it's  
hosted). I turned it on and it booted up ok for me, which was a little odd  
because he told me that it wasn't doing "anything." So, I began looking the  
system over. Within 10 minutes the system became slow and was rather  
unresponsive to things. For example, saves while running vim took 20  
seconds or so. Within a few minutes the kernel panicked and I had to reboot.


Before the panic I noticed that there were some background file system  
checks going. So, since it was rebooting anyway I went into single user  
mode and performed fsck on all of the partitions (except the root, that was  
marked as clean). There were many problems fixed especially on the /usr  
partition. I'm betting that this missing file, gtype-desc.h, happens to  
have been one of the many problems fixed.


At any rate, after running the file system checks I rebooted normally and  
everything appears to be fine. I then updated the system and kernel source  
code and that's when I found this problem. The kernel built ok and I've had  
the system running for up to 2 hours since fixing the file systems without  
incident. It's apparently corrupted file systems rather than hardware.  
Never the less, I will be turning up what smartd is monitoring because I do  
have it running and received no e-mail about hard drive problems.


So, basically, the question for everyone here is, what's the simplest way  
to get a fresh source code tree so that I can build the world applications?


Thanks,
Andy
___
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"