ID:               15587
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: Irix 6.5.15m
 PHP Version:      4.1.1
 New Comment:

What's the prototype of inet_ntoa() on your system?


Previous Comments:
------------------------------------------------------------------------

[2002-02-16 11:15:08] [EMAIL PROTECTED]

Compiling with:

cc -I. -I/usr/local/src/php-4.1.1/ext/standard
-I/usr/local/src/php-4.1.1/main -I/usr/local/src/php-4.1.1
-I/usr/local/src/apache_1.3.23/src/include
-I/usr/local/src/apache_1.3.23/src/os/unix
-I/usr/local/src/php-4.1.1/Zend -I/usr/freeware/mysql/include
-I/usr/local/src/php-4.1.1/ext/xml/expat  -D_XPG_IV
-I/usr/local/src/php-4.1.1/TSRM   -c basic_functions.c && touch
basic_functions.lo

Results for basic_functions.c in the error:

cc-1140 cc: ERROR File = basic_functions.c, Line = 1002
  A value of type "int" cannot be used to initialize an entity of type
"char *".

        RETURN_STRING (inet_ntoa(myaddr), 1);

and for dns.c (cc command identical except for filenames):
cc-1164 cc: ERROR File = dns.c, Line = 157
  Argument of type "int" is incompatible with parameter of type "char
*".

                add_next_index_string(return_value, inet_ntoa(in), 1);
                                                    ^

cc-1164 cc: ERROR File = dns.c, Line = 177
  Argument of type "int" is incompatible with parameter of type "const
char *".

        return estrdup(inet_ntoa(in));
               ^


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15587&edit=1

Reply via email to