php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15587 basic_functions.c and dns.c fail to compile due to incompatible parameters
Submitted: 2002-02-16 11:15 UTC Modified: 2002-12-04 18:15 UTC
From: p dot kruijt at chello dot nl Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.1.1, 4.3.0-dev OS: Irix 6.5.15m
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: p dot kruijt at chello dot nl
New email:
PHP Version: OS:

 

 [2002-02-16 11:15 UTC] p dot kruijt at chello dot 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));
               ^

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-16 11:27 UTC] mfischer@php.net
What's the prototype of inet_ntoa() on your system?
 [2002-02-16 11:48 UTC] p dot kruijt at chello dot 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-05-01 00:00 UTC] php-bugs at lists dot php dot net
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-05-02 08:24 UTC] sniper@php.net
That automatic status changer sucks..feedback WAS given.


 [2002-06-29 20:53 UTC] sniper@php.net
Please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

I don't have access to any IRIX machine to test this..


 [2002-08-01 01:00 UTC] php-bugs at lists dot php dot net
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-08-06 17:04 UTC] p dot kruijt at chello dot nl
Both me and the machine have been away. Will test the patch asap.
 [2002-08-08 07:51 UTC] sniper@php.net
Set to feedback.

 [2002-08-29 16:43 UTC] p dot kruijt at chello dot nl
Tried a make with php4-200208290900. Error is still on the same location and message is identical. Compilation fails.

Again; compiling with EXTRA-CFLAGS set to -cckr results in a succesful build. Version php-4.1.1 ran stable this way.
 [2002-08-29 16:58 UTC] p dot kruijt at chello dot nl
Too soon. This snapshot also fails on Zend/zend_language_scanner.c
cc-1200 cc: ERROR File = Zend/zend_language_scanner.c, Line = 4186
The depth of macro recursion exceed the maximum allowed.

        if (yy_start_stack_ptr) {
            ^

cc-1131 cc: ERROR File = Zend/zend_language_scanner.c, Line = 4186
  Expected a field name.

        if (yy_start_stack_ptr) {

This repeats on lines 5719 5723, 5724, 5726, 5727, 5730, etc
 [2002-08-29 21:48 UTC] sniper@php.net
updated versions.

 [2002-11-24 23:23 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-12-04 18:15 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC