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

From: Date: Sat, 16 Feb 2002 16:48:22 +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-437@lists.php.net to get a copy of this message
ID: 15587 Updated by: p.kruijt@chello.nl Reported By: p.kruijt@chello.nl Status: Feedback Bug Type: Compile Failure Operating System: Irix 6.5.15m PHP Version: 4.1.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#437) next »