pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45905: lang/php53 doesn't compile on -current



>Number:         45905
>Category:       pkg
>Synopsis:       lang/php53 doesn't compile on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 01 06:45:00 +0000 2012
>Originator:     Mustafa Dogan
>Release:        NetBSD 5.99.62
>Organization:
TESMER
>Environment:
NetBSD md.dogan.biz.tr 5.99.62 NetBSD 5.99.62 (GENERIC) #0: Sun Jan 29 14:56:29 
EET 2012  
root%md.dogan.biz.tr@localhost:/root/OBJ/sys/arch/i386/compile/GENERIC i386
>Description:
lang/php53 doesn't be compiled due to fpos_t change. 

>How-To-Repeat:
cd /usr/pkgsrc/lang/php53
make
>Fix:
This patch fixed my problem.

--- main/streams/cast.c.orig    2012-02-01 08:18:32.000000000 +0200
+++ main/streams/cast.c 2012-02-01 08:19:20.000000000 +0200
@@ -34,7 +34,7 @@
 typedef struct {
        int (*reader)(void *, char *, int);
        int (*writer)(void *, const char *, int);
-       fpos_t (*seeker)(void *, fpos_t, int);
+       off_t (*seeker)(void *, off_t, int);
        int (*closer)(void *);
 } COOKIE_IO_FUNCTIONS_T;
 
@@ -68,11 +68,11 @@
        return php_stream_write((php_stream *)cookie, (char *)buffer, size);
 }
 
-static fpos_t stream_cookie_seeker(void *cookie, off_t position, int whence)
+static off_t stream_cookie_seeker(void *cookie, off_t position, int whence)
 {
        TSRMLS_FETCH();
 
-       return (fpos_t)php_stream_seek((php_stream *)cookie, position, whence);
+       return (off_t)php_stream_seek((php_stream *)cookie, position, whence);
 }
 
 static int stream_cookie_closer(void *cookie)



Home | Main Index | Thread Index | Old Index