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

pstoedit failed to build on 10.9 #25271

Closed
jawshooah opened this issue Dec 16, 2013 · 16 comments
Closed

pstoedit failed to build on 10.9 #25271

jawshooah opened this issue Dec 16, 2013 · 16 comments

Comments

@jawshooah
Copy link
Contributor

https://gist.github.com/7995006

Originally, I was getting the following error:

ld: library not found for -lintl

I Googled around a bit and found this potential solution: http://stackoverflow.com/questions/11151197/ld-library-not-found-for-lintl-on-mac-os-x-lion

I ran brew link --force gettext, which got rid of that error, only to produce a new one:

ld: library not found for -lXext

Guessing this is a problem with X11, but I'm not sure what I can do about it.

@adamv
Copy link
Contributor

adamv commented Dec 16, 2013

Copying in error:

ld: library not found for -lXext

@adamv
Copy link
Contributor

adamv commented Dec 17, 2013

An unmodified formula works here on 10.9.

@adamv
Copy link
Contributor

adamv commented Dec 17, 2013

Can you post the original error?

@jawshooah
Copy link
Contributor Author

Sure, here: https://gist.github.com/8000169

Error looks like this:

ld: library not found for -lintl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libp2edrvmagick++.la] Error 1
make: *** [install-recursive] Error 1

@adamv
Copy link
Contributor

adamv commented Dec 17, 2013

See also #25076

@jawshooah
Copy link
Contributor Author

Yes, I saw that. Reinstalled all deps and still getting the same error

@adamv
Copy link
Contributor

adamv commented Dec 17, 2013

Which error, the -linit error?

@jawshooah
Copy link
Contributor Author

With gettext unlinked, yes. With it linked, it's the -lXext error.

@maradatscha
Copy link

This formula did not build for me on 10.8 because

==> make install
libtool: link: clang++  -o .libs/libp2edrvmagick++.0.so -bundle  .libs/drvmagick++.o .libs/initlibrary.o   -L/usr/local/Cellar/imagemagick/6.8.7-7/lib /usr/local/Cellar/imagemagick/6.8.7-7/lib/libMagick++-6.Q16.dylib -L/usr/local/Cellar/freetype/2.5.1/lib -L/opt/X11/lib /usr/local/Cellar/imagemagick/6.8.7-7/lib/libMagickWand-6.Q16.dylib /usr/local/Cellar/imagemagick/6.8.7-7/lib/libMagickCore-6.Q16.dylib -llcms2 -lfreetype -lfftw3 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lltdl ./.libs/libpstoedit.dylib -lstdc++ -ldl -lm -lgd  -O2   -pthread
ld: library not found for -lXext
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libp2edrvmagick++.la] Error 1
make: *** [install-recursive] Error 1

I fixed this by adding depends_on :x11

@adamv
Copy link
Contributor

adamv commented Feb 12, 2014

Anyone have any more ideas here?

@MikeMcQuaid
Copy link
Member

Yeh, looks like it should need depends_on :x11 at least if it's installed.

@adamv
Copy link
Contributor

adamv commented Feb 14, 2014

I have X11 installed on 10.9 and pstoedit installs OK here.

@adamv
Copy link
Contributor

adamv commented Feb 14, 2014

I don't have gettext linked and I don't get -lintl errors.

@rmellema
Copy link

rmellema commented Mar 4, 2014

I didn't have gettext linked and I was getting -lintl errors while building R packages. I am using 10.9.

After I linked gettext, the -lintl error was gone. So it might have something to do with the OS version. I did a clean install of Mavericks.

@adamv
Copy link
Contributor

adamv commented Apr 17, 2014

It's possible that if ImageMagick is built using X11 then this also depends on X11, but a clean install of the dependencies on an up-to-date Homebrew didn't exhibit this error for me.

I don't know what else to do to try to diagnose this, other than to recommend brew update, make sure you have the latest Xcode, and try installing again. If it still fails, provide updated troubleshooting information.

@byronformwalt
Copy link

Uninstall and reinstall imagemagick worked for me.

@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.
Projects
None yet
Development

No branches or pull requests

6 participants