← Back to team overview

dolfin team mailing list archive

Re: linking error

 

Can you do ldd (otool -L on Mac) on the object file to see if boost's
shared library is being loaded. It looks like either an older version
of boost or a problem finding the shared library.

aterrel@aterrel:~/workspace/dolfin/demo/pde/stokes/taylor-hood/cpp$
otool -L ~/workspace/lib/libdolfin.dylib
/Users/aterrel/workspace/lib/libdolfin.dylib:
	dolfin/libdolfin.dylib (compatibility version 0.0.0, current version 0.0.0)
	/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
(compatibility version 1.0.0, current version 268.0.1)
	/sw/lib/libboost_program_options-1_35.dylib (compatibility version
1.35.0, current version 1.35.0)
	/sw/lib/libboost_filesystem-1_35.dylib (compatibility version 1.35.0,
current version 1.35.0)
	/sw/lib/libboost_system-1_35.dylib (compatibility version 1.35.0,
current version 1.35.0)
	/sw/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.32.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/local/lib/libmpi_cxx.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
	/usr/local/lib/libmpi.0.dylib (compatibility version 1.0.0, current
version 1.1.0)
	/usr/local/lib/libopen-rte.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
	/usr/local/lib/libopen-pal.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
	/usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.0.1)


-- Andy

On Thu, Apr 15, 2010 at 8:57 AM, Patrick Riesen <priesen@xxxxxxxxxxxxxxx> wrote:
> hello, i just made a bzr pull for all fenics packages.
>
> dolfin compiled and linked without problem. but when compiling any of the
> demos i get the following linking error:
>
> mpic++ -o demo -Wl,-rpath,/scratch/priesen/FEniCS/build/lib main.o
> -L/scratch/priesen/FEniCS/build/lib -L/usr/lib/atlas -ldolfin
> -lboost_program_options -lboost_filesystem -lxml2 -lz -lumfpack -lamd
> -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc
> -lX11 -lCGAL -llapack -lblas
> /scratch/priesen/FEniCS/build/lib/libdolfin.so: undefined reference to
> `boost::detail::set_tss_data(void const*,
> boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
> /scratch/priesen/FEniCS/build/lib/libdolfin.so: undefined reference to
> `boost::detail::get_tss_data(void const*)'
> collect2: ld returned 1 exit status
> scons: *** [demo] Error 1
> scons: building terminated because of errors.
>
>
> help appreciated :-)
>
> best regards,
>
> patrick
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp
>



Follow ups

References