-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homebrew build fails: ld: symbol(s) not found for architecture x86_64 #1957
Comments
The actual undefined symbols is not showing up in that error output. It looks like you need to rerun the install with the --verbose flag. The problem is likely not Mapnik but rather one of the dependencies is broken and needs rebuilt. You will not know which one until you can get an error indicating the particular symbol that is missing. |
Dane, thanks for reply. When doing I have a verbose output of an error: Install file: "deps/agg/include/agg_vpgen_segmentator.h" as "/usr/local/Cellar/mapnik/2.2.0/include/mapnik/agg/agg_vpgen_segmentator.h" I guess that has something to do with freetype lib. I reinstalled it from Homebrew, but that doesn't help. Any clues? |
No you have a problem with boost. Likely duplicate versions on your system. Remove boost and reinstall it. On Jul 22, 2013, at 12:38 AM, Nikolai Lebedev notifications@github.com wrote:
|
I did that several times already, but it didn't help. Is it obligatory for mapnik to build boost with --with-mpi flag? Although I've built open-mpi from scratch, boost doesn't get built with this option. Is it somehow related to this issue? Homebrew/legacy-homebrew#21304 |
no, Mapnik does not need boost build with |
btw, can you paste more of your verbose output? You cut off the actual line that links libmapnik.dylib. |
Sure, here is the full output https://gist.github.com/nlebedev/6055590 |
do you maybe have a folder at |
also what does the output of |
Checked for boost folder in /usr/include - nope, don't have it. |
okay, sounds good. So, this is mysterious then. I cannot replicate - the exact above command you ran What does |
What does your Maybe reinstalling python helps? |
system python. I refuse to use homebrew'ed python as it creates too many problems currently: #1838 |
|
Thanks, Dane, nailed it. I reinstalled boost without any flags, so it reports |
|
Yes, you're right! It's |
@NLebedev - mapnik will soon (in master) move to requiring it be built with c++11, but the v2.2.0 still needs to be build with normally (aka with |
I'm trying to solve an issue with cairo https://groups.google.com/forum/#!topic/mapnik/wDCZx9232FE
So I've decided to reinstall everything (cairo, boost, mapnik) from scratch.
But I get an error when installing mapnik.
brew install --with-cairo --with-gdal --with-geos --with-postgresql mapnik
==> Downloading http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-v2.2.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mapnik-2.2.0.tar.bz2
==> /usr/local/opt/python/bin/python2 scons/scons.py configure CC="cc" CXX="c++" JOBS=4 PREFIX=/usr/local/Cellar/mapnik/2.2.0 ICU_INCLUDES=/usr/local/opt/icu4c/include ICU_LIBS=/usr/local/opt/icu4c/lib PY
==> /usr/local/opt/python/bin/python2 scons/scons.py install
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"c++" -o plugins/input/csv/csv_datasource.os -c -ansi -Wall -ftemplate-depth-300 -O3 -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -fPIC -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_TIFF -DBIGINT -DBOOST_REGEX_HAS_ICU -DDARWIN -DMAPNIK_THREADSAFE -DNDEBUG -Ideps -Ideps/clipper/include -Ideps/agg/include -I. -Iinclude -I/usr/local/Cellar/gdal/1.10.0/include -I/usr/local/Cellar/postgresql/9.2.4/include -I/usr/local/Cellar/libtiff/4.0.3/include -I/usr/local/Cellar/proj/4.8.0/include -I/usr/local/Cellar/jpeg/8d/include -I/usr/local/Cellar/libxml2/2.9.1/include/libxml2 -I/usr/local/Cellar/freetype/2.4.11/include -I/usr/local/Cellar/freetype/2.4.11/include/freetype2 -I/usr/local/Cellar/icu4c/51.1/include -I/usr/local/Cellar/boost/1.54.0/include -I/usr/include plugins/input/csv/csv_datasource.cpp
scons: *** [src/libmapnik.dylib] Error 1
scons: building terminated because of errors.
How to resolve this?
OS X version is 10.8.4
The text was updated successfully, but these errors were encountered: