I experienced a hard drive dying on a FreeBSD 8.0 machine (several unrecoverable sectors). I cloned it to a new drive using dump and found that many files were missing from /usr (especially the php5 extensions) so restored /usr from a backup. All files except for a few in /usr/bin copied over from the backup just fine. Next I wanted to rebuild all ports so did a portmaster -af. After successfully rebuilding three ports, it coughed on gmake as follows:
and stopped dead in its tracks.
Contents of make.h.rej as follows:
I googled around for information on this issue and couldn't find anything. I tried make deinstall clean and make install to no avail. It stops and gives me the same error message. Does anyone know what I could do in this situation?
~Doug
Code:
===> Extracting for gmake-3.82
=> SHA256 Checksum OK for make-3.82.tar.bz2.
===> Patching for gmake-3.82
===> Applying FreeBSD patches for gmake-3.82
1 out of 1 hunks failed--saving rejects to make.h.rej
=> Patch patch-make.h failed to apply cleanly.
=> Patch(es) patch-ab applied cleanly.
*** Error code 1
Stop in /usr/ports/devel/gmake.
corvus-root@/usr/ports/devel/gmake:
and stopped dead in its tracks.
Contents of make.h.rej as follows:
Code:
corvus-root@/usr/ports/devel/gmake/work/make-3.82: less make.h.rej
***************
*** 33,39 ****
# ifdef _AIX
#pragma alloca
# else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
# endif
# endif
--- 33,39 ----
# ifdef _AIX
#pragma alloca
# else
+ # if !defined (alloca) && !defined (__FreeBSD__) /* predefined by HP cc +Olibcalls, part of stdlib.h on FreeBSD */
char *alloca ();
# endif
# endif
I googled around for information on this issue and couldn't find anything. I tried make deinstall clean and make install to no avail. It stops and gives me the same error message. Does anyone know what I could do in this situation?
~Doug