Upon having a terrible time attempting compile php with all of our required extensions, I tried to compile with a few basic options (no extensions). I'm seeing warnings like this:

"/usr/local/src/php-4.3.2/ext/standard/var_unserializer.c", line 754: warning: argument #1 is incompatible with prototype:
prototype: pointer to const char : "/usr/local/src/php-4.3.2/ext/standard/var_unserializer.c", line 125

This sort of warning strikes me as dangerous, if I understand it correctly. Can anyone shed any light on it? I get hundreds of these when I add extensions (and more serious errors that crash make)?

Info: Solaris 8 (patched), PHP 4.3.2, Forte 6 CC, sun make, various gnu support (bison, flex).

thanks for any help,
ivo

    Hi,

    Forte 6 CC seems to be very strict with function prototyping. The arguments in the function prototype seem to differ a little bit from how the function is called in line 754.

    I'd suggest to try it with the latest gcc. Also install the latest gnu make to make sure that everything compiles without problems.

    ww.sunfreeware.com

    Thomas

      That solves my problem, thank you. gcc 3.3 seemed to work a lot better, even with sun's make. we've got gcc/gmake already installed but are trying to take advantage of sun's cc optimizations if we can. guess you can't, always. 🙂

      Doesn't solve my curiousity, I guess, but there are other forums for that. I guess what was bugging me is it seems like those warnings would be indications of a greater problem. I guess I have to trust that either gcc takes care of that issue or it isn't really an issue.

      thanks again!

        Write a Reply...