[Insight-developers] In the spirit of the green dashboard

Wes Turner wes.turner at kitware.com
Fri May 22 17:52:36 EDT 2009


FYI, I have tracked this down to an issue with the shared library flag.
 With shared libraries enabled, and at least on a cygwin build linking the
itkCommon libraries links libitkvnl in as well and defines all of its
symbols.  I disabled the shared option on the cygwin build to give us a
chance to view other errors while I finish debugging this.  Part of this
will involve seeing if I can duplicate it on different platforms.
I would be interested to hear of recent, successful builds of ITK with
shared libraries enabled.

Luis: Did your successful cygwin build have shared libraries on or off?

- Wes

On Thu, May 21, 2009 at 12:08 AM, Wes Turner <wes.turner at kitware.com> wrote:

> All,
>
> I have been trying to track down an issue with the dash14 cygwin build on
> the dashboard.  For some reason we are getting multiply defined symbols in
> vnl template instantiations.  The symbols are defined in both the
> libITKCommon and libitkvnl libraries.  I included one of the error messages
> from the dashboard ... there are 50 more just like it.  The dashboard entry
> is dash14.kitware Win32-cygwin344.<http://www.cdash.org/CDash/buildSummary.php?buildid=336834>
> The error began occurring on or about May 7th.  I reviewed the check-ins
> around that time and am not seeing an obvious candidate.  I reverted the ITK
> code to the day before the failing submission and then to one day earlier
> than that, but I still get the error.  I am not seeing any obvious changes
> to the build environment.
>
> So, this afternoon, I cleaned out both the source and binary directories
> and am waiting with bated breath to see the results.
>
> If anyone has suggestions, or if anyone has a working cygwin build they can
> submit as an Experimental it would be appreciated.  Of course, there is an
> outside chance that clearing out the source directory will help, but I have
> my doubts.
>
> Thanks for any help,
>
> - Wes
>
> 1600Error
>
> ../../../bin/libitkvnl.a(vnl_c_vector+double-.o):vnl_c_vector+double-.cxx:(.text$_ZN12vnl_c_vectorIdE9normalizeEPdj[vnl_c_vector<double>::normalize(double*, unsigned int)]+0x0): multiple definition of `vnl_c_vector<double>::normalize(double*, unsigned int)'
> ../../../bin/libITKCommon.dll.a(d000824.o):(.text+0x0): first defined here
> ../../../bin/libitkvnl.a(vnl_c_vector+double-.o):vnl_c_vector+double-.cxx:(.text$_ZN12vnl_c_vectorIdE9max_valueEPKdj[vnl_c_vector<double>::max_value(double const*, unsigned int)]+0x0): multiple definition of `vnl_c_vector<double>::max_value(double const*, unsigned int)'
> ../../../bin/libITKCommon.dll.a(d000822.o):(.text+0x0): first defined here
> ../../../bin/libitkvnl.a(vnl_c_vector+double-.o):vnl_c_vector+double-.cxx:(.text$_ZN12vnl_c_vectorIdE13allocate_TptrEi[vnl_c_vector<double>::allocate_Tptr(int)]+0x0): multiple definition of `vnl_c_vector<double>::allocate_Tptr(int)'
> ../../../bin/libITKCommon.dll.a(d000791.o):(.text+0x0): first defined here
>
> *
>
> collect2: ld returned 1 exit status
>
> *
>
> [ 51%] Built target itkNumericsTests
> Scanning dependencies of target FactoryTestLib
> [ 51%] Building CXX object Testing/Code/Common/CMakeFiles/FactoryTestLib.dir/itkFactoryTestLib.o
> Linking CXX shared library ../../Temporary/cygFactoryTestLib.dll
> Creating library file: ../../Temporary/libFactoryTestLib.dll.a
> [ 51%] Built target FactoryTestLib
>
>
>
> --
> Wesley D. Turner, Ph.D.
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x120
>



-- 
Wesley D. Turner, Ph.D.
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x120
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090522/e74453a0/attachment.htm>


More information about the Insight-developers mailing list