[Fontconfig-bugs] [Bug 69833] New: Incorrect SIZEOF_VOID_P and ALIGNOF_DOUBLE definitions causes nasty warnings on MacOSX when building fat libraries
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Sep 25 21:35:16 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=69833
Priority: medium
Bug ID: 69833
Assignee: fontconfig-bugs at lists.freedesktop.org
Summary: Incorrect SIZEOF_VOID_P and ALIGNOF_DOUBLE definitions
causes nasty warnings on MacOSX when building fat
libraries
QA Contact: freedesktop at behdad.org
Severity: enhancement
Classification: Unclassified
OS: Mac OS X (All)
Reporter: dank at kegel.com
Hardware: Other
Status: NEW
Version: unspecified
Component: library
Product: fontconfig
Created attachment 86612
--> https://bugs.freedesktop.org/attachment.cgi?id=86612&action=edit
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
https://github.com/snakeyroc3/homebrew/commit/8cde20b7a8de828e5e094366629f12ae83aa96ea
I'll attach the patch. It's 13 lines, and just defines SIZEOF_VOID_P and
ALIGNOF_DOUBLE properly.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130926/2f2bf449/attachment.html>
More information about the Fontconfig-bugs
mailing list