#21398 closed defect (worksforme)
freetype: /opt/local/bin/freetype-config is not executable
Reported by: | sawtdk@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | ||
Port: | freetype |
Description
$ sudo port install fontconfig +universal ---> Computing dependencies for fontconfig ---> Fetching freetype ---> Verifying checksum(s) for freetype ---> Extracting freetype ---> Applying patches to freetype ---> Configuring freetype ---> Configuring freetype for architecture x86_64 ---> Configuring freetype for architecture i386 ---> Building freetype ---> Building freetype for architecture x86_64 ---> Building freetype for architecture i386 ---> Staging freetype into destroot ---> Staging freetype into destroot for architecture x86_64 ---> Staging freetype into destroot for architecture i386 ---> Installing freetype @2.3.9_1+macosx+universal ---> Activating freetype @2.3.9_1+macosx+universal ---> Cleaning freetype ---> Fetching fontconfig ---> Verifying checksum(s) for fontconfig ---> Extracting fontconfig ---> Applying patches to fontconfig ---> Configuring fontconfig ---> Configuring fontconfig for architecture x86_64 Error: Target org.macports.configure returned: configure failure: 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-x86_64" && ./configure --prefix=/opt/local --disable-dependency-tracking --with-docdir=/opt/local/share/doc/fontconfig-2.7.3 --disable-dependency-tracking --with-add-fonts=/usr/X11R6/lib/X11/fonts,/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts,/opt/local/share/fonts " returned error 1 Command output: checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for pid_t... yes checking for vprintf... yes checking for _doprnt... no checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking for geteuid... yes checking for getuid... yes checking for link... yes checking for memmove... yes checking for memset... yes checking for mkstemp... yes checking for strchr... yes checking for strrchr... yes checking for strtol... yes checking for getopt... yes checking for getopt_long... yes checking for sysconf... yes checking for ftruncate... yes checking for chsize... no checking for rand... yes checking for random... yes checking for lrand48... yes checking for a usable iconv... libiconv checking for freetype-config... no configure: error: You must have freetype installed; see http://www.freetype.org/ Error: Status 1 encountered during processing.
Attachments (2)
Change History (21)
comment:1 Changed 15 years ago by sawtdk@…
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Port: | fontconfig added |
Summary: | fontconfig 2.7.2 +universal configure error - build failure (10.6) → fontconfig 2.7.3 +universal configure error - build failure (10.6) |
comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
It works fine universal for me on Snow Leopard.
Does the program /opt/local/bin/freetype-config exist?
If no, rebuild freetype. If yes, could you please attach fontconfig's config.log?
comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | fontconfig 2.7.3 +universal configure error - build failure (10.6) → fontconfig +universal: You must have freetype installed |
---|
Changed 15 years ago by sawtdk@…
Attachment: | config.log added |
---|
comment:5 Changed 15 years ago by sawtdk@…
yes i found the program /opt/local/bin/freetype-config, so i have uploaded config.log, I hope it's the right one...
comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Yes it's the right file. I was hoping to see more differences between your file and mine, but I don't; they're essentially the same, up until the point where mine finds freetype-config and yours doesn't.
Does your freetype-config work? What happens if you try to run it, e.g.:
/opt/local/bin/freetype-config --libs
Changed 15 years ago by sawtdk@…
Attachment: | freetype-config added |
---|
this is the freetype-config program. The odd thing is that the file is recognized as a document instead of an unix archive
comment:7 Changed 15 years ago by sawtdk@…
$ /opt/local/bin/freetype-config --libs -bash: /opt/local/bin/freetype-config: Permission denied
That's what it says when I run the command
comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Aha! So why is permission denied? What are the permissions of that file?
ls -l /opt/local/bin/freetype-config
comment:9 Changed 15 years ago by sawtdk@…
$ ls -l /opt/local/bin/freetype-config -rw-r--r-- 2 root admin 3776 16 Sep 15:31 /opt/local/bin/freetype-config
comment:10 follow-up: 12 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, so it's not executable, and it needs to be. I can't imagine how that came to pass. Since I don't know what else is wrong in your freetype, I was going to suggest rebuilding it, but your output above shows you just installed it, so I don't know.
If you want to try rebuilding it, you can do so like this:
sudo port -n upgrade --force freetype
If that doesn't fix it, you can make it executable manually:
sudo chmod 755 /opt/local/bin/freetype-config
Is there something unusual about the disk this is installed on? Is it using HFS+ or case-sensitive HFS+ or some other file system? Anything else you can think of that might be unusual about your system?
comment:11 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | freetype added; fontconfig removed |
---|---|
Summary: | fontconfig +universal: You must have freetype installed → freetype: /opt/local/bin/freetype-config is not executable |
comment:12 Changed 15 years ago by sawtdk@…
Replying to ryandesign@…:
Ok, so it's not executable, and it needs to be. I can't imagine how that came to pass. Since I don't know what else is wrong in your freetype, I was going to suggest rebuilding it, but your output above shows you just installed it, so I don't know.
If you want to try rebuilding it, you can do so like this:
sudo port -n upgrade --force freetypeIf that doesn't fix it, you can make it executable manually:
sudo chmod 755 /opt/local/bin/freetype-configIs there something unusual about the disk this is installed on? Is it using HFS+ or case-sensitive HFS+ or some other file system? Anything else you can think of that might be unusual about your system?
I can't really think of any unusual things on my computer. I did a clean 10.6 install from 10.5.8 and installed a clean macports. When I build freetype without +universal the freetype is correctly an executable. Now I will try the chmod 755 command...
comment:13 follow-up: 14 Changed 15 years ago by sawtdk@…
I trien the chmod 755 command and then freetype-config was an executable.
Then I tried to install fontconfig and this happened:
$ sudo port install fontconfig +universal ---> Computing dependencies for fontconfig ---> Fetching fontconfig ---> Verifying checksum(s) for fontconfig ---> Extracting fontconfig ---> Applying patches to fontconfig ---> Configuring fontconfig ---> Configuring fontconfig for architecture x86_64 ---> Configuring fontconfig for architecture i386 ---> Building fontconfig ---> Building fontconfig for architecture x86_64 ---> Building fontconfig for architecture i386 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-i386" && /usr/bin/make -j2 all " returned error 2 Command output: fcxml.c:167: warning: assignment discards qualifiers from pointer target type fcxml.c: At top level: fcxml.c:138: warning: 'FcExprCreateNil' defined but not used /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.2 -arch i386 -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 -c -o ftglue.lo ftglue.c libtool: compile: /usr/bin/gcc-4.2 -arch i386 -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 -c ftglue.c -fno-common -DPIC -o .libs/ftglue.o libtool: compile: /usr/bin/gcc-4.2 -arch i386 -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 -c ftglue.c -o ftglue.o >/dev/null 2>&1 libtool: compile: /usr/bin/gcc-4.2 -arch i386 -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 -c fcxml.c -o fcxml.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link /usr/bin/gcc-4.2 -arch i386 -O2 -version-info 5:3:4 -no-undefined -L/opt/local/lib -o libfontconfig.la -rpath /opt/local/lib fcatomic.lo fcblanks.lo fccache.lo fccfg.lo fccharset.lo fcdbg.lo fcdefault.lo fcdir.lo fcformat.lo fcfreetype.lo fcfs.lo fcinit.lo fclang.lo fclist.lo fcmatch.lo fcmatrix.lo fcname.lo fcpat.lo fcserialize.lo fcstr.lo fcxml.lo ftglue.lo -L/opt/local/lib -lfreetype -lz -L/opt/local/lib -lxml2 -lpthread -lz -liconv -lm libtool: link: /usr/bin/gcc-4.2 -arch i386 -dynamiclib -o .libs/libfontconfig.1.dylib .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fcdbg.o .libs/fcdefault.o .libs/fcdir.o .libs/fcformat.o .libs/fcfreetype.o .libs/fcfs.o .libs/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/fcname.o .libs/fcpat.o .libs/fcserialize.o .libs/fcstr.o .libs/fcxml.o .libs/ftglue.o -L/opt/local/lib /opt/local/lib/libfreetype.dylib /opt/local/lib/libxml2.dylib -lpthread -lz /opt/local/lib/libiconv.dylib -lm -arch i386 -install_name /opt/local/lib/libfontconfig.1.dylib -compatibility_version 6 -current_version 6.3 -Wl,-single_module ld: warning: in /opt/local/lib/libxml2.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libiconv.dylib, file is not of required architecture Undefined symbols: "_xmlSAX2GetLineNumber", referenced from: _FcConfigMessage in fcxml.o _FcConfigMessage in fcxml.o "_xmlCtxtGetLastError", referenced from: _FcConfigParseAndLoad in fcxml.o "_xmlParseChunk", referenced from: _FcConfigParseAndLoad in fcxml.o "_xmlCreatePushParserCtxt", referenced from: _FcConfigParseAndLoad in fcxml.o "_xmlFreeParserCtxt", referenced from: _FcConfigParseAndLoad in fcxml.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libfontconfig.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
comment:14 follow-up: 15 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to sawtdk@…:
I trien the chmod 755 command and then freetype-config was an executable.
Ok, great. Wish I knew why it wasn't an executable to begin with.
Then I tried to install fontconfig and this happened:
[snip]
ld: warning: in /opt/local/lib/libxml2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libiconv.dylib, file is not of required architecture
Ok, what architecture are those files? They need to be x86_64 and i386. Are the ports that installed those files built with the universal variant? They need to be.
comment:15 Changed 15 years ago by sawtdk@…
Replying to ryandesign@…:
Replying to sawtdk@…:
I trien the chmod 755 command and then freetype-config was an executable.
Ok, great. Wish I knew why it wasn't an executable to begin with.
Then I tried to install fontconfig and this happened:
[snip]
ld: warning: in /opt/local/lib/libxml2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libiconv.dylib, file is not of required architectureOk, what architecture are those files? They need to be x86_64 and i386. Are the ports that installed those files built with the universal variant? They need to be.
Ok i reinstalled the whole thing with +universal and when I built freetype it even made freetype-config an executable from the beginning like it should. And fontconfig then installed fine. So everythings cool, thank you for support :D
comment:16 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Great! Glad to hear it.
comment:17 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
comment:18 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
In r58379 I added checks to freetype to make sure zlib has the right arch.
comment:19 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
In r58380 I added a check to fontconfig to ensure each dependency has the right architectures; this should prevent this problem in the future by providing a clear error message explaining what the user must do to fix it.
Sorry it's fontconfig 2.7.3, NOT 2.7.2 as stated in the title!