Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.96k stars 11.34k forks source link

inkscape forumla with xcode5 and gcc48 #23277

Closed DaKaZ closed 10 years ago

DaKaZ commented 11 years ago

I just blanked and reinstalled Mnt. Lion on my Mac Pro, as I setup the environment for homebrew I was forced to install the new xcode5 which also requires gcc48 for inkscape.

First, I reinstalled all deps with:

brew install --build-from-source --cc=gcc-4.8

But... There is a bug with inkscape-0.48.4 which is identified here:

http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/10359

I patched this with this custom patch I added to the inkscape formula:

https://gist.github.com/DaKaZ/6985231

This gets me to compile time but now I'm stuck... Getting the following error (somewhat trucated):

/usr/bin/ranlib: file: libinkscape.a(doxygen-main.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(fixes.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(nr-filter-utils.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(pdf-input-cairo.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(svg-builder.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(pdf-parser.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(pdf-input.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(win32.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(emf-win32-print.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(emf-win32-inout.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(filedialogimpl-win32.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(print-colors-preview-dialog.o) has no symbols /usr/bin/ranlib: file: libinkscape.a(edit.o) has no symbols ranlib: file: libinkscape.a(doxygen-main.o) has no symbols ranlib: file: libinkscape.a(fixes.o) has no symbols ranlib: file: libinkscape.a(nr-filter-utils.o) has no symbols ranlib: file: libinkscape.a(pdf-input-cairo.o) has no symbols ranlib: file: libinkscape.a(svg-builder.o) has no symbols ranlib: file: libinkscape.a(pdf-parser.o) has no symbols ranlib: file: libinkscape.a(pdf-input.o) has no symbols ranlib: file: libinkscape.a(win32.o) has no symbols ranlib: file: libinkscape.a(emf-win32-print.o) has no symbols ranlib: file: libinkscape.a(emf-win32-inout.o) has no symbols ranlib: file: libinkscape.a(filedialogimpl-win32.o) has no symbols ranlib: file: libinkscape.a(print-colors-preview-dialog.o) has no symbols ranlib: file: libinkscape.a(edit.o) has no symbols CXXLD inkscape CXXLD inkview brew: superenv removed: -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 brew: superenv removed: -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 g++-4.8: error: unrecognized command line option '--export-dynamic' make[1]: * [inkscape] Error 1 make[1]: * Waiting for unfinished jobs.... make: *\ [install-recursive] Error 1 ==> Configuration HOMEBREW_VERSION: 0.9.5 HEAD: c29f75f44cccb5a76d371397cf30977d4a3f5946 CPU: 8-core 64-bit penryn OS X: 10.8.5-x86_64 Xcode: 5.0 CLT: 5.0.0.0.1.1377666378 X11: 2.7.4 => /opt/X11 ==> ENV HOMEBREW_CC: gcc-4.8 MAKEFLAGS: -j8 CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local/opt/icu4c:/usr/local CMAKE_INCLUDE_PATH: /opt/X11/include/freetype2:/usr/include/libxml2:/opt/X11/include:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Headers CMAKE_LIBRARY_PATH: /opt/X11/lib PKG_CONFIG_PATH: /usr/local/opt/bdw-gc/lib/pkgconfig:/usr/local/opt/libsigc++/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/glibmm/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/gdk-pixbuf/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/harfbuzz/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pango/lib/pkgconfig:/usr/local/opt/atk/lib/pkgconfig:/usr/local/opt/gtk+/lib/pkgconfig:/usr/local/opt/cairomm/lib/pkgconfig:/usr/local/opt/pangomm/lib/pkgconfig:/usr/local/opt/atkmm/lib/pkgconfig:/usr/local/opt/gtkmm/lib/pkgconfig:/usr/local/opt/gsl/lib/pkgconfig:/usr/local/opt/popt/lib/pkgconfig:/usr/local/opt/little-cms/lib/pkgconfig:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal OBJC: cc PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/pkg-config/bin:/usr/local/opt/intltool/bin:/usr/local/opt/boost-build/bin:/usr/local/opt/gettext/bin:/usr/local/opt/glib/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/libpng/bin:/usr/local/opt/gdk-pixbuf/bin:/usr/local/opt/cairo/bin:/usr/local/opt/icu4c/bin:/usr/local/opt/freetype/bin:/usr/local/opt/harfbuzz/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/pango/bin:/usr/local/opt/gtk+/bin:/usr/local/opt/gsl/bin:/usr/local/opt/little-cms/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/gcc48/bin

btel commented 10 years ago

@klaventall try reinstalling the dependencies as suggested by @tbekolay

ahundt commented 10 years ago

I still have this issue, I'm trying the fix by @tbekolay. It seems this issues is closed even though the problem isn't resolved. Will something be merged in and released soon?

○ brew install inkscape
==> Downloading http://downloads.sourceforge.net/project/inkscape/inkscape/0.48.4/inkscape-0.48.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/inkscape-0.48.4.tar.gz
==> ./configure --prefix=/usr/local/Cellar/inkscape/0.48.4 --enable-lcms --disable-poppler-cairo
==> make install
collect2: ld returned 1 exit status
make[1]: *** [inkview] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [inkscape] Error 1
make: *** [install-recursive] Error 1

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
    https://github.com/Homebrew/homebrew/issues/23277
    https://github.com/Homebrew/homebrew/issues/24667
    https://github.com/Homebrew/homebrew/pull/12989
    https://github.com/Homebrew/homebrew/issues/19355
    https://github.com/Homebrew/homebrew/issues/22875
woodb commented 10 years ago

Following @tbekolay, I got it going with a(n) (ever so slight) modification.

brew reinstall atk pkg-config intltool boost-build autoconf automake gettext bdw-gc glibmm gsl boost popt little-cms cairomm pango hicolor-icon-theme gtkmm gdk-pixbuf
brew install --HEAD https://raw.github.com/btel/homebrew/inkscape_clang/Library/Formula/inkscape.rb
benjaminweb commented 10 years ago

Neither @tbekolay's nor @woodb's suggested reinstall of dependencies, followed by a --HEAD install with @btel's formula fixes this issue:

checking for intltool >= 0.17 ... yes (version 0.50.2)

Running aclocal-1.14 -I /usr/local/share/aclocal ... aclocal-1.14: error: aclocal: file '/usr/local/share/aclocal/xapian.m4' does not exist Please fix the error conditions and try again.

Inkscape has no xapian dependency. At least for me, the formula goes awry. What does it take to fix the formula? https://raw.github.com/btel/homebrew/inkscape_clang/Library/Formula/inkscape.rb

btel commented 10 years ago

did you try running brew doctor? Make sure that it does not return any errors.

btel commented 10 years ago

I looks as some kind of autoconf problem. Have run brew doctor and fixed all the issues?

benjaminweb commented 10 years ago

I did that. This was required but did not solved my issue. I need to reinstall other packages (issued by make?) in addition to those you listed. It runs through now. Thanks.

tkellen commented 10 years ago

@benjaminweb How did you resolve this issue? I'm seeing the same thing you were.

benjaminweb commented 10 years ago

@tkellen Use brew -v to view where make fails. Reinstall each $package indicated there with brew install --reinstall $package

ghost commented 10 years ago

Compilation is ok, but still importing of eps or other ps format is broken for me

siobhandougall commented 10 years ago

FWIW, I hit a similar issue, tried a few (but not all) of the suggested workarounds, and finally gave up and downloaded the compiled binary. PDF import works there, just not in the version installed via Homebrew.