[MacPorts] #14102: fontconfig build fails if "head" is missing or
unusable
MacPorts
trac at macosforge.org
Tue Jan 29 07:54:40 PST 2008
#14102: fontconfig build fails if "head" is missing or unusable
-------------------------------------+--------------------------------------
Reporter: ryandesign at macports.org | Owner: ryandesign at macports.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: |
-------------------------------------+--------------------------------------
If the `/usr/bin/head` program is missing or unusable, or if an unusable
`head` program is listed first in the `PATH`, fontconfig fails to build
with this unintuitive error:
{{{
$ sudo port upgrade fontconfig
---> Building fontconfig with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_fontconfig/work/fontconfig-2.5.0"
&& make all " returned error 2
Command output: fcaliastail.h:520:2: error: #endif without #if
fcaliastail.h:522: error: only weak aliases are supported in this
configuration
fcaliastail.h:523:2: error: #endif without #if
fcaliastail.h:525: error: only weak aliases are supported in this
configuration
fcaliastail.h:526:2: error: #endif without #if
fcaliastail.h:528: error: only weak aliases are supported in this
configuration
fcaliastail.h:529:2: error: #endif without #if
fcaliastail.h:531: error: only weak aliases are supported in this
configuration
fcaliastail.h:532:2: error: #endif without #if
fcaliastail.h:534: error: only weak aliases are supported in this
configuration
fcaliastail.h:535:2: error: #endif without #if
fcaliastail.h:537: error: only weak aliases are supported in this
configuration
fcaliastail.h:538:2: error: #endif without #if
fcaliastail.h:540: error: only weak aliases are supported in this
configuration
fcaliastail.h:541:2: error: #endif without #if
fcaliastail.h:543: error: only weak aliases are supported in this
configuration
fcaliastail.h:544:2: error: #endif without #if
fcaliastail.h:546: error: only weak aliases are supported in this
configuration
fcaliastail.h:547:2: error: #endif without #if
fcaliastail.h:549: error: only weak aliases are supported in this
configuration
fcaliastail.h:550:2: error: #endif without #if
fcaliastail.h:552: error: only weak aliases are supported in this
configuration
fcaliastail.h:553:2: error: #endif without #if
fcaliastail.h:555: error: only weak aliases are supported in this
configuration
fcaliastail.h:556:2: error: #endif without #if
fcaliastail.h:557:2: error: #endif without #if
make[3]: *** [fcatomic.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Unable to upgrade port: 1
$
}}}
`/usr/bin/head` might be unusable if the user manually installed an old
version of libwww-perl, which would have tried to install `/usr/bin/HEAD`,
which, on a case-insensitive filesystem like the default Mac HFS+
filesystem, would have collided with and overwritten `/usr/bin/head`.
Another `head` program might be in the user's `PATH` if the user installed
libwww-perl to another prefix that's in their `PATH` before `/usr/bin`.
This problem was reported [http://lists.macosforge.org/pipermail/macports-
users/2007-January/001341.html on macports-users in January 2007] and
[ticket:12251 in this ticket in June 2007] and
[http://www.ghostwheel.com/merlin/Personal/notes/2007/11/28/os-x-unix-and-
dont-you-forget-it/ on someone's blog in November 2007] and
[http://lists.macosforge.org/pipermail/macports-
users/2007-December/007434.html on macports-users in December 2007] and
[ticket:14093 in this ticket in January 2008].
It would be nice if there were a more-intelligible error message for this
situation.
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14102>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list