<HTML>
<HEAD>
<TITLE>Re: [vtk-developers] Changes to vtkPlane broke build</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Not being as grumpy as John this morning, I can see how such a mistake could easily be made.  I am more confused as to why it did not give errors in MSVC.  I thought that  when a library or dll was created that the linker required that all symbols were accounted for (unlike Unix-type linkers).  At least that was how it worked in MSVC 6 and I think .net when I was still using it.  Maybe that changed.<BR>
<BR>
At any rate, what surprises me a little is that the Filtering directory is apparently listed in the include directories when compiling the Common library.  Why is that?  If that directory was not listed in the includes list, then the compiler would have complained immediately when vtkPlane included vtkDataSet.h, and the error could have been caught immediately.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/8/10 12:48 AM, "Biddiscombe, John A." <<a href="biddisco@cscs.ch">biddisco@cscs.ch</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>The linker will not cause errors when one DLL references another when symbols are missing. It only flags errors when code that requires the symbols pulls in the dlls and fails to find the desired symbols.<BR>
<BR>
There are few libs/executables which use common on it's own, as soon as the linker pulls in filtering too, the error is masked - because the linker finds the symbol it wants (in the other DLL).<BR>
<BR>
All my local builds are broken, and yes there are fails on the dashboards too. I see 6 machines submitting build fails yesterday <a href="http://www.cdash.org/CDash/index.php?project=ParaView3&date=2010-01-07">http://www.cdash.org/CDash/index.php?project=ParaView3&date=2010-01-07</a><BR>
<BR>
Could those responsible please be a bit more careful - this is a commit which should never have taken place - everybody knows that common can't use filtering.<BR>
<BR>
Grumpy<BR>
<BR>
JB<BR>
<BR>
<BR>
<BR>
> -----Original Message-----<BR>
> From: <a href="vtk-developers-bounces@vtk.org">vtk-developers-bounces@vtk.org</a> [<a href="mailto:vtk-developers-bounces@vtk.org">mailto:vtk-developers-bounces@vtk.org</a>]<BR>
> On Behalf Of David Gobbi<BR>
> Sent: 07 January 2010 21:38<BR>
> To: Berk Geveci<BR>
> Cc: VTK Developers<BR>
> Subject: Re: [vtk-developers] Changes to vtkPlane broke build<BR>
><BR>
> The fact that the VTK dashboard builds don't show errors for this is<BR>
> just too weird.  Shouldn't generating the VTK wrappers flush this out<BR>
> in the same way that the ParaView build does?  Shouldn't even making<BR>
> the instantiators be enough?<BR>
><BR>
>    David<BR>
><BR>
><BR>
> On Thu, Jan 7, 2010 at 12:43 PM, Berk Geveci <<a href="berk.geveci@kitware.com">berk.geveci@kitware.com</a>><BR>
> wrote:<BR>
> > I never understood linkers well so I can't explain why the dashboard<BR>
> > didn't fail. You'd think that the Windows dll wouldn't link because it<BR>
> > doesn't have access to vtkDataSet symbols. The ParaView dashboard<BR>
> > demonstrates the problem nicely:<BR>
> ><BR>
> > <a href="http://www.cdash.org/CDash/viewBuildError.php?buildid=509383">http://www.cdash.org/CDash/viewBuildError.php?buildid=509383</a><BR>
> ><BR>
> > That's how I found out.<BR>
> ><BR>
> > -berk<BR>
> ><BR>
> > On Thu, Jan 7, 2010 at 12:33 PM, Bill Lorensen <<a href="bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><BR>
> wrote:<BR>
> >> I don't see and broken builds on the VTK dashboard (Nightly Expected).<BR>
> >> Shouldn't the nightlies (or better yet a continuous) VTK build detect<BR>
> >> this sort of defect.<BR>
> >><BR>
> >> Bill<BR>
> >><BR>
> >> On Thu, Jan 7, 2010 at 10:53 AM, Berk Geveci <<a href="berk.geveci@kitware.com">berk.geveci@kitware.com</a>><BR>
> wrote:<BR>
> >>> I took at the code and the functionality is very cool. It just needs<BR>
> >>> to find another home :-) Maybe a new utility class in Filtering or<BR>
> >>> even a filter. (Thinking about it, maybe implicit functions should<BR>
> >>> subclass from vtkDataObject?)<BR>
> >>><BR>
> >>> Another comment, I noticed the CenterOfMass and create_matrix are<BR>
> >>> polluting the global namespace. You should put them in an anonymous<BR>
> >>> namespace instead. Also, create_matrix does not follow VTK's naming<BR>
> >>> conventions, please fix that.<BR>
> >>><BR>
> >>> I am going the revert this commit for now. Let me or Karthik know when<BR>
> >>> you have a fix.<BR>
> >>><BR>
> >>> Best,<BR>
> >>> -berk<BR>
> >>><BR>
> >>> On Thu, Jan 7, 2010 at 10:14 AM, David Doria <<a href="daviddoria+vtk@gmail.com">daviddoria+vtk@gmail.com</a>><BR>
> wrote:<BR>
> >>>> On Thu, Jan 7, 2010 at 10:04 AM, Berk Geveci <<a href="berk.geveci@kitware.com">berk.geveci@kitware.com</a>><BR>
> wrote:<BR>
> >>>>> Hi Karthik and David,<BR>
> >>>>><BR>
> >>>>> Karthik's commit to vtkPlane broke some builds. I noticed that<BR>
> >>>>> vtkPlane is now referring to vtkDataSet. It can't do that since<BR>
> >>>>> vtkPlane is in Common and vtkDataSet is in Filtering. Please fix this<BR>
> >>>>> somehow (without moving vtkPlane to Filtering).<BR>
> >>>>><BR>
> >>>>> -berk<BR>
> >>>>><BR>
> >>>><BR>
> >>>> Guys,<BR>
> >>>><BR>
> >>>> I am travelling today. I can look at it first thing tomorrow if<BR>
> >>>> Karthik doesn't get to it first. I wasn't aware that it is illegal to<BR>
> >>>> use things from different libraries? Why is this the case?<BR>
> >>>><BR>
> >>>> Thanks,<BR>
> >>>><BR>
> >>>> David<BR>
> >>>> _______________________________________________<BR>
> >>>> Powered by www.kitware.com<BR>
> >>>><BR>
> >>>> Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
> >>>><BR>
> >>>> Follow this link to subscribe/unsubscribe:<BR>
> >>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
> >>>><BR>
> >>>><BR>
> >>> _______________________________________________<BR>
> >>> Powered by www.kitware.com<BR>
> >>><BR>
> >>> Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
> >>><BR>
> >>> Follow this link to subscribe/unsubscribe:<BR>
> >>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
> >>><BR>
> >>><BR>
> >><BR>
> > _______________________________________________<BR>
> > Powered by www.kitware.com<BR>
> ><BR>
> > Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
> ><BR>
> > Follow this link to subscribe/unsubscribe:<BR>
> > <a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
> ><BR>
> ><BR>
> _______________________________________________<BR>
> Powered by www.kitware.com<BR>
><BR>
> Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
><BR>
> Follow this link to subscribe/unsubscribe:<BR>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers">http://www.vtk.org/mailman/listinfo/vtk-developers</a><BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
   ****      Kenneth Moreland<BR>
    ***      Sandia National Laboratories<BR>
***********  <BR>
*** *** ***  email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
**  ***  **  phone: (505) 844-8919<BR>
    ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>