RSS/Atom feed Twitter
Site is read-only, email is disabled

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

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Compilation errors in file-dds plugin under CentOS7 and GCC 6.4.0 Carmelo DrRaw via gimp-developer-list 16 Feb 21:06
  Compilation errors in file-dds plugin under CentOS7 and GCC 6.4.0 Ell via gimp-developer-list 17 Feb 18:36
Carmelo DrRaw via gimp-developer-list
2019-02-16 21:06:52 UTC (about 5 years ago)

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

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

Ell via gimp-developer-list
2019-02-17 18:36:31 UTC (about 5 years ago)

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

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