Sendmail 8.14.2 on Fedora 8

Sendmail 8.14.2 on Fedora 8

am 10.04.2008 15:54:30 von d1g1t4l.n1nja

Hello,

I'm trying to compile Sendmail 8.14.2 on Fedora 8 but I keep getting
this error:

----------------------------
cc -o sendmail -L/lib -L/usr/lib -L/home/test_acct/Desktop/regex-
markup-0.10.0/lib main.o alias.o arpadate.o bf.o collect.o conf.o
control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o
headers.o macro.o map.o mci.o milter.o mime.o parseaddr.o queue.o
ratectrl.o readcf.o recipient.o sasl.o savemail.o sfsasl.o
shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o
timers.o tls.o trace.o udb.o usersmtp.o util.o version.o /home/
test_acct/Desktop/sendmail-8.14.2/obj.Linux.2.6.24.4-64.fc8. i686/
libsmutil/libsmutil.a /home/test_acct/Desktop/sendmail-8.14.2/
obj.Linux.2.6.24.4-64.fc8.i686/libsm/libsm.a -ldb -lresolv -lcrypt
-lnsl -ldl -lssl -lcrypto -lldap -llber -lhesiod
conf.o: In function `validate_connection':
conf.c:(.text+0x122b): undefined reference to `hosts_ctl'
collect2: ld returned 1 exit status
make[1]: *** [sendmail] Error 1
---------------------------

I know it has something to do with TCPWRAPPERS but I have v7.6.2
installed (which is the latest version). Anyone have any idea what I
have to do to get it to compile?

Thnx

Re: Sendmail 8.14.2 on Fedora 8

am 10.04.2008 22:31:26 von John Thompson

On 2008-04-10, d1g1t4l.n1nja@gmail.com wrote:

> I'm trying to compile Sendmail 8.14.2 on Fedora 8 but I keep getting
> this error:
>
> ----------------------------
> cc -o sendmail -L/lib -L/usr/lib -L/home/test_acct/Desktop/regex-
> markup-0.10.0/lib main.o alias.o arpadate.o bf.o collect.o conf.o
> control.o convtime.o daemon.o deliver.o domain.o envelope.o err.o
> headers.o macro.o map.o mci.o milter.o mime.o parseaddr.o queue.o
> ratectrl.o readcf.o recipient.o sasl.o savemail.o sfsasl.o
> shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o sysexits.o
> timers.o tls.o trace.o udb.o usersmtp.o util.o version.o /home/
> test_acct/Desktop/sendmail-8.14.2/obj.Linux.2.6.24.4-64.fc8. i686/
> libsmutil/libsmutil.a /home/test_acct/Desktop/sendmail-8.14.2/
> obj.Linux.2.6.24.4-64.fc8.i686/libsm/libsm.a -ldb -lresolv -lcrypt
> -lnsl -ldl -lssl -lcrypto -lldap -llber -lhesiod
> conf.o: In function `validate_connection':
> conf.c:(.text+0x122b): undefined reference to `hosts_ctl'
> collect2: ld returned 1 exit status
> make[1]: *** [sendmail] Error 1
> ---------------------------
>
> I know it has something to do with TCPWRAPPERS but I have v7.6.2
> installed (which is the latest version). Anyone have any idea what I
> have to do to get it to compile?

sendmail-8.14.2 is already included with the Fedora8 base distribution;
why are you trying to compile it? If you need special options compiled
into sendmail, I recommend downloading the source rpm, editing the spec
file to include those features and using rpmbuild to build a new rpm
package for your needs.

--

John (john@os2.dhs.org)

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 00:52:21 von unknown

Post removed (X-No-Archive: yes)

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 03:52:06 von cmadams

Once upon a time, Res said:
>Maybe he's trying to avoid the hacking, butchering, mutilating and
>everything else that the fedora mob usually do with all the programs they
>put into it, in other words maybe he wants a true to form Sendmail and
>not a 'you will use sendmail this way' type of package, and how do we know
>the compile message is not from an rpm rebuild or whatever.

You might want to look at the Fedora sendmail SRPM before you jerk that
knee right off. Really, the only significant change is that they move
the default location of aliases in /etc vs. /etc/mail for backwards
compatibility.

--
Chris Adams
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 05:13:16 von unknown

Post removed (X-No-Archive: yes)

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 14:34:23 von d1g1t4l.n1nja

