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

libtiff build error on 10.6.8 #16483

Closed
benoitwimart opened this issue Dec 8, 2012 · 11 comments
Closed

libtiff build error on 10.6.8 #16483

benoitwimart opened this issue Dec 8, 2012 · 11 comments

Comments

@benoitwimart
Copy link

Hi,

I try to install Fontforge eot-utils ttfautohint and I have this message :

==> Installing fontforge dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/libtiff-4.0.3.tar.gz
==> ./configure --without-x --prefix=/usr/local/Cellar/libtiff/4.0.3
==> make install
collect2: ld returned 1 exit status
make[1]: *** [libtiff.la] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  /usr/bin/llvm-g++ -DHAVE_CONFIG_H -I. -F/usr/local/Frameworks -Os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.6 -c tif_stream.cxx -o tif_stream.o >/dev/null 2>&1
make: *** [install-recursive] Error 1

Here is my doctor and --config
https://gist.github.com/4240911

I make a lots of try, but now I'am lost. I removed MacPorts…
What can I do now ?

@jacknagel
Copy link
Contributor

We'll need the full brew install -v output (as a gist).

@benoitwimart
Copy link
Author

thank you, update on first gist https://gist.github.com/4240911

@jacknagel
Copy link
Contributor

The libs (specifically, the jpeg lib) listed in the brew doctor output is interfering with the build; it doesn't have 64-bit symbols.

@benoitwimart
Copy link
Author

Thank you ! That means I have to remove this library?

@benoitwimart
Copy link
Author

I put in trash 3 files libjpeg.* ; and retry an install

==> Installing fontforge dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/libtiff-4.0.3.tar.gz
==> ./configure --without-x --prefix=/usr/local/Cellar/libtiff/4.0.3
==> make install
Warning: This keg was marked linked already, continuing anyway
/usr/local/Cellar/libtiff/4.0.3: 254 files, 3,6M, built in 33 seconds
==> Installing fontforge
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-sou
Already downloaded: /Library/Caches/Homebrew/fontforge-20120731.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/fontforge/20120731 --enable-double --
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/private/tmp/fontforge-6M86/fontforge-20120731-b':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

https://gist.github.com/4240911#file_fontforge%20console.log

@benoitwimart
Copy link
Author

I use brew uninstall libjpeg… no success.
(If this is useful I like to install fontforge to use http://fontcustom.com/).

@benoitwimart
Copy link
Author

Now I really don't know what to do with my poor english and my linux inexperience… any suggestion ?

@erikkallen
Copy link
Contributor

try unlinking libtiff first

brew unlink libtiff

then try installing libtiff again it worked for me

brew install libtiff

@benoitwimart
Copy link
Author

fail :( I will try in 2014 !

@adamv
Copy link
Contributor

adamv commented Jan 20, 2013

You will probably need to remove all the "unexpected" files found by brew doctor, though that will cause software that relies on them to stop working (if you can't install that software afterwards using Homebrew.)

brew list --unbrewed can also show you files in /usr/local that Homebrew didn't put there.

There are probably more than 3 files that need to be removed to clear out the files that are getting in the way.

Until brew doctor reports no conflicting files, this compile will likely continue to fail.

@adamv adamv closed this as completed Jan 20, 2013
@backwater
Copy link

Hi, I've got a somewhat similar problem installing pdf2htmlEX . I've cleared out all the conflicting files that the brew doctor is telling me to move. And , when I run brew install pdf2htmlex, I get:

==> Installing pdf2htmlex dependency: fontforge
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-20120731-b.tar.
Already downloaded: /Library/Caches/Homebrew/fontforge-20120731.tar.bz2
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file fontforge/startui.c
Hunk #1 succeeded at 50 with fuzz 2.
==> ./configure --prefix=/usr/local/Cellar/fontforge/20120731 --enable-double --without-freetype-bytecode --withou
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in /private/tmp/fontforge-52a9/fontforge-20120731-b': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details.

BTW- I've run through the pdf2htmlEX wiki till I was blue in the face. And I can't even locate the above private/tmp/fontforge-52a9 directory to even remove the problem file. Moreover, my poppler installation appears up to date. Can anyone give me a remote inking as to what I'm doing wrong ?

And by the way - I run locate on the config.log file and it's not there.

As an aside (and a possible clue to the issue ) - I'm also noticing something really odd. When I run "locate fontforge" in command line, it shows me a ton of old font forge files in my home directory ( from old, unsuccessful installs ). But, I can't actually see the directories when I follow the follow the folder paths.

Again, brew doctor is telling me "ready to brew!" but... no force of nature is enabling me a clean, functioning install of pdf2htmlEX. Any insightful advice would be really appreciated . Thanks !

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

No branches or pull requests

5 participants