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

brew install geos fails on lion #7049

Closed
gturco opened this issue Aug 17, 2011 · 6 comments
Closed

brew install geos fails on lion #7049

gturco opened this issue Aug 17, 2011 · 6 comments

Comments

@gturco
Copy link

@gturco gturco commented Aug 17, 2011

I recently upgraded to lion and cannot install geos.

Looks like macports has a similar problem
http://lists.macosforge.org/pipermail/macports-tickets/2011-July/086884.html

Undefined symbols for architecture x86_64:
  "__ZNSt8auto_ptrIN4geos4geom8EnvelopeEEcvSt12auto_ptr_refIT_EIS2_EEv", referenced from:
      virtual thunk to geos::geom::GeometryCollection::computeEnvelopeInternal() constin GeometryCollection.o
  "std::auto_ptr<geos::geom::Envelope>::auto_ptr(std::auto_ptr_ref<geos::geom::Envelope>)", referenced from:
      virtual thunk to geos::geom::GeometryCollection::computeEnvelopeInternal() constin GeometryCollection.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [libgeos.la] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/geos.rb#L15
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 78155b683dbc0a437505ea76265f1650f7011a10
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.7.1
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.1
GCC-4.0: build 5666 
GCC-4.2: build 5666 
LLVM: build 2335 
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS:  -march=core2 -msse4.1 -w -pipe -O3
CXXFLAGS:  -march=core2 -msse4.1 -w -pipe -O3
MAKEFLAGS: -j2
@adamv
Copy link
Contributor

@adamv adamv commented Aug 19, 2011

Does changing def install to this help?

  def install
    ENV.O3
    ENV.gcc_4_2
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
@bartTC
Copy link

@bartTC bartTC commented Sep 2, 2011

@adamv This works fine, installed geos without any issues.

tmitchell added a commit to tmitchell/homebrew that referenced this issue Sep 3, 2011
@tswicegood
Copy link

@tswicegood tswicegood commented Sep 4, 2011

FYI, just did this myself. Works on Lion whereas the regular formula fails.

@jerryshen
Copy link

@jerryshen jerryshen commented Sep 13, 2011

brew install geos --use-gcc
this works fine.

@diptanu
Copy link

@diptanu diptanu commented Sep 30, 2011

Thanks @jerryshen. This seems to be working for me. Wonder why they don't update the Formulae.

@adamv
Copy link
Contributor

@adamv adamv commented Sep 30, 2011

Fixed in 54191f1

@adamv adamv closed this Sep 30, 2011
@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants