Skip to content
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

On OS X 10.7 building against boost trunk requires linking of all plugins to boost_system #1070

Closed
springmeyer opened this issue Feb 9, 2012 · 0 comments

Comments

@springmeyer
Copy link
Member

This was reported by one user (@epifanio) and now I've upgraded to boost trunk and hit it. It seems possible it is a config error of some sort, but there also does not seem to be much harm with linking boost_system for all plugins, since those that use filesystem already do.

$ /Developer/usr/bin/clang++ -o plugins/input/gdal.input -dynamiclib plugins/input/gdal/gdal_datasource.os 
plugins/input/gdal/gdal_featureset.os -Ldeps/agg -Lsrc -L/opt/boost-trunk/lib -L/usr/local/Cellar/postgresql/9.1.2/lib -L/usr/local/
Cellar/geos/3.3.2/lib -L/usr/local/Cellar/gdal/1.9.0/lib -L/usr/local/Cellar/icu4c/4.8.1.1/lib -L/usr/local/lib -L/usr/lib -L/usr/X1
1/lib -lgdal -lmapnik -licuuc
Undefined symbols for architecture x86_64:
  "boost::system::generic_category()", referenced from:
      __GLOBAL__I_a in gdal_datasource.os
      __GLOBAL__I_a in gdal_featureset.os
  "boost::system::system_category()", referenced from:
      __GLOBAL__I_a in gdal_datasource.os
      __GLOBAL__I_a in gdal_featureset.os
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
~/projects/mapnik[master]$ g++ -o plugins/input/gdal.input -dynamiclib plugins/input/gdal/gdal_datasource.os plugins/input/gdal/gdal
_featureset.os -Ldeps/agg -Lsrc -L/opt/boost-trunk/lib -L/usr/local/Cellar/postgresql/9.1.2/lib -L/usr/local/Cellar/geos/3.3.2/lib -
L/usr/local/Cellar/gdal/1.9.0/lib -L/usr/local/Cellar/icu4c/4.8.1.1/lib -L/usr/local/lib -L/usr/lib -L/usr/X11/lib -lgdal -lmapnik -
licuuc
Undefined symbols for architecture x86_64:
  "boost::system::generic_category()", referenced from:
      global constructors keyed to ain gdal_datasource.os
      global constructors keyed to ain gdal_featureset.os
  "boost::system::system_category()", referenced from:
      global constructors keyed to ain gdal_datasource.os
      global constructors keyed to ain gdal_featureset.os
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant