From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079042215783.tru64-unix-managers.marc@archive.invalid> From: Joana Peres Date: Tue, 18 May 1999 17:01:09 +0000 To: tru64-unix-managers Subject: SUMMARY:IMAP error and c2 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079042215783 Hello! Thanks to everyone who responded so quickly. You solved my problem. Here are the answers: ========================================= From: Bryan Bahnmiller 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 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@athena.csdco.com ========================================= From: Paul A Sand Joana Peres (jperes@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@unh.edu | But now it is gone. -- http://pubpages.unh.edu/~pas | (David J. Liszewski) ========================================= Joana Peres