This repository has been archived by the owner. It is now read-only.

libicns failed to build on 10.8.2 #15478

Closed
janlimpens opened this Issue Oct 15, 2012 · 25 comments

Comments

Projects
None yet
@janlimpens
==> Upgrading libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.
Already downloaded: /Library/Caches/Homebrew/libicns-0.8.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
      _WritePNGImage in icns2png.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [icns2png] Error 1
make: *** [install-recursive] Error 1

Error: libicns did not build

https://gist.github.com/3897056

~ ❯❯❯ brew doctor
Your system is raring to brew.
@jacknagel

This comment has been minimized.

Show comment Hide comment
@Raynes

This comment has been minimized.

Show comment Hide comment
@Raynes

Raynes Oct 17, 2012

Contributor

I've got this same issue. Not sure what I'm supposed to be looking at in the troubleshooting section, but nothing seems relevant.

Contributor

Raynes commented Oct 17, 2012

I've got this same issue. Not sure what I'm supposed to be looking at in the troubleshooting section, but nothing seems relevant.

@janlimpens

This comment has been minimized.

Show comment Hide comment
@janlimpens

janlimpens Oct 17, 2012

Yip, same here.

Yip, same here.

@mgol

This comment has been minimized.

Show comment Hide comment
@mgol

mgol Oct 17, 2012

Same here. Due to this issue brew install wine fails.

mgol commented Oct 17, 2012

Same here. Due to this issue brew install wine fails.

@mistydemeo

This comment has been minimized.

Show comment Hide comment
@mistydemeo

mistydemeo Oct 17, 2012

Contributor

@Raynes We're looking for the information the troubleshooting page requests be provided, which is what will let us figure out what the problem is.

Contributor

mistydemeo commented Oct 17, 2012

@Raynes We're looking for the information the troubleshooting page requests be provided, which is what will let us figure out what the problem is.

@Raynes

This comment has been minimized.

Show comment Hide comment
@Raynes

Raynes Oct 17, 2012

Contributor

https://gist.github.com/3907782 is the log output.

Contributor

Raynes commented Oct 17, 2012

https://gist.github.com/3907782 is the log output.

@mistydemeo

This comment has been minimized.

Show comment Hide comment
@mistydemeo

mistydemeo Oct 17, 2012

Contributor

Can you try this:

brew rm libpng
brew install libpng --universal

And then let me know if you can build libicns?

Contributor

mistydemeo commented Oct 17, 2012

Can you try this:

brew rm libpng
brew install libpng --universal

And then let me know if you can build libicns?

@Raynes

This comment has been minimized.

Show comment Hide comment
@Raynes

Raynes Oct 17, 2012

Contributor

That did the trick!

Contributor

Raynes commented Oct 17, 2012

That did the trick!

@janlimpens

This comment has been minimized.

Show comment Hide comment
@janlimpens

janlimpens Oct 17, 2012

Misty De Meo@17/102012:

brew rm libpng
brew install libpng --universal

here, too :)

Misty De Meo@17/102012:

brew rm libpng
brew install libpng --universal

here, too :)

@Raynes

This comment has been minimized.

Show comment Hide comment
@Raynes

Raynes Oct 17, 2012

Contributor

Note that in order to build wine (which was the end goal here), I needed to build freetype as universal as well.

Contributor

Raynes commented Oct 17, 2012

Note that in order to build wine (which was the end goal here), I needed to build freetype as universal as well.

@mistydemeo

This comment has been minimized.

Show comment Hide comment
@mistydemeo

mistydemeo Oct 18, 2012

Contributor

Reopening, since a real fix is dependent on #14456.

Contributor

mistydemeo commented Oct 18, 2012

Reopening, since a real fix is dependent on #14456.

@mistydemeo mistydemeo reopened this Oct 18, 2012

@rinchen

This comment has been minimized.

Show comment Hide comment
@rinchen

rinchen Dec 2, 2012

libpng trick worked for me too.

HOMEBREW_VERSION: 0.9.3
HEAD: 55cfbdf
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

rinchen commented Dec 2, 2012

libpng trick worked for me too.

HOMEBREW_VERSION: 0.9.3
HEAD: 55cfbdf
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.2-x86_64
Xcode: 4.5.2
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@agrawalankur

This comment has been minimized.

Show comment Hide comment
@agrawalankur

agrawalankur Dec 5, 2012

libpng trick worked for me too.

libpng trick worked for me too.

@rabialam

This comment has been minimized.

Show comment Hide comment
@rabialam

rabialam Dec 7, 2012

thirded

rabialam commented Dec 7, 2012

thirded

@binary132

This comment has been minimized.

Show comment Hide comment
@binary132

