Re: [Gimp-developer] libgimpbase/gimpbaseenums.h and gimpcompatenums.h name collisions



On Thu, 2017-01-12 at 18:14 +0100, Helmut Jarausch wrote:
Hi, I cannot compile the GIT version (today 16:00 GMT)
Both, gimpbaseenums.h  and gimpcompatenums.h define several enums
of  
the same name.
This is on Gentoo, gcc-6.3.0

This shouldn't happen, the resp. values in gimpbaseenums.h are
protected by #ifndef GIMP_DISABLE_DEPRECATED and that is always
defined when building GIMP.

Did you somehow undefine it?

Regards,
Mitch


Thanks for looking into it,
Helmut.

Here are a few lines from the error log:

In file included from gimpbase-private.c:29:0:
gimpcompatenums.h:36:3: error: redeclaration of enumerator  
'GIMP_ADD_WHITE_MASK'
    GIMP_ADD_WHITE_MASK          = GIMP_ADD_MASK_WHITE,
    ^~~~~~~~~~~~~~~~~~~
In file included from gimpbasetypes.h:26:0,
                  from gimpbase-private.c:26:
../libgimpbase/gimpbaseenums.h:52:3: note: previous definition of  
'GIMP_ADD_WHITE_MASK' was here
    GIMP_ADD_WHITE_MASK          = GIMP_ADD_MASK_WHITE,     /*<
skip,  
pdb-skip >*/
    ^~~~~~~~~~~~~~~~~~~
In file included from gimpbase-private.c:29:0:
gimpcompatenums.h:37:3: error: redeclaration of enumerator  
'GIMP_ADD_BLACK_MASK'
    GIMP_ADD_BLACK_MASK          = GIMP_ADD_MASK_BLACK,
    ^~~~~~~~~~~~~~~~~~~
In file included from gimpbasetypes.h:26:0,
                  from gimpbase-private.c:26:
../libgimpbase/gimpbaseenums.h:53:3: note: previous definition of  
'GIMP_ADD_BLACK_MASK' was here
    GIMP_ADD_BLACK_MASK          = GIMP_ADD_MASK_BLACK,     /*<
skip,  
pdb-skip >*/
    ^~~~~~~~~~~~~~~~~~~
In file included from gimpbase-private.c:29:0:
gimpcompatenums.h:38:3: error: redeclaration of enumerator  
'GIMP_ADD_ALPHA_MASK'
    GIMP_ADD_ALPHA_MASK          = GIMP_ADD_MASK_ALPHA,
    ^~~~~~~~~~~~~~~~~~~
In file included from gimpbasetypes.h:26:0,
                  from gimpbase-private.c:26:
../libgimpbase/gimpbaseenums.h:54:3: note: previous definition of  
'GIMP_ADD_ALPHA_MASK' was here
    GIMP_ADD_ALPHA_MASK          = GIMP_ADD_MASK_ALPHA,     /*<
skip,  
pdb-skip >*/
    ^~~~~~~~~~~~~~~~~~~
In file included from gimpbase-private.c:29:0:
gimpcompatenums.h:39:3: error: redeclaration of enumerator  
'GIMP_ADD_ALPHA_TRANSFER_MASK'
    GIMP_ADD_ALPHA_TRANSFER_MASK = GIMP_ADD_MASK_ALPHA_TRANSFER,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gimpbasetypes.h:26:0,
                  from gimpbase-private.c:26:
../libgimpbase/gimpbaseenums.h:55:3: note: previous definition of  
'GIMP_ADD_ALPHA_TRANSFER_MASK' was here
    GIMP_ADD_ALPHA_TRANSFER_MASK = GIMP_ADD_MASK_ALPHA_TRANSFER,
/*<  
skip, pdb-skip >*/
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-develop
er-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]