LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling mailx 12.5 on Slackware 15.0 (https://www.linuxquestions.org/questions/slackware-14/compiling-mailx-12-5-on-slackware-15-0-a-4175713866/)

mfoley 06-25-2022 11:34 AM

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?

RandomTroll 06-25-2022 04:39 PM

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.

rkelsen 06-25-2022 08:53 PM

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

https://slackware.uk/cumulative/slac...slackware64/n/

dodoLQ 07-02-2022 03:42 AM

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.

Petri Kaukasoina 07-02-2022 07:54 AM

Quote:

Originally Posted by dodoLQ (Post 6365039)
Compilation ok here (on a P4 Northwood):

You didn't get /usr/bin/mailx.

dodoLQ 07-04-2022 01:15 PM

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


All times are GMT -5. The time now is 04:05 AM.