[Fontconfig-bugs] [Bug 77034] New: No scandir function available

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 3 18:03:24 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77034

          Priority: medium
            Bug ID: 77034
          Assignee: fontconfig-bugs at lists.freedesktop.org
           Summary: No scandir function available
        QA Contact: freedesktop at behdad.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: freedesktop-2014 at ryandesign.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: library
           Product: fontconfig

I'm the maintainer of fontconfig in MacPorts. I'm trying to update fontconfig
to 2.11.1 but it fails at the configure stage with this error:

checking for posix_fadvise in fcntl.h... no
checking for scandir... configure: error: 
*** No scandir function available.

About this problem, the config.log says this:

configure:14021: ccache /usr/bin/clang -arch x86_64 -c -pipe -Os
-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-Wall -Wpointer-arith -Wstrict-prototypes     -Wmissing-prototypes
-Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -Werror
-I/opt/local/include
-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
conftest.c >&5
clang: error: argument unused during compilation: '-I /opt/local/include'

MacPorts is setting various environment variables at configure time, including:

CC='ccache /usr/bin/clang -arch x86_64'
CFLAGS='-pipe -Os
-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'
CPPFLAGS='-I/opt/local/include
-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk'

The error is due to a combination of factors:

 * I am using the clang compiler, which is the only compiler available with the
Apple developer tools on OS X 10.9 and later
 * the version of ccache I am using, 3.1.9, although it is the latest version
available, is not fully compatible with clang, in that it erroneously emits the
warning "argument unused during compilation" for any -I flag given (everything
works fine; it's just that this incorrect warning is emitted)
 * your configure script is requesting that all warnings be turned into errors,
via the -Werror flag

You should not be distributing scripts where your users will end up using the
-Werror flag. You can use it yourself during development, but you can't predict
what situations every compiler might consider to be an error, especially as
compilers continue to be developed and refined. At MacPorts, we often have to
remove -Werror from projects' configure scripts because newer versions of clang
often consider additional things to be errors.

-- 
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/20140404/a1cc389f/attachment.html>


More information about the Fontconfig-bugs mailing list