Opened 15 years ago

Closed 15 years ago

Last modified 8 years ago

#21539 closed defect (duplicate)

fontconfig-2.7.3 build error on snow leopard

Reported by: imgroxx@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snowleopard Cc:
Port: fontconfig

Description

NOT a duplicate of ticket #21470, as this isn't erring on libxml2.

#21470 states that forcing libxml2 to darwin_10 variant solves, but this occurs before libxml2 is even installed (all installed ports listed below error text). I wish I could say what I think it is, but alas, cannot. I'll attempt to install libxml2, and will re-do this build with a comment to follow soon on its success/failure.

This entire process was started from a completely erased 1.8.0 MacPort install. I installed bzip2, and was in the process of installing ddd when this error occurred.

--->  Building fontconfig
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.7.3" && /usr/bin/make -j2 all " returned error 2
Command output: fcxml.c:2344: error: expected ';', ',' or ')' before '*' token
fcxml.c: In function 'FcConfigParseAndLoad':
fcxml.c:2457: error: 'xmlParserCtxtPtr' undeclared (first use in this function)
fcxml.c:2457: error: expected ';' before 'p'
fcxml.c:2465: error: 'xmlSAXHandler' undeclared (first use in this function)
fcxml.c:2465: error: expected ';' before 'sax'
fcxml.c:2504: error: 'sax' undeclared (first use in this function)
fcxml.c:2506: error: 'FcInternalSubsetDecl' undeclared (first use in this function)
fcxml.c:2507: error: 'FcExternalSubsetDecl' undeclared (first use in this function)
fcxml.c:2508: error: 'FcStartElement' undeclared (first use in this function)
fcxml.c:2509: error: 'FcEndElement' undeclared (first use in this function)
fcxml.c:2510: error: 'FcCharacterData' undeclared (first use in this function)
fcxml.c:2512: error: 'p' undeclared (first use in this function)
fcxml.c:2512: warning: implicit declaration of function 'xmlCreatePushParserCtxt'
fcxml.c:2512: warning: nested extern declaration of 'xmlCreatePushParserCtxt'
fcxml.c:2521: error: too many arguments to function 'FcConfigInit'
fcxml.c:2551: warning: implicit declaration of function 'xmlParseChunk'
fcxml.c:2551: warning: nested extern declaration of 'xmlParseChunk'
fcxml.c:2557: warning: implicit declaration of function 'xmlCtxtGetLastError'
fcxml.c:2557: warning: nested extern declaration of 'xmlCtxtGetLastError'
fcxml.c:2557: error: invalid type argument of '->'
fcxml.c:2565: warning: implicit declaration of function 'xmlFreeParserCtxt'
fcxml.c:2565: warning: nested extern declaration of 'xmlFreeParserCtxt'
make[3]: *** [fcxml.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/opt/local/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/opt/local/etc/fonts\" -I/opt/local/include -O2 -arch x86_64 -MT fcpat.lo -MD -MP -MF .deps/fcpat.Tpo -c fcpat.c -o fcpat.o >/dev/null 2>&1
mv -f .deps/fcpat.Tpo .deps/fcpat.Plo
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: openmotif Xft2 fontconfig pkgconfig xorg-xproto xrender xorg-libX11 autoconf help2man gettext p5-locale-gettext perl5 perl5.8 m4 automake libtool xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto jpeg libpng xbitmaps xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXp xorg-printproto xorg-libXaw xpm
Error: Status 1 encountered during processing.
Goodbye
Navi:~ Groxx$ sudo port
Password:
MacPorts 1.8.0
Entering interactive mode... ("help" for help, "quit" to quit)
[Users/Groxx] > list installed
bzip2                          @1.0.5          archivers/bzip2
expat                          @2.0.1          textproc/expat
freetype                       @2.3.9          print/freetype
gperf                          @3.0.4          devel/gperf
libiconv                       @1.13           textproc/libiconv
ncurses                        @5.7            devel/ncurses
ncursesw                       @5.7            devel/ncursesw
zlib                           @1.2.3          archivers/zlib

Change History (5)

comment:1 Changed 15 years ago by imgroxx@…

Installing "libxml2 @2.7.4_0" (via "install libxml2") allowed the build to complete without error.

As activating fontconfig takes so long without any messages, can I request a message like "updating fc-cache..." ? I won't make a ticket out of it, because it's only UI polish, unless someone thinks it's worth it.

comment:2 Changed 15 years ago by tobypeterson

Resolution: duplicate
Status: newclosed

comment:3 in reply to:  2 ; Changed 15 years ago by imgroxx@…

Replying to toby@…:

#21233

Didn't find that one earlier on the search... probably because someone removed the "fontconfig" keyword. Why?

Anyway. I feel I should point out that this is not a during-config error, as this configured without apparent error, but blew up on build. Undoubtably related, but a possibly important difference (and a sign that the config is borked in 2.7.3 as well).

comment:4 in reply to:  3 Changed 15 years ago by imgroxx@…

Replying to imgroxx@…:

Replying to toby@…:

#21233

Didn't find that one earlier on the search... probably because someone removed the "fontconfig" keyword. Why?

Anyway. I feel I should point out that this is not a during-config error, as this configured without apparent error, but blew up on build. Undoubtably related, but a possibly important difference (and a sign that the config is borked in 2.7.3 as well).

Well, not a visible-during-config error. My phrasing-mistake.

comment:5 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: snowleopard added; fontconfig snow leopard 10.6 removed
Port: fontconfig added; fontconfig-2.7.3 removed
Note: See TracTickets for help on using tickets.