On Apr 10, 11:13 pm, Res wrote:
> On Thu, 10 Apr 2008, Chris Adams wrote:
>
> > Once upon a time, Res said:
> >> Maybe he's trying to avoid the hacking, butchering, mutilating and
> >> everything else that the fedora mob usually do with all the programs they
> >> put into it, in other words maybe he wants a true to form Sendmail and
> >> not a 'you will use sendmail this way' type of package, and how do we know
> >> the compile message is not from an rpm rebuild or whatever.
>
> > You might want to look at the Fedora sendmail SRPM before you jerk that
> > knee right off. Really, the only significant change is that they move
> > the default location of aliases in /etc vs. /etc/mail for backwards
> > compatibility.
>
> they split it up so its in couple packages or did they in fc8 do away
> with the sendmail-cf package and whatever else, they also compile in
> tcpwrappers support, thats not default. RH as you very well know (yeah I
> know who you are) butcher many programs to suit their own internal BS
> politics. If sendmail was supposed to be in 3 packaged I'm sure it'd be
> released at sendmail.org in 3 packages, just like about every other bit,
> however I perhaps should point out to the OP that fedora as a 'fast
> changing bleeding edge *cough* distro' (their own words) is not
> recommended for critical operations (again their own words).
>
> I'd be more or less suggesting an OS distro that doesnt screw with things,
> hence why I use Slackware and Solaris for servers, on desktops Ubuntu
> is a winner sicne it doesnt have teh BS politics regarding what goes into
> it, nor governed by U.S laws.
>
> --
> Cheers
> Res
>
> mysql> update auth set Framed-IP-Address='127.0.0.127' where user= 'troll';

My reasoning behind doing a fresh compilation is just that... I want
to build Sendmail with my own options. I know FC8 comes with Sendmail.
I even did a 'yum install sendmail-8.14*' just so I'd have the latest
but since I've always compiled from source on my Solaris boxes, I
wanted to do the same on my FC8 box. Everything compiles but I just
have that 1 error and I would rather it compile without errors.
Warnings are fine, errors are not. Not to mention that I wanted to
make sure my 'yum' installed package had the latest TCPWRAPPERS
compiled into it.

Now I know nothing about C++ / C# programming but it looks to me like
the function is undefined but I don't know how to edit it to make it
pass the compilation and I figured, If RH can get it to compile then
why can't I :o) LoL ... I know it's got something to do with
TCPWRAPPERS and I've looked inside the 'tcpd.h' file plus I've been to
all the sites and the code looks identical to what Weist has and some
other sites. I'm compiling with the latest GCC and LIBC libraries.
I've D/L'd, compiled and installed TCPWRAPPERS v7.6 (which compiled
fine).

I'm not sure what the problem is at this point.

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 16:10:41 von Ignoramus9437

On 2008-04-10, Res wrote:
> On Thu, 10 Apr 2008, John Thompson wrote:
>
>> sendmail-8.14.2 is already included with the Fedora8 base distribution;
>> why are you trying to compile it? If you need special options compiled
>
> Maybe he's trying to avoid the hacking, butchering, mutilating and
> everything else that the fedora mob usually do with all the programs they
> put into it, in other words maybe he wants a true to form Sendmail and
> not a 'you will use sendmail this way' type of package, and how do we know
> the compile message is not from an rpm rebuild or whatever.
>
>

Maybe he would even switch to ubuntu because of all this, as I did.

i

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 16:13:30 von Ignoramus9437

On 2008-04-11, Res wrote:
> On Thu, 10 Apr 2008, Chris Adams wrote:
>
>>
>> Once upon a time, Res said:
>>> Maybe he's trying to avoid the hacking, butchering, mutilating and
>>> everything else that the fedora mob usually do with all the programs they
>>> put into it, in other words maybe he wants a true to form Sendmail and
>>> not a 'you will use sendmail this way' type of package, and how do we know
>>> the compile message is not from an rpm rebuild or whatever.
>>
>> You might want to look at the Fedora sendmail SRPM before you jerk that
>> knee right off. Really, the only significant change is that they move
>> the default location of aliases in /etc vs. /etc/mail for backwards
>> compatibility.
>
> they split it up so its in couple packages or did they in fc8 do away
> with the sendmail-cf package and whatever else, they also compile in
> tcpwrappers support, thats not default. RH as you very well know (yeah I
> know who you are) butcher many programs to suit their own internal BS
> politics. If sendmail was supposed to be in 3 packaged I'm sure it'd be
> released at sendmail.org in 3 packages, just like about every other bit,
> however I perhaps should point out to the OP that fedora as a 'fast
> changing bleeding edge *cough* distro' (their own words) is not
> recommended for critical operations (again their own words).
>
> I'd be more or less suggesting an OS distro that doesnt screw with things,
> hence why I use Slackware and Solaris for servers, on desktops Ubuntu
> is a winner sicne it doesnt have teh BS politics regarding what goes into
> it, nor governed by U.S laws.

