LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-25-2022, 11:34 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Rep: Reputation: 177Reputation: 177
Compiling mailx 12.5 on Slackware 15.0


I'm hating the new 14.9.23 version of mailx shipped with Slackware 15.0. I used to be able to search for from, to, subject, body ... as:
Code:
? (from paypal)
Now, that gives the error:
Code:
mailx: Missing )
mailx: P.S.: message specifications are now shell tokens, making it necessary
mailx: to escape/shell quote parenthesis, e.g., '(from "me")'
mailx: Please read the manual section "Shell-style argument quoting"
and I have to search as:
Code:
'(from "paypal")'
I'll refrain from ranting about solving something that was never a problem. My issue is that I have lots of scripts which manipulate MBOX files using the version 12.5 and (ad infinitum) earlier version syntax. I could change all these scripts, or I could build the 12.5 version. And BTW, changing the scripts doesn't seem to work either as my bash scripts are of the form:
Code:
for s in <list of email addresses>
do
    mail -f "$1" <<EOF
'(from "$s")'
d ()
q
EOF

done
and the $s inside the '("")' syntax doesn't expand.

I'd like to try the build of the 12.5 solution as mailx 14.9 has even more issues. For example, my .mailrc file has:
Code:
set pipe-text/html="lynx -dump -force_html /dev/stdin"
This would render content-type="text/html" email messages readable by running the message through lynx. This does not work in 14.9 making it all but useless for actually reading email.

So I downloaded the heirloom-mailx-12.5 source files and tried to build. I get the error:
Code:
/usr/bin/ld: openssl.o: in function `ssl_rand_init':
openssl.c:(.text+0x124): undefined reference to `RAND_egd'
/usr/bin/ld: openssl.o: in function `ssl_select_method':
openssl.c:(.text+0x449): undefined reference to `SSLv2_client_method'
collect2: error: ld returned 1 exit status
make: *** [Makefile:92: mailx] Error 1
I've search for a solution and the only site that actually offered an idea was to rename RAND_egd to RAND_add_egd, but that didn't work.

Does anyone have any ideas on how I could resolve this undefined reference issue?
 
Old 06-25-2022, 04:39 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,953

Rep: Reputation: 270Reputation: 270Reputation: 270
The fellow who maintains mailx replies to queries on the mailing list promptly and usefully.

Your problem building 12.5 may require going back to an earlier version of openssl - and probably a lot of other things.
 
Old 06-25-2022, 08:53 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,421
Blog Entries: 7

Rep: Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535Reputation: 2535
There are some old versions of mailx at the "cumulative" Slackware archive, here:

https://slackware.uk/cumulative/slac...slackware64/n/
 
Old 07-02-2022, 03:42 AM   #4
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 206

Rep: Reputation: Disabled
Compilation ok here (on a P4 Northwood):
Code:
./
bin/
install/
install/doinst.sh
install/slack-desc
usr/
usr/doc/
usr/doc/mailx-12.5/
usr/doc/mailx-12.5/AUTHORS
usr/doc/mailx-12.5/COPYING
usr/doc/mailx-12.5/ChangeLog
usr/doc/mailx-12.5/INSTALL
usr/doc/mailx-12.5/README
usr/doc/mailx-12.5/TODO

Slackware package /tmp/mailx-12.5-i586-3_slack14.2.txz created.
I didn't give a test on a 64bits system, maybe it's ok too.
 
Old 07-02-2022, 07:54 AM   #5
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,728

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by dodoLQ View Post
Compilation ok here (on a P4 Northwood):
You didn't get /usr/bin/mailx.
 
Old 07-04-2022, 01:15 PM   #6
dodoLQ
Member
 
Registered: Dec 2014
Location: France
Distribution: Slackware
Posts: 206

Rep: Reputation: Disabled
You're right, re-given a test and nothing in /tmp/package-mailx/bin :|
Strange..
 
  


Reply

Tags
mailx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Compiling mailx 12.5 on Slackware 15.0 mfoley Linux From Scratch 3 06-25-2022 12:04 PM
[SOLVED] "Snorkeling on an empty pipe": error in S-mailx (mailx 4.19.11) RandomTroll Linux - Software 0 11-30-2018 10:45 PM
TO ANYONE USING MAILX (mailx 12.1). stf92 Linux - Software 22 07-08-2010 09:44 PM
mailx and slackware mikz Slackware 2 05-11-2005 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration