<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - compilation error with gcc on AIX due to config.h not included first"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89336">89336</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compilation error with gcc on AIX due to config.h not included first
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>fontconfig
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>AIX
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>fontconfig-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>michael.haubenwallner@ssi-schaefer.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>freedesktop@behdad.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With gcc on AIX I do get this compiler error:
powerpc-ibm-aix6.1.0.0-gcc -DHAVE_CONFIG_H -I.
-I/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src
-I.. 
-I/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1
-I/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src
-I/tools/haubi/buildbot/toolsbase-2015/usr/include/freetype2     -Wall
-Wpointer-arith -Wstrict-prototypes       -Wmissing-prototypes
-Wmissing-declarations     -Wnested-externs -fno-strict-aliasing
-DFC_CACHEDIR='"/tools/haubi/buildbot/toolsbase-2015/var/cache/fontconfig"'
-DFONTCONFIG_PATH='"/tools/haubi/buildbot/toolsbase-2015/etc/fonts"'
-D_LINUX_SOURCE_COMPAT  -O2 -pipe -D_THREAD_SAFE  -c -o fcarch.o
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcarch.c
In file included from
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcint.h:41,
                 from
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcarch.c:26:
/usr/include/unistd.h:171: error: conflicting types for 'lseek64'
/usr/include/unistd.h:169: error: previous declaration of 'lseek64' was here
In file included from /usr/include/unistd.h:746,
                 from
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcint.h:41,
                 from
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcarch.c:26:
/usr/include/sys/lockf.h:64: error: conflicting types for 'lockf64'
/usr/include/sys/lockf.h:62: error: previous declaration of 'lockf64' was here
In file included from
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcint.h:41,
                 from
/tools/haubi/buildbot/toolsbase-2015/var/tmp/portage/media-libs/fontconfig-2.11.1-r1/work/fontconfig-2.11.1/src/fcarch.c:26:
/usr/include/unistd.h:809: error: conflicting types for 'ftruncate64'
/usr/include/unistd.h:807: error: previous declaration of 'ftruncate64' was
here
/usr/include/unistd.h:845: error: conflicting types for 'truncate64'
/usr/include/unistd.h:843: error: previous declaration of 'truncate64' was here
/usr/include/unistd.h:862: error: conflicting types for 'pread64'
/usr/include/unistd.h:859: error: previous declaration of 'pread64' was here
/usr/include/unistd.h:863: error: conflicting types for 'pwrite64'
/usr/include/unistd.h:860: error: previous declaration of 'pwrite64' was here
/usr/include/unistd.h:942: error: conflicting types for 'fclear64'
/usr/include/unistd.h:939: error: previous declaration of 'fclear64' was here
/usr/include/unistd.h:943: error: conflicting types for 'fsync_range64'
/usr/include/unistd.h:940: error: previous declaration of 'fsync_range64' was
here
Makefile:599: recipe for target 'fcarch.o' failed
make[3]: *** [fcarch.o] Error 1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>