Ubuntu on servers, works great, does not need any GUI.

I run it on several servers with zero problems. They dont fuck up my
sendmail.cf the way fedora did.

Ubuntu is, unfortunately, governmed by the same limitations as
Fedora.

i

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 18:41:27 von Bill Cole

In article
<16593067-4747-4ea6-853b-76addc03df04@e67g2000hsa.googlegroups.com>,
"Who Cares?" wrote:
[...]
> My reasoning behind doing a fresh compilation is just that... I want
> to build Sendmail with my own options. I know FC8 comes with Sendmail.
> I even did a 'yum install sendmail-8.14*' just so I'd have the latest
> but since I've always compiled from source on my Solaris boxes, I
> wanted to do the same on my FC8 box. Everything compiles but I just
> have that 1 error and I would rather it compile without errors.
> Warnings are fine, errors are not. Not to mention that I wanted to
> make sure my 'yum' installed package had the latest TCPWRAPPERS
> compiled into it.
>
> Now I know nothing about C++ / C# programming but it looks to me like
> the function is undefined but I don't know how to edit it to make it
> pass the compilation and I figured, If RH can get it to compile then
> why can't I :o) LoL ... I know it's got something to do with
> TCPWRAPPERS and I've looked inside the 'tcpd.h' file plus I've been to
> all the sites and the code looks identical to what Weist has and some
> other sites. I'm compiling with the latest GCC and LIBC libraries.
> I've D/L'd, compiled and installed TCPWRAPPERS v7.6 (which compiled
> fine).
>
> I'm not sure what the problem is at this point.

It's a link problem with tcpwrappers, possibly related to ones discussed
here 5 years ago (see
http://groups.google.com/group/comp.mail.sendmail/browse_frm /thread/5cf30
20aa8137682/fae0519a2b91e81f ) and 8 months ago (see
http://groups.google.com/group/comp.mail.sendmail/browse_frm /thread/bf339
2798206bd79/961acb61f10a22f2 )

The source of the problem is that libwrap requires programs that it is
linked into to define various functions, so if you attempt to link it
into a program that does not define those functions (perhaps because the
program does not actually make any use of libwrap,) the link fails. The
Sendmail build system compiles and links many different programs and
libraries, but since only the sendmail binary actually uses libwrap,
only it has those functions defined at link time. If you configure the
Sendmail build system to include libwrap in all components, some will
fail at link time.

If you have these lines or their equivalents in your
devtools/Site/site.config.m4:

