apache,

        Just a guess, but I've seen other code that was written in
non-ANSI C which treats void as int.  I vaguely (incorrectly?)
remember that gcc has a flag that permits this non-ANSI extension.
I have no full solution, but suggest that you try 

        o using gcc without the -ansi flag
                (easy to try)
        o inserting #define void int in a common header file
                (SHORT TERM KLUDGE ONLY)
        o investigate and correct the code
                (best solution)
                o what is done with the void function return value?
                        (it may be assigned and promply ignored)
                o should the function return a status?
                        (many environments defualt function return to int)
                o find and correct the type mismatch on line 668

        If you find out who wrote the package, write to them direct
as they are likely willing, able, and eager, to see the package
used successfully.

> I downloaded poppassd, but I can't compile it. Below was the 
> error msg.
>
> cc -c -g poppassd.c
> poppassd.c: In function `main':
> poppassd.c:189: void value not ignored as it ought to be
> poppassd.c: In function `chkPass':
> poppassd.c:668: warning: passing arg 1 of `strcmp' makes pointer from
> integer wi
> thout a cast
> make: *** [poppassd.o] Error 1

Good Luck,

Dr. Robert J. Meier             FANUC Robotics North America
tel:+1.248.377.7469    mailto:[EMAIL PROTECTED]

Reply via email to