Re: Cannot rebuild Sendmail (with sasl2)



On 2007-08-30 17:48, brad davison <demonichandextensions@xxxxxxxxxxx> wrote:
Thank you for your help.

We seem to be further now. Running the 'make cleandir' twice seems to have
gotten us past that hangup. Now the buildworld and buildkernel and
installkernel all worked.

It seems, however, that the -DSASL=2 did not take, because now, when I
reboot (or restart sendmail) I get:

Warning: Option: AuthMechanisms requires SASL support (-DSASL)

Also, building Sendmail from /usr/src/usr.sbin/sendmail gives the old error
message
......................................
cc -O2 -fno-strict-aliasing -pipe
[...]
-std=iso9899:1990 -c
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/version.c
make: don't know how to make
/usr/src/usr.sbin/sendmail/../../lib/libsmutil/libsmutil.a. Stop
....................................................

That's because to 'reuse' the existing object code (compiled during the
last buildworld and stored in /usr/obj) you have to set in your shell's
environment the MAKEOBJDIRPREFIX variable.

If you run buildworld with csh as your shell, this would be:

csh# setenv MAKEOBJDIRPREFIX /usr/obj

If you are using /bin/sh use:

# export MAKEOBJDIRPREFIX=/usr/obj

Then you should try:

# cd /usr/src/usr.sbin/sendmail
# make cleandir && make cleandir
# make obj depend all

If you are (but the buildworld did finish successfully including the
sendmail piece, which did have the -DSASL=2 in the make.conf.)

I don't know why your buildworld seems to have picked the wrong settings
from make.conf. Are you *sure* you run a clean build? This would
require:

1. Removing /usr/obj

2. Running "make cleandir cleandir" in /usr/src

3. Checking /etc/make.conf

4. Running "buildworld buildkernel"

5. Installing everything, following the instructions
from /usr/src/UPDATING

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: 5.2.1-p8 -> -CURRENT: Fatal trap 12
    ... >> buildworld, buildkernel, installkernel, and was trying to reboot ...
    (freebsd-current)
  • Re: sockstat problem
    ... #make installkernel KERNCONF=TEST ... The buildworld should proceed the buildkernel ...
    (freebsd-questions)
  • Re: gcc34
    ... > declaration of function `memset' ... buildworld, make buildkernel, make installkernel, make installworld ... the buildkernel target will utilize this newly built gcc3.4 in /usr/obj. ...
    (freebsd-questions)
  • make installworld - permission denied
    ... Urgh, it was all going so well. ... #make buildkernel KERNCONF=L004 ... this is my first buildworld. ...
    (freebsd-questions)
  • /bin/sh terminated abnormally
    ... #buildkernel KERNCONF=GENERIC ... #installkernel KERNCONF=GENERIC ... To unsubscribe, ...
    (freebsd-current)