binary132 Dec 15, 2012

Had to rebuild Freetype as well as libpng as Universal. Then it worked. (Build took 18 minutes on my 2.4GHz Core 2 Duo. Didn't realize to expect that! lol.)

Had to rebuild Freetype as well as libpng as Universal. Then it worked. (Build took 18 minutes on my 2.4GHz Core 2 Duo. Didn't realize to expect that! lol.)

@jfmercer

This comment has been minimized.

Show comment Hide comment
@jfmercer

jfmercer Jan 10, 2013

libpng trick worked for me

libpng trick worked for me

@iosengineer

This comment has been minimized.

Show comment Hide comment
@iosengineer

iosengineer Jan 12, 2013

--universal worked great thx!

--universal worked great thx!

@oschrenk

This comment has been minimized.

Show comment Hide comment
@oschrenk

oschrenk Jan 13, 2013

Contributor

brew rm libpng
brew install libpng --universal

👍

Contributor

oschrenk commented Jan 13, 2013

brew rm libpng
brew install libpng --universal

👍

@rodrigoSyscop

This comment has been minimized.

Show comment Hide comment
@rodrigoSyscop

rodrigoSyscop Jan 14, 2013

brew rm libpng
brew install libpng --universal

Works for me too.

brew rm libpng
brew install libpng --universal

Works for me too.

@silvansky

This comment has been minimized.

Show comment Hide comment
@silvansky

silvansky Jan 18, 2013

Thanks for workaround with libpng!

Thanks for workaround with libpng!

@terryblood

This comment has been minimized.

Show comment Hide comment
@terryblood

terryblood Jan 25, 2013

brew rm libpng
brew install libpng --universal

Works for me too.

brew rm libpng
brew install libpng --universal

Works for me too.

@adamv adamv closed this in be74c06 Feb 6, 2013

@glittershark

This comment has been minimized.

Show comment Hide comment
@glittershark

glittershark Feb 18, 2013

brew install libpng --universal
looks like it takes me to a dead link

brew install libpng --universal
looks like it takes me to a dead link

@Japh

This comment has been minimized.

Show comment Hide comment
@Japh

Japh Mar 14, 2013

@glittershark: I got the dead link too. I downloaded the libpng-1.5.13.tar.gz file from here http://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.13/ and put it in /Library/Caches/Homebrew/, then ran again. Worked fine.

Japh commented Mar 14, 2013

@glittershark: I got the dead link too. I downloaded the libpng-1.5.13.tar.gz file from here http://sourceforge.net/projects/libpng/files/libpng15/older-releases/1.5.13/ and put it in /Library/Caches/Homebrew/, then ran again. Worked fine.

@tanaydin

This comment has been minimized.

Show comment Hide comment
@tanaydin

tanaydin Sep 18, 2013

workaround is not working anymore... I'm getting

tanaydin•/usr/local(master)» brew rm libpng Uninstalling /usr/local/Cellar/libpng/1.5.14...
tanaydin•/usr/local(master)» brew install libpng --universal
==> Downloading http://downloads.sf.net/project/libpng/libpng15/older-releases/1.5.14/libpng-1.5.14.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libpng/1.5.14
==> make install
/usr/local/Cellar/libpng/1.5.14: 15 files, 1.3M, built in 35 seconds
tanaydin•/usr/local(master)» brew install --universal libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
_WritePNGImage in icns2png.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [icns2png] Error 1
make: *** [install-recursive] Error 1

workaround is not working anymore... I'm getting

tanaydin•/usr/local(master)» brew rm libpng Uninstalling /usr/local/Cellar/libpng/1.5.14...
tanaydin•/usr/local(master)» brew install libpng --universal
==> Downloading http://downloads.sf.net/project/libpng/libpng15/older-releases/1.5.14/libpng-1.5.14.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libpng/1.5.14
==> make install
/usr/local/Cellar/libpng/1.5.14: 15 files, 1.3M, built in 35 seconds
tanaydin•/usr/local(master)» brew install --universal libicns
==> Downloading http://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1
==> make install
_WritePNGImage in icns2png.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [icns2png] Error 1
make: *** [install-recursive] Error 1

@ar2rsawseen

This comment has been minimized.

Show comment Hide comment
@ar2rsawseen

ar2rsawseen Feb 27, 2015

I had libpng already preinstalled before brew and for some reason it was always using it (although I've relinked using brew). Manually removing it from /usr/local helped install libicns through brew

I had libpng already preinstalled before brew and for some reason it was always using it (although I've relinked using brew). Manually removing it from /usr/local helped install libicns through brew

@mistydemeo mistydemeo locked and limited conversation to collaborators Feb 27, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.