Compilation errors in file-dds plugin under CentOS7 and GCC 6.4.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation errors in file-dds plugin under CentOS7 and GCC 6.4.0

Developers mailing list
When compiling the current GIMP code under CentOS7 with GCC 6.4.0, I get some compilation errors that are due the plug-ins/file-dds/endian.h header file.
This file interferes with the system-wide endian.h header. The error can be fixed by renaming the file in the DDS plug-in to something like "dds-endian.h"

The compilation errors are the following:

In file included from /usr/include/stdlib.h:42:0,
                 from ddsread.c:34:
/usr/include/bits/waitstatus.h:79:15: error: duplicate member '__w_retcode'
  unsigned int __w_retcode:8;
               ^~~~~~~~~~~
/usr/include/bits/waitstatus.h:80:15: error: duplicate member '__w_coredump'
  unsigned int __w_coredump:1;
               ^~~~~~~~~~~~
/usr/include/bits/waitstatus.h:81:15: error: duplicate member '__w_termsig'
  unsigned int __w_termsig:7;
               ^~~~~~~~~~~
/usr/include/bits/waitstatus.h:93:15: error: duplicate member '__w_stopsig'
  unsigned int __w_stopsig:8; /* Stopping signal.  */
               ^~~~~~~~~~~
/usr/include/bits/waitstatus.h:94:15: error: duplicate member '__w_stopval'
  unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
               ^~~~~~~~~~~

Regards,
Andrea
_______________________________________________
gimp-developer-list mailing list
List address:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list
Reply | Threaded
Open this post in threaded view
|

Re: Compilation errors in file-dds plugin under CentOS7 and GCC 6.4.0

Developers mailing list


On 2/16/19 4:06 PM, Carmelo DrRaw via gimp-developer-list wrote:
> When compiling the current GIMP code under CentOS7 with GCC 6.4.0, I get some compilation errors that are due the plug-ins/file-dds/endian.h header file.
> This file interferes with the system-wide endian.h header. The error can be fixed by renaming the file in the DDS plug-in to something like "dds-endian.h"

Thanks!  Fixed in master (b5a34c3190d62294dc0316c93251baa807b26c9e) and
gimp-2-10 (bfa6285d238bac6ea30dd25269cb5283d13f6936).

--
Ell
_______________________________________________
gimp-developer-list mailing list
List address:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list