1829581 Members
4290 Online
109992 Solutions
New Discussion

elm make failure

 
SOLVED
Go to solution
CSK Auto
Advisor

elm make failure

I am currently running elm version 1.17.214 on Hp-Ux 11.00. I am trying to install elm version 2.58 to support attachments. I do the make command and it fails.
Please help

Thanks
Gwenn Culbertson

error below:
[hppstest: /home/XXXX/elm-2.5.8]# make
cd lib && make all
cc -O -I.. -I../hdrs -c add_site.c
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "/usr/include/string.h", line 140: error 1584: Inconsistent type declaration: "strcspn".
(Bundled) cc: "/usr/include/string.h", line 141: error 1584: Inconsistent type declaration: "strspn".
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: elm make failure

I suspect that this is all but hopeless using the Bundled C Compiler. It is really only intended for building kernels and only speaks K&R C. You need to use the (not free) ANSI C compiler, aCC, or install the (free) Gnu C compiler, gcc.
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: elm make failure

You're trying to use the "bundled" C compiler to do something it wasn't intended to do. The "bundled" compiler is a stripped down version that is really only capable of building the kernel.

You will need to purchase and install the ANSI/C compiler or download and install the GNU version:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.1.0/


Pete

Pete
CSK Auto
Advisor

Re: elm make failure

The link above is for Hp-Ux 11.11 anything for 11.0? Also as a depot file?

Gwenn
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: elm make failure

Have you tried to patch your existing HP supplied version of elm using PHNE_26285. The MIME enabled versions of elm have worked well since HP-UX 10.20. I use elm in scripts daily to send tons of attachments.
If it ain't broke, I can fix that.
CSK Auto
Advisor

Re: elm make failure

The patch above is installed on the system. We are able to attach docs interactivly using elm but not automated. Any suggestions?

Gwenn
A. Clay Stephenson
Acclaimed Contributor

Re: elm make failure

Simply include the following syntax in your mail textfile (e.g) my_message

-----------------
This is some sample text.
[include myfile1 application/octet-stream base64]

This is some more stuff.

[include myfile2 application/octet-stream base64]

That's all folks
------------------

Then, elm -s "Sample Subject" someuser@xxx.com < my_message

The only requirement is that you must first create a .elm directory in the sender's home directory; the command-line version will not automatically create the .elm directory unlike the interactive version of elm. The above will attach myfile1 and myfile2. You can play with the application part to suit your needs (e.g. ms-excel). This makes a nice way to do multiple attachments.

If it ain't broke, I can fix that.
CSK Auto
Advisor

Re: elm make failure


Clay, excellent worked great.

Thanks for the help
Gwenn