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

That automatic status changer sucks..feedback WAS given.




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

[2002-05-01 00:00:02] [EMAIL PROTECTED]

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2002-02-16 11:48:21] [EMAIL PROTECTED]

The prototype is:

  extern char *inet_ntoa(struct in_addr);

Setting EXTRA_CFLAGS to -cckr seems to resolve the compile failure.
Don't know yet if php will work now.

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

[2002-02-16 11:27:44] [EMAIL PROTECTED]

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

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

[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