Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Fontforge failed to build on 10.8 #28477

Closed
diaiaiaz opened this issue Apr 17, 2014 · 8 comments
Closed

Fontforge failed to build on 10.8 #28477

diaiaiaz opened this issue Apr 17, 2014 · 8 comments

Comments

@diaiaiaz
Copy link

Fontforge fails to build with the following message:

checking whether we are cross compiling... configure: error: in /private/tmp/fontforge-rFy0/fontforge-20120731-b': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.

Full info:
https://gist.github.com/anonymous/10995098

thanks,

@mistydemeo
Copy link
Member

dyld: Library not loaded: @@HOMEBREW_PREFIX@@/opt/gettext/lib/libintl.8.dylib
Referenced from: /private/tmp/fontforge-rFy0/fontforge-20120731-b/./conftest
Reason: image not found
./configure: line 2739: 6454 Trace/BPT trap: 5 ./conftest$ac_cv_exeext

Looks like the dylib install name rewriting failed for libintl.

Can you post the output of otool -L /usr/bin/install_name_tool, lipo -info /usr/bin/install_name_tool, and ls -l /usr/bin/install_name_tool?

@diaiaiaz
Copy link
Author

Hi Misty,

Here's the output —

otool -L /usr/bin/install_name_tool /usr/bin/install_name_tool:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

lipo -info /usr/bin/install_name_tool:
Non-fat file: /usr/bin/install_name_tool is architecture: x86_64

ls -l /usr/bin/install_name_tool:
-rwxr-xr-x 1 root admin 135664 17 Apr 12:45 /usr/bin/install_name_tool

Thanks!

@xiaodao001
Copy link

I encountered the same problem, i don't know how to fix.

@mistydemeo
Copy link
Member

@xiaodao001 Please post the same output as @diaiaiaz.

@diaiaiaz Can you also post the verbose output of brew reinstall gettext?

@diaiaiaz
Copy link
Author

@mistydemeo

brew reinstall gettext:
==> Reinstalling gettext
==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.3.2.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gettext/0.18.3.2 --with-included-gett
==> make
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.

OS X provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

LDFLAGS:  -L/usr/local/opt/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
🍺 /usr/local/Cellar/gettext/0.18.3.2: 1837 files, 20M, built in 6.1 minutes

Thanks!

@mistydemeo
Copy link
Member

@diaiaiaz Try installing fontforge again.

@adamv
Copy link
Contributor

adamv commented May 7, 2014

Closing due to no response; suggest brew update and try again.

@adamv adamv closed this as completed May 7, 2014
@daimingyang123
Copy link

@mistydemeo I did what you said,and the result is the same as @diaiaiaz .Then i try to install fontforge again,but failed

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants