13-BETA3 installation from source problems.

Dean E. Weimer dweimer at dweimer.net
Tue Feb 23 02:55:19 UTC 2021


On 2021-02-22 5:52 pm, Warner Losh wrote:

> What does this patch do for you?
> 
> diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile
> index ad95948ec50a..cbbe15bd1fc0 100644
> --- a/stand/i386/loader/Makefile
> +++ b/stand/i386/loader/Makefile
> @@ -90,7 +90,8 @@ FILES+=       ${LOADER}
> FILESMODE_${LOADER}= ${BINMODE} -b
> 
> # XXX crt0.o needs to be first for pxeboot(8) to work
> -OBJS=  ${BTXCRT}
> +# Can't add it to OBJS w/o pain and suffering
> +LDFLAGS+=      ${BTXCRT}
> 
> DPADD= ${LDR_INTERP32} ${LIBFIREWIRE} ${LIBI386} ${LIBSA32}
> LDADD= ${LDR_INTERP32} ${LIBFIREWIRE} ${LIBI386} ${LIBSA32}
> 
> Anything?
> 
> Warner

Success, mostly anyways. I tried copying and pasting above into a file 
(/tmp/patch) and using patch < /tmp/patch from usr/src. It failed to 
apply, so I just manually edited file, removed OBJS= line and added the 
comment and LDFLAGS+= line. ran make clean in usr/src/stand and then 
from usr/src ran make -DNO_CLEAN buildworld, then buildinstall 
completed. Don't know if email client added a special character that 
screwed up patch or I just did it wrong, but the fix appears to have 
worked.

-- 
Thanks,
    Dean E. Weimer
    http://www.dweimer.net/


More information about the freebsd-stable mailing list