OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: After queue filter in 2.3-20060325

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Mon Apr 03 2006 - 17:20:18 CDT


On Tue, Apr 04, 2006 at 12:11:21AM +0200, Marcel de Reuver wrote:

> > What getopt() library did you link this sendmail(1) with?
> > Test this on the command-line.
> >
> > /usr/sbin/sendmail -f you -- you
> >
> > When I run this, there is only one recipient. Your getopt()
> > implementation appears to be broken (it does not set "optind"
> > correctly). Another possibility is a broken compiler.
> >
>
> When I do this, I get 2 messages and one error message about a bad address
> syntax.

This means that your compilation environment (libraries you include,
or compiler itself) is broken.

> I run and compile Postfix on FreeBSD v4.11 gcc v2.95.4
> I compiled Postfix one more time and looked for warnings and errors, but
> nothing....

Lack of compiler warnings or errors does not prove correctness of the
generated code.

Look at the output of:

egrep '^(CC|SYSLIBS)' /ms/dist/itsmg/PROJ/postfix/prod/exec/global/makedefs.out

For each library that sendmail(1) is linked against, report whether it
contains a getopt() implementation that overrides the standard getopt()
in libc.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.