SUMMARY:IMAP error and c2

From: Joana Peres <jperes_at_fe.up.pt>
Date: Tue, 18 May 1999 18:01:09 +0100

Hello!

Thanks to everyone who responded so quickly.
You solved my problem.

Here are the answers:
=========================================
From: Bryan Bahnmiller <bbahnmil_at_redwood.dn.hac.com>
Organization: Raytheon Systems Company

Joana,

> I've tried to compile this imap
> ftp://ftp.cac.washington.edu/imap/imap.tar.Z
> and gives this error:
>
> cc -g3 -O2 -Olimit 1500 -DNFSKLUDGE -c news.c -o news.o
> cc: Error: news.c, line 186: In this statement, "strcpy(...)" and "6"
> cannot be added. (noadd)
> lcl = strcpy (name,"#news.") + 6;
> ----------^
>
> How can I solve it?

  Since I am more of a Unix SA than a C programmer, I usually first try
to get gcc up and working on our computers. gcc will usually not have as

many errors as the base CC that gets shipped with the systems. (Most
freeware is designed and built using gcc.) Most of the freeware I build
I use gcc instead of cc - Apache, IMAP, LDAP, Perl...

>
> Another question: this imap supports c2 security?
>

  I have no idea, I hope someone else can tell you.

     Bryan
=========================================
  From: Ann Cantelow <cantelow_at_athena.csdco.com>

On Fri, 14 May 1999, Joana Peres wrote:

> Hello!
>
> I've tried to compile this imap
> ftp://ftp.cac.washington.edu/imap/imap.tar.Z
> and gives this error:
>
> cc -g3 -O2 -Olimit 1500 -DNFSKLUDGE -c news.c -o news.o
> cc: Error: news.c, line 186: In this statement, "strcpy(...)" and "6"
> cannot be added. (noadd)
> lcl = strcpy (name,"#news.") + 6;
> ----------^
>
> How can I solve it?
>
> Another question: this imap supports c2 security?
>

Hi. Just a suggestion, maybe you can break it into two lines?

Like this:

   lcl = strcpy (name,"#news.");
   lcl += 6;

If it was one line following an if... statement, you would also need to
surround it in a block, like this:

   {
     lcl = strcpy (name,"#news.");
     lcl += 6;
   }

Imap works fine for us with C2 security. I don't remember having this
trouble with compiling. Possibly I downloaded a binary instead.

Good Luck

Ann Cantelow
cantelow_at_athena.csdco.com
=========================================
From: Paul A Sand <pas_at_unh.edu>

Joana Peres (jperes_at_fe.up.pt) writes:
> lcl = strcpy (name,"#news.") + 6;
> ----------^
>
> How can I solve it?
>

You can change the line to

         lcl = strcpy (name,"#news."); lcl += 6;

Which is STUPID, but appears to work here.

As near as I can tell, this is a bug in the 4.0E C compiler. I hope they

got rid of it in 4.0F.

I don't know about your C2 question, sorry.

--
-- Paul A. Sand                 | A file that big?
-- University of New Hampshire  | It might be very useful.
-- pas_at_unh.edu                  | But now it is gone.
-- http://pubpages.unh.edu/~pas |     (David J. Liszewski)
=========================================
Joana Peres
Received on Tue May 18 1999 - 17:03:37 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT