[IRCServices] GCC 3 is not supported (was Re: Gcc 3 and services.)

Andrew Church achurch at achurch.org
Sun Jul 15 06:05:01 PDT 2001


     The authors of GCC have made many questionable decisions to break
compatibility with earlier versions of GCC in the 3.0 release.  Regardless
of what the ANSI standard says, there are many things that have become
de-facto standards, and should not be changed lightly--this is just one
example.  While this does not require a major change, and so I will fix
it, notes on the GCC 3.0 page suggest that other problems may occur,
particularly with parts of import-db that read structures from disk.

     Because of this, GCC 3.0 IS NOT SUPPORTED at the present time.
Please use an earlier version of gcc to compile Services.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/

>Greetings all,
>
>Problem:
>-------
>	Installing gcc 3 i notice a strange behaviour at the services.
>The problem is specified at two functions inside misc.c. The functions
>are strupper and strlower. The exact problem is at:
>
>char *strupper(char *s)
>{
>    char *t = s;
>    while (*t)
>        *t++ = toupper(*t); <-
>    return s;
>}
>
>
>According ANSI C spec, "... C expressions can contain side effects,
>issues of sequencing are important in expression evaluation." (2.1.2.3)
>
>Results:
>-------
>The result of this code is to have "random" effects while using services.
>
>Example:
>-------
>/quote version services.test.irc.gr
>11:25 ## Server services.TEST.irc.gr: ircservices-4.5.21 build #1,
>compiled Sat Jul 14 23:01:42 EEST 2001
>
>/msg operserv akill add doe at joe.com doe 1
>
>11:15 >> [ operserv ] akill add doe at joe.com doe 1
>11:15 - OperServ!services at irc.gr - e@@oe.com added to AKILL list.
>11:15 %G% OperServ: Dinos added an AKILL for e@@oe.com (expires in 30
>days)
>
>/msg operserv akill list
>
>11:26 - OperServ!services at irc.gr - e@@oe.com                         doe 1
>
>
>Solution:
>--------
>I guess strupper and strlower should be rebuid. For those looking for one
>fast solution, i can post one.
>
>If i'm wrong, correct me :)
>
>
>Regards,
>Nick Krassas
>Dinos @irc.gr
>
>-----------------------------------------------------------
>To unsubscribe, mail ircservices-request at ircservices.za.net
>with the word UNSUBSCRIBE in the subject of the mail.
>http://www.ircservices.za.net/mailman/listinfo/ircservices