APPENDDEF(`confENVDEF', `-DTCPWRAPPERS')
APPENDDEF(`confLIBS', `-lwrap')

You should replace them with:

APPENDDEF(`conf_sendmail_ENVDEF', `-DTCPWRAPPERS')
APPENDDEF(`conf_sendmail_LIBS', `-lwrap')

You also need to make sure that you have coherent -I flags in
confINCDIRS that relate to -L (and -R on some platforms) flags in
confLIBDIRS so that you have the right headers for the the libraries you
are linking to. Depending on how your tcpwrappers package is installed,
you may or may not need to use those macros, since the build system will
search the standard system include and library directories.

--
Now where did I hide that website...

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 18:57:16 von d1g1t4l.n1nja

On Apr 11, 12:41 pm, Bill Cole wrote:
> In article
> <16593067-4747-4ea6-853b-76addc03d...@e67g2000hsa.googlegroups.com>,
> "Who Cares?" wrote:
> [...]
>
>
>
> > My reasoning behind doing a fresh compilation is just that... I want
> > to build Sendmail with my own options. I know FC8 comes with Sendmail.
> > I even did a 'yum install sendmail-8.14*' just so I'd have the latest
> > but since I've always compiled from source on my Solaris boxes, I
> > wanted to do the same on my FC8 box. Everything compiles but I just
> > have that 1 error and I would rather it compile without errors.
> > Warnings are fine, errors are not. Not to mention that I wanted to
> > make sure my 'yum' installed package had the latest TCPWRAPPERS
> > compiled into it.
>
> > Now I know nothing about C++ / C# programming but it looks to me like
> > the function is undefined but I don't know how to edit it to make it
> > pass the compilation and I figured, If RH can get it to compile then
> > why can't I :o) LoL ... I know it's got something to do with
> > TCPWRAPPERS and I've looked inside the 'tcpd.h' file plus I've been to
> > all the sites and the code looks identical to what Weist has and some
> > other sites. I'm compiling with the latest GCC and LIBC libraries.
> > I've D/L'd, compiled and installed TCPWRAPPERS v7.6 (which compiled
> > fine).
>
> > I'm not sure what the problem is at this point.
>
> It's a link problem with tcpwrappers, possibly related to ones discussed
> here 5 years ago (seehttp://groups.google.com/group/comp.mail.sendmail/browse _frm/thread/5...
> 20aa8137682/fae0519a2b91e81f ) and 8 months ago (seehttp://groups.google.com/group/comp.mail.sendmail/browse _frm/thread/b...
> 2798206bd79/961acb61f10a22f2 )
>
> The source of the problem is that libwrap requires programs that it is
> linked into to define various functions, so if you attempt to link it
> into a program that does not define those functions (perhaps because the
> program does not actually make any use of libwrap,) the link fails. The
> Sendmail build system compiles and links many different programs and
> libraries, but since only the sendmail binary actually uses libwrap,
> only it has those functions defined at link time. If you configure the
> Sendmail build system to include libwrap in all components, some will
> fail at link time.
>
> If you have these lines or their equivalents in your
> devtools/Site/site.config.m4:
>
> APPENDDEF(`confENVDEF', `-DTCPWRAPPERS')
> APPENDDEF(`confLIBS', `-lwrap')
>
> You should replace them with:
>
> APPENDDEF(`conf_sendmail_ENVDEF', `-DTCPWRAPPERS')
> APPENDDEF(`conf_sendmail_LIBS', `-lwrap')
>
> You also need to make sure that you have coherent -I flags in
> confINCDIRS that relate to -L (and -R on some platforms) flags in
> confLIBDIRS so that you have the right headers for the the libraries you
> are linking to. Depending on how your tcpwrappers package is installed,
> you may or may not need to use those macros, since the build system will
> search the standard system include and library directories.
>
> --
> Now where did I hide that website...

WOOT!! ... that did it. Changing the 'APPENDDEF' statements made the
difference. I wonder why that wasn't included in the README's.

Thanks Bill :o)

Re: Sendmail 8.14.2 on Fedora 8

am 11.04.2008 22:34:47 von John Thompson

On 2008-04-11, Ignoramus9437 wrote:

>> On Thu, 10 Apr 2008, John Thompson wrote:
>>
>>> sendmail-8.14.2 is already included with the Fedora8 base distribution;
>>> why are you trying to compile it? If you need special options compiled

> Maybe he would even switch to ubuntu because of all this, as I did.

Editing the spec file from the src.rpm to accommodate special
requirements and rebuilding with rpmbuild has always worked for me.

--

John (john@os2.dhs.org)

Re: Sendmail 8.14.2 on Fedora 8

am 12.04.2008 00:23:07 von unknown

Post removed (X-No-Archive: yes)

Re: Sendmail 8.14.2 on Fedora 8

am 12.04.2008 00:29:16 von unknown

Post removed (X-No-Archive: yes)

Re: Sendmail 8.14.2 on Fedora 8

am 12.04.2008 01:57:14 von Ignoramus9437

On 2008-04-11, Res wrote:
> On Fri, 11 Apr 2008, Ignoramus9437 wrote:
>
>> Maybe he would even switch to ubuntu because of all this, as I did.
>
> But it still is not optimum for a server because it has similar messings
> with, but nowhere at all near the extreme fedora go to, but for desktop,
> Ubuntu is the best choice today without a doubt, with months of it being
> mainstreamed it left fedora in its wake.

It is great for a server. Does not need much messing with, besides
setting up what you need.

i

Re: Sendmail 8.14.2 on Fedora 8

am 12.04.2008 03:58:51 von unknown

Post removed (X-No-Archive: yes)