ID:               45188
 User updated by:  thomas dot jarosch at intra2net dot com
 Reported By:      thomas dot jarosch at intra2net dot com
-Status:           No Feedback
+Status:           Open
 Bug Type:         IMAP related
 Operating System: linux
 PHP Version:      5.2.6
 Assigned To:      fb-req-jani
 New Comment:

Hi,

I can compile the snapshot on my Fedora 9 workstation using gcc
4.3.0. The build of the snapshot fails on my devel box using gcc
4.3.2 + ancient glibc version. Here's the error message I get:
In file included from /tmp/php-5.2.10/Zend/zend.h:236,                 
                                                                        
                                                    
                 from /tmp/php-5.2.10/main/php.h:34,                   
                                                                        
                                                    
                 from /tmp/php-5.2.10/ext/date/php_date.c:23:          
                                                                        
                                                    
/tmp/php-5.2.10/Zend/zend_alloc.h:34: error: expected specifier-

I tracked it down to this code snippet:
----------------------------------------
[r...@intradev /tmp]# cat main.c
#define _ISOC9X_SOURCE

#include <sys/types.h>

typedef struct _zend_leak_info {
//      void *addr;
//      size_t size;
//      char *filename;
        uint lineno;
//      char *orig_filename;
//      uint orig_lineno;
} zend_leak_info;

int main(void)
{
    return 0;
}
[r...@intradev /tmp]# gcc main.c
main.c:9: error: expected specifier-qualifier-list before 'uint'
[r...@intradev /tmp]# gcc --version
gcc (GCC) 4.3.2 20081007 (Red Hat 4.3.2-6)
----------------------------------------

If I remove the "#define _ISOC9X_SOURCE", it compiles fine,
same thing for ext/date/php_date.c.

The corresponding commit is here:
http://cvs.php.net:80/viewvc.cgi/php-

and

http://cvs.php.net:80/viewvc.cgi/php-

Is the "_ISOC9X_SOURCE" define really needed?


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

[2009-05-12 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, 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".

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

[2009-05-04 13:24:46] thomas dot jarosch at intra2net dot com

Thanks for checking. I'll test again this week and report back.

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

[2009-04-30 09:40:13] j...@php.net

Compiles fine for me. Try again with latest snapshot. (make sure to 
unpack and build in clean dirs..)

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

[2009-04-29 14:27:02] thomas dot jarosch at intra2net dot com

Is the latest snapshot compilable?

I get this:

/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c:129:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'stream_cookie_functions'
/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c: In
function '_php_stream_cast':
/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c:181:
error: 'stream_cookie_functions' undeclared (first use in this
function)
/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c:181:
error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c:181:
error: for each function it appears in.)
/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c:181:
warning: assignment makes pointer from integer without a cast
/usr/src/redhat/BUILD/php5.2-200904291230/main/streams/cast.c:221:
warning: passing argument 3 of '_php_stream_cast' makes pointer from
integer without a cast

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

[2009-04-27 19:14:40] j...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/45188

-- 
Edit this bug report at http://bugs.php.net/?id=45188&edit=1

Reply via email to