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

brew upgrade libtiff fails with linker error #15916

Closed
kristopherjohnson opened this issue Nov 8, 2012 · 3 comments
Closed

brew upgrade libtiff fails with linker error #15916

kristopherjohnson opened this issue Nov 8, 2012 · 3 comments

Comments

@kristopherjohnson
Copy link

When I try "brew upgrade libtiff", I get these undefined symbols:

Undefined symbols for architecture i386:
"_lzma_code", referenced from:
_LZMADecode in tif_lzma.o
_LZMAPostEncode in tif_lzma.o
_LZMAEncode in tif_lzma.o
"_lzma_end", referenced from:
_LZMASetupDecode in tif_lzma.o
_LZMASetupEncode in tif_lzma.o
_LZMACleanup in tif_lzma.o
"_lzma_lzma_preset", referenced from:
_TIFFInitLZMA in tif_lzma.o
_LZMAVSetField in tif_lzma.o
"_lzma_memusage", referenced from:
_LZMADecode in tif_lzma.o
"_lzma_stream_decoder", referenced from:
_LZMAPreDecode in tif_lzma.o
_LZMADecode in tif_lzma.o
"_lzma_stream_encoder", referenced from:
_LZMAVSetField in tif_lzma.o
_LZMAPreEncode in tif_lzma.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Full terminal session here: https://gist.github.com/327d399145ddb87c3849

@adamv
Copy link
Contributor

adamv commented Nov 11, 2012

Anyone have any ideas here? libtiff doesn't have any dependencies.

Does --env=std help here? Do you know if you are trying to build it --universal or not?

@kristopherjohnson
Copy link
Author

I tried "brew upgrade --env-std libtiff", and that did not help. I didn't try any other special command options.

"brew uninstall libtiff" followed by "brew install libtiff" fixed it. So it seems whatever the problem was only appears when upgrading an existing libtiff package.

@adamv
Copy link
Contributor

adamv commented Nov 11, 2012

Ok, thanks. Calling this a possible duplicate of #14456 and #14009.

@adamv adamv closed this as completed Nov 11, 2012
@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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants