gptfdisk fails with link error #16283

Closed
jgongo opened this Issue Nov 28, 2012 · 6 comments

Comments

Projects
None yet
4 participants
Contributor

jgongo commented Nov 28, 2012

I was trying to install gptfdisk, but the installation fails with a link error. Here you have the output of the command:

bash-3.2$ brew install -vd gptfdisk
/usr/local/bin/brew: loading /usr/local/Library/Formula/gptfdisk.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/popt.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/icu4c.rb
/usr/local/Library/Formula/gptfdisk.rb: loading /usr/local/Library/Formula/popt.rb
/usr/local/Library/Formula/gptfdisk.rb: loading /usr/local/Library/Formula/icu4c.rb
/usr/local/Library/Formula/gptfdisk.rb: loading /usr/local/Library/Formula/python.rb
==> Downloading http://sourceforge.net/projects/gptfdisk/files/gptfdisk/0.8.5/gptfdisk-0.8.5.tar.gz
Already downloaded: /Library/Caches/Homebrew/gptfdisk-0.8.5.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/gptfdisk-0.8.5.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file Makefile.mac
==> make -f Makefile.mac
make -f Makefile.mac
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o crc32.o crc32.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o support.o support.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o guid.o guid.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o gptpart.o gptpart.cc
brew: superenv removed: -O2 -Wall -g
brew: superenv removed: -O2 -Wall -g
brew: superenv removed: -O2 -Wall -g
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o mbrpart.o mbrpart.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o basicmbr.o basicmbr.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o mbr.o mbr.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o gpt.o gpt.cc
brew: superenv removed: -O2 -Wall -g
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o bsd.o bsd.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o parttypes.o parttypes.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o attributes.o attributes.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o diskio.o diskio.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o diskio-unix.o diskio-unix.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o gpttext.o gpttext.cc
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o gdisk.o gdisk.cc
brew: superenv removed: -O2 -Wall -g
brew: superenv removed: -O2 -Wall -g
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o gptcl.o gptcl.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o sgdisk.o sgdisk.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o cgdisk.o cgdisk.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o gptcurses.o gptcurses.cc
brew: superenv removed: -O2 -Wall -g
c++ -O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -g -c -o fixparts.o fixparts.cc
brew: superenv removed: -O2 -Wall -g
c++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o -licuuc -licuio gpttext.o gdisk.o -o gdisk
Undefined symbols for architecture x86_64:
"icu_50::UnicodeString::UnicodeString(unsigned short const_)", referenced from:
GPTPart::GetDescription() in gptpart.o
GPTPart::SetType(PartType) in gptpart.o
GPTPart::ShowSummary(int, unsigned int) in gptpart.o
GPTPart::ShowDetails(unsigned int) in gptpart.o
GPTPart::ChangeType() in gptpart.o
"icu_50::UnicodeString::doExtract(int, int, unsigned short_, int) const", referenced from:
GPTPart::SetName(icu_50::UnicodeString const&) in gptpart.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gdisk] Error 1
make: *** Waiting for unfinished jobs....
/usr/local/Library/Homebrew/formula.rb:553:in `system'
BuildError: BuildError

  1. raise
  2. ignore
  3. backtrace
  4. irb
  5. shell
    Choose an action: ==> 1
    Configuration
    HOMEBREW_VERSION: 0.9.3
    HEAD: a013aa8
    CPU: quad-core 64-bit arrandale
    OS X: 10.8.2-x86_64
    Xcode: 4.5.2
    CLT: 4.5.0.0.1.1249367152
    X11: 2.7.4 => /opt/X11
    ==> ENV
    CC: cc
    CXX: c++
    MAKEFLAGS: -j4
    CMAKE_PREFIX_PATH: /usr/local
    CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
    CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
    PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/mountain_lion
    OBJC: cc
    PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/icu4c/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: gptfdisk did not build

Contributor

manphiz commented Dec 1, 2012

There is an icu4c update earlier. Please try to reinstall icu4c and retry.

zhiayang commented Dec 2, 2012

Just updated. Still facing the same error.

Contributor

manphiz commented Dec 2, 2012

Works for me. Please uninstall and reinstall icu4c and then retry gptfdisk.

Contributor

manphiz commented Dec 2, 2012

OK, although it built find, apparently it referenced the wrong location of icu4c, so it will fail in runtime. I don't understand the reason not to use system provided icucore.

Contributor

manphiz commented Dec 23, 2012

Please reinstall icu4c and gptfdisk, should work by now.

Contributor

adamv commented Jan 30, 2013

Closing since it has been suggested that reinstalling fixes this.

adamv closed this Jan 30, 2013

xu-cheng 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.