Bug #15587 Updated: basic_functions.c and dns.c fail to compile due to incompatible parameters

From: Date: Wed, 01 May 2002 04:00:03 +0000
Subject: Bug #15587 Updated: basic_functions.c and dns.c fail to compile due to incompatible parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6600@lists.php.net to get a copy of this message
ID: 15587 Updated by: php-bugs@lists.php.net Reported By: p.kruijt@chello.nl -Status: Feedback +Status: No Feedback Bug Type: Compile Failure Operating System: Irix 6.5.15m PHP Version: 4.1.1 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2002-02-16 11:48:21] p.kruijt@chello.nl 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] mfischer@php.net What's the prototype of inet_ntoa() on your system? ------------------------------------------------------------------------ [2002-02-16 11:15:08] p.kruijt@chello.nl 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

« previous php.bugs (#6600) next »