Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2007 02:14:08 +0000
From:      "brad davison" <demonichandextensions@hotmail.com>
To:        keramida@ceid.upatras.gr
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cannot rebuild Sendmail (with sasl2)
Message-ID:  <BAY116-F34A132EF765E6A354FCA20A1CD0@phx.gbl>
In-Reply-To: <20070829220509.GB1641@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help

I wanted to make sure my sources were up to date, so here is a snip from my 
'script'


> > Hello.
> > I am a new FreeBSD user (almost converted from Linux).  My company is
> > switching over mail servers from an (expensive and old) Red Hat server
> > to FreeBSD 6.2.
>
>Yippie!  Welcome to the FreeBSD side of the world :-) :-)
>
> > I have gotten nearly everything configured and running smoothly except
> > for SMTP AUTH.
> >
> > Before I tried to build in the SASL2 stuff, I had done a full src-all
> > update via cvsup, and at that time, I was able to rebuild sendmail,
> > and rebuild the world.
> >
> > After installing the cyrus-sasl2-saslauthd port, I am now unable to
> > rebuild sendmail and/or The World.
>
>You need the security/cyrus-sasl2 port, not sasl2-saslauthd.


I have the cyrus-sasl2 as well as cyrus-sasl2-saslauthd installed

newmail# pkg_version -v
...............................
cyrus-sasl-2.1.22                   =   up-to-date with port
cyrus-sasl-saslauthd-2.1.22         =   up-to-date with port
.................................
>
> > Whether I am rebuilding sendmail or the World, I get an error on
> > libsmutil.a.
> > Specifically :
> >
> > make: don't know how to make 
>/usr/src/usr.sbin/sendmail/../../lib/libsmutil/libsmutil.a.
> > Stop
>
>You haven't provided enough context for us to find out what is
>going on.  In the future, if you bump against similar errors,
>it may be useful to keep a full log of the build commands that
>failed, i.e. by running thm inside script(1):
>
>     % script
>     Script started, output file is typescript
>     % make buildworld buildkernel
>       [ snip output ]
>     % exit
>     exit
>
>     Script done, output file is typescript
>     %
>
>Then you can attach the file 'typescript', or filter the file
>through col(1) to convert it to plain ASCII text and insert its
>contents in an email.
> >
> > after doing a 'find / -name libsmutil.a'
> > libsmutil.a exists at: /usr/obj/usr/src/lib/libsmutil/libsmutil.a
>
>The libsmutil.a library builds fine here with the following in
>my `make.conf' file:
>
>     SENDMAIL_CFLAGS=    -I/usr/local/include -DSASL=2
>     SENDMAIL_LDFLAGS=   -L/usr/local/lib
>     SENDMAIL_LDADD=     -lsasl2
>
>Can you show us what your `make.conf' looks like, and describe how you
>tried to build Sendmail?

here is my make.conf
# SASL (cyrus-sasl v2) sendmail build flags...
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
# Adding to enable alternate port (smtps) for sendmail...
SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL
# added by use.perl 2007-08-28 00:53:33
PERL_VER=5.8.8
PERL_VERSION=5.8.8

here is my script ... I wanted to make sure my sources were up to date so i 
did cvsup first (with src-all as all i was getting, I had just done this 2 
days ago, but I wanted to make sure)
Script started on Thu Aug 30 07:59:12 2007
newmail# cvsup standard-supfile
Connected to cvsup5.us.FreeBSD.org
Updating collection src-all/cvs
Finished successfully
newmail# cd /usr/src
newmail# pwd
/usr/src
newmail# make buildworld

--------------------------------------------------------------
>>>Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/usr/src/tmp
mkdir -p /usr/obj/usr/src/tmp/legacy/usr/bin
mkdir -p /usr/obj/usr/src/tmp/legacy/usr/games

[snip --- > an hour or so goes by]

cc -O2 -fno-strict-aliasing -pipe  
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS -D_FFR_TLS_1 
-D_FFR_DEAL_WITH_ERROR_SSL -I/usr/local/include -DSASL=2 -std=iso9899:1990  
-c /usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/util.c
cc -O2 -fno-strict-aliasing -pipe  
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS -D_FFR_TLS_1 
-D_FFR_DEAL_WITH_ERROR_SSL -I/usr/local/include -DSASL=2 -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
*** Error code 2

Stop in /usr/src/usr.sbin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1


First I tried:
    # cd /usr/src/usr.sbin/sendmail
    # make clean
    # make depend
    # make
    # make install

When that failed I tried:
    # cd /usr/src/lib/libsm
    # make obj
    # make depend
    # make
    # cd /usr/src/lib/libsmutil
    # make obj
    # make depend
    # make
    # cd /usr/src/usr.sbin/sendmail
    # make obj
    # make depend
    # make
    # make install

Finally when that failed I tried:
    # cd /usr/src/lib/libsm
    # make clean
    # cd /usr/src/lib/libsmutil
    # make clean
    # cd /usr/src/usr.sbin/sendmail
    # make clean
    # cd /usr/src/lib/libsm
    # make obj
    # make depend
    # make
    # cd /usr/src/lib/libsmutil
    # make obj
    # make depend
    # make
    # cd /usr/src/usr.sbin/sendmail
    # make obj
    # make depend
    # make
    # make install

Does that help you to help me? I appreciate your time.

-Brad
>
>- Giorgos

_________________________________________________________________
Tease your brain--play Clink! Win cool prizes! 
http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY116-F34A132EF765E6A354FCA20A1CD0>