<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Incorrect SIZEOF_VOID_P and ALIGNOF_DOUBLE definitions causes nasty warnings on MacOSX when building fat libraries"
href="https://bugs.freedesktop.org/show_bug.cgi?id=69833">69833</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect SIZEOF_VOID_P and ALIGNOF_DOUBLE definitions causes nasty warnings on MacOSX when building fat libraries
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dank@kegel.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>library
</td>
</tr>
<tr>
<th>Product</th>
<td>fontconfig
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=86612" name="attach_86612" title="Patch to select right values at compile time rather than configure time">attachment 86612</a> <a href="attachment.cgi?id=86612&action=edit" title="Patch to select right values at compile time rather than configure time">[details]</a></span>
Patch to select right values at compile time rather than configure time
I had trouble building fontconfig-2.10.95 as a universal library on MacOSX.
For completeness, my environment has
CC=gcc
CFLAGS=-O3 -g -arch i386 -arch x86_64 -isystem /opt/foo/include
CPP=/usr/bin/cpp
CXX=g++
CXXCPP=/usr/bin/cpp
CXXFLAGS=-O3 -g -arch i386 -arch x86_64 -isystem /opt/foo/include
LDFLAGS=-L/opt/oblong/deps/lib
OBJCFLAGS=-arch i386 -arch x86_64
PATH=/opt/foo/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin
PKG_CONFIG_PATH=/opt/foo/lib/pkgconfig
and the command I use is
./configure --prefix=/opt/foo --disable-dependency-tracking
--with-add-fonts=/Library/Fonts,~/Library/Fonts
This complains
In file included from fcint.h:29,
from fccache.c:26:
../config.h:8:1: warning: "ALIGNOF_DOUBLE" redefined
In file included from ../config.h:365,
from fccache.c:24:
../config-fixups.h:38:1: warning: this is the location of the previous
definition
Happily, the macports and homebrew folks had a patch ready for this issue; see
the script at
<a href="https://github.com/snakeyroc3/homebrew/commit/8cde20b7a8de828e5e094366629f12ae83aa96ea">https://github.com/snakeyroc3/homebrew/commit/8cde20b7a8de828e5e094366629f12ae83aa96ea</a>
I'll attach the patch. It's 13 lines, and just defines SIZEOF_VOID_P and
ALIGNOF_DOUBLE properly.</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>