| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_CX,TW_JK,TW_KV,T_RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <10197.83436.qm@web113515.mail.gq1.yahoo.com> |
| References: | <666107 DOT 84266 DOT qm AT web113504 DOT mail DOT gq1 DOT yahoo DOT com> <4C2AB0BC DOT 9030306 AT laposte DOT net> |
| Date: | Wed, 30 Jun 2010 10:07:19 -0700 (PDT) |
| From: | Refr Bruhl <refr_bruhl AT yahoo DOT com> |
| Subject: | Re: Mail program |
| To: | Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net> |
| Cc: | Cygwin Mail List <cygwin AT cygwin DOT com> |
| In-Reply-To: | <4C2AB0BC.9030306@laposte.net> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Greetings
Cyrille: You asked which error I was getting on compiling the mailutils. I'=
e included it below. Interestingly enough when I compile mailutils with a -=
-disable-cxx option I get the shared library error message/warning again.
Here is the url for the mailutils package. http://www.gnu.org/software/mail=
utils/#downloading
I really need the ability to redirect a text stream to a pipe to mail.=20
I feel if I can get mailutils to compile successfully then I have reached m=
y goal of emulating an aix environment
----- Forwarded Message=20
----
From: Refr Bruhl <refr_bruhl AT yahoo DOT com>
To:=20
bug-mailutils AT gnu DOT org
Sent: Tue, June 29, 2010 9:44:15 AM
Subject: Fatal error in addr.cc under cygwin 1.7.5
Team
I am getting compile errors for the=20
mailutils package under cygwin. I am using cygwin 1.7.5
I have=20
found a reoccurring error in the config.log. While its reoccurring I=20
don't think its related to the compile errors. I I have included it=20
below
The fatal error is in the addr.cc file as shown below
When I=20
compile usig the --disable-cxx option the compile works but I don't get=20
mail when involjkng the mail binary.
is there a spool directory=20
that needs created? Some other setup needed?=20
Any help is=20
appreciated
Thanks!
-Rob
## ---------=20
##
## Platform. ##
## --------- ##
hostname =3D lkvn108
uname -m =3D i686
uname -r =3D 1.7.5(0.225/5/3)
uname -s =3D CYGWIN_NT-5.1=20=20
uname -v =3D 2010-04-12 19:07
/usr/bin/uname -p =3D unknown
/bin/uname=20
-X =3D unknown
/bin/arch =3D i686=20=20
/usr/bin/arch -k =3D unknown
/usr/convex/getsysinfo =3D unknown
/usr/bin/hostinfo =3D unknown
/bin/machine =3D unknown
/usr/bin/oslevel =3D unknown
/bin/universe =3D unknown
config.log=20
error msage
conftest.c:10:28: error: ac_nonexistent.h: No such file=20
or directory
configure:4916: $? =3D 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU Mailutils"
|=20
#define PACKAGE_TARNAME "mailutils"=20
| #define PACKAGE_VERSION "2.1"
| #define PACKAGE_STRING "GNU Mailutils 2.1"
| #define=20
PACKAGE_BUGREPORT "bug-mailutils AT gnu DOT org"
|=20
#define PACKAGE "mailutils"
| #define VERSION "2.1"
| /* end=20
confdefs.h. */
| #include <ac_nonexistent.h>
Actual compile errors
*** Warning: This system can not link to static=20
lib archive ../mailbox/libmailutils.la.
*** I have the capability to=20
make that library automatically link in when
*** you link to this=20
library. But I can only do this if you have a
*** shared version of=20
the library, which you do not appear to have.
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin sha=
red libraries
This is the fatal error:
Making all in cpp
make[3]: Entering=20
directory `/downloads/mail/mailutils-2.1/examples/cpp'
g++ -g -O2=20
-DSYSCONFDIR=3D\"/usr/local/etc\" addr.cc -o addr
addr.cc:23:37:=20
error: mailutils/cpp/mailutils.h: No such file or directory
addr.cc:26: error: =E2=80=98mailutils=E2=80=99 is not a namespace-name
addr.cc:26: error:=20
expected namespace-name before =E2=80=98;=E2=80=99 token
addr.cc: In function =E2=80=98int=20
parse(const char*)=E2=80=99:
addr.cc:31: error: =E2=80=98set_user_email_domain=E2=80=99 was=20
not declared in this scope
addr.cc:34: error: =E2=80=98Address=E2=80=99 was not=20
declared in this scope
addr.cc:34: error: expected `;' before=20
=E2=80=98address=E2=80=99
addr.cc:35: error: =E2=80=98address=E2=80=99 was not declared in this scope
addr.cc:57: error: expected type-specifier before =E2=80=98Exception=E2=80=
=99
addr.cc:57: error: expected `)' before =E2=80=98&=E2=80=99 token
addr.cc:57: error: expected `{'=20
before =E2=80=98&=E2=80=99 token
addr.cc:57: error: =E2=80=98e=E2=80=99 was not declared in this=20
scope
addr.cc:57: error: expected `;' before =E2=80=98)=E2=80=99 token
make[3]:=20
*** [addr] Error 1
make[3]: Leaving directory=20
`/downloads/mail/mailutils-2.1/examples/cpp'
make[2]: ***=20
[all-recursive] Error 1
make[2]: Leaving directory=20
`/downloads/mail/mailutils-2.1/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/mail/mailutils-2.1'
make: *** [all] Error 2
----- Original Message ----
From: Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
To: cygwin AT cygwin DOT com
Sent: Tue, June 29, 2010 9:49:32 PM
Subject: Re: Mail program
Le 29/06/2010 14:24, Refr Bruhl a =C3=A9crit :
>
>
> Good Morning
>
> I am in need of of a mail program similar to the mail found in AIX. I am =
emulating an AIX environment.
>
> I've installed the email, ssmtp and other email apps in the email. I get =
a segmentation fault for email
>
> I like email as it seems to accept the same parameters and funcitonality =
as the AIX mail app. I have a multitude of scripts that use the format:
>
> echo ${MESSAGE} | mail -s '${SUBJECT}' ${EMAIL}
>
> Where ${EMAIL} is a comma delimited list of addresses.
>
> I've compiled the mailutils from gnu but I get a different error there wh=
ich I'll take up with the buildlist-mailutils AT gnu DOT org
which error ?
> Anyone got any ideas on how to get email to work without a segmentation f=
ault?
ah! this one ? do you know the origin ?
> Where can I obtain the source for email? I've pretty much hit cygwin head=
first and am not as familiar with it as I am with AIX. My apologies for th=
e newbie questions.
let's try ssmtp w/ /etc/ssmtp/ssmtp.conf configured like this :
mailhub=3Dsmtp.<isp>
FromLineOverride=3DYES
hostname=3Dsmtp.<isp>
rewriteDomain=3D<domain>
root=3Dpostmaster
AuthUser=3D<user>
AuthPass=3D<pass>
AuthMethod=3DLOGIN
and w/ /etc/ssmtp/revaliases :
<login>:<email>:smtp.<isp>
don't forget to run ssmtp-config
alternative w/ msmtp and /etc/msmtprc :
account <isp>
host smtp.<isp>
auth login
password <pass>
account <email1> : <isp>
from <email1>
user <user1>
account <email2> : <isp>
from <email2>
user <user2>
account default : <email1>
don't forget to run msmtp-config
yet another alternative w/ email :
/usr/bin/email \
-r smtp.<sip> \
-m LOGIN \
-u <user> \
-i <pass> \
-n "<comment>" \
-f <email> \
...
then, for both ssmtp/msmtp, the attached script should work !
I left you the implementation of the -a (attachment) option :-)
Regards,
Cyrille Lefevre
--=20
mailto:Cyrille DOT Lefevre-lists AT laposte DOT net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |