[PHP-DEV] Bug #12843: Problem with compile From: arnaud.sandenon <email protected>
Date: 08/19/01

From: arnaud.sandenon <email protected>
Operating system: linux 2.2.15
PHP version: 4.0.6
PHP Bug Type: Compile Failure
Bug description: Problem with compile

./configure --with-mysql --with-gd
--with-apache=/usr/local/src/apache_1.3.20
--enable-track-vars

After configuring PHP and executing 'make' this message appears :

gd.c:95: conflicting types for `gdIOCtx'
gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

gd.c contains : typedef FILE gdIOCtx;

gd_io.h contains :
typedef struct gdIOCtx {
        int (*getC)(struct gdIOCtx*);
        int (*getBuf)(struct gdIOCtx*, void*, int);

        void (*putC)(struct gdIOCtx*, int);
        int (*putBuf)(struct gdIOCtx*, const void*, int);

        int (*seek)(struct gdIOCtx*, const int);
        long (*tell)(struct gdIOCtx*);

        void (*free)(struct gdIOCtx*);

} gdIOCtx;

typedef struct gdIOCtx *gdIOCtxPtr;

What's the problem ?

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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>