Bug #15587: basic_functions.c and dns.c fail to compile due to incompatible parameters
| From: | p dot kruijt at chello dot nl | Date: | Sat, 16 Feb 2002 16:15:09 +0000 |
| Subject: | Bug #15587: basic_functions.c and dns.c fail to compile due to incompatible parameters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-435@lists.php.net to get a copy of this message | ||
From: p.kruijt@chello.nl
Operating system: Irix 6.5.15m
PHP version: 4.1.1
PHP Bug Type: Compile Failure
Bug description: basic_functions.c and dns.c fail to compile due to incompatible parameters
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 bug report at http://bugs.php.net/?id=15587&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15587&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15587&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15587&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15587&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15587&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15587&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15587&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15587&r=submittedtwice