[kde-windows] [Bug 326346] New: Compilation of giflib fails with error: redefinition of typedef 'bool'

dasaan.san at gmail.com dasaan.san at gmail.com
Sun Oct 20 20:23:13 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=326346

            Bug ID: 326346
           Summary: Compilation of giflib fails with error: redefinition
                    of typedef 'bool'
    Classification: Unclassified
           Product: kde-windows
           Version: unspecified
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: buildsystem
          Assignee: kde-windows at kde.org
          Reporter: dasaan.san at gmail.com

Whilst trying to emerge kdelibs giflib fails to compile with several errors
stating:
error: redefinition of typedef 'bool'

in one instance the files referenced are:
dgif_lib.c:24
gif_lib.h:13
stdbool.h:5

dgif_lib.c contains the following:
#ifdef _WIN32
#include <stdbool.h>
...
#include "gif_lib.h"

stdbool.h contains:
#ifndef __cplusplus
typedef int bool;
...

and gif_lib.h contains:
#ifdef __cplusplus
extern "C" {
#else
typedef int bool;
#endif /* __cplusplus */

therefore if __cplusplus is not defined then the typedef for bool is declared
twice.

This also occurs in:
egif_lib.c

Reproducible: Always

Steps to Reproduce:
1. emerge kdelibs
2.
3.
Actual Results:  
emerge of kdelibs fails whilst trying to compile giflib

Expected Results:  
compilation of giflib should have completed successfully and emerge should have
then gone on to compile the remainder of kdelibs

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-windows mailing list