(More package/component install fun for me -- thanks everyone for all your help to date).
I am getting the error listed as the title, in Delphi 2007. Package A is
Just because you deleted the component doesn't mean you deleted the module name from the USES clause--those aren't auto-deleted.
It could also be related to this question.
Unit X is clearly being linked into both packages. There's a couple of ways around this:
If the viewers are explicitly mentioned in your Package B code, then Package B most certainly should be using Package A (ie, there should be an explicit dependency there). If that indication of shared code isn't explicitly made, B will compile it's own version of the code into B, leading to the problem you're seeing.
Now, if that dependency is OK, adding a reference to Package A from Package B should clear this problem up right away; after all, B will be "using" the code in Package A, and the same units won't be getting compiled into two packages. However, if this introduces circular references (I can't remember whether A uses B or not), then you might have a bit of refactoring to to :}
Loren:Requires clause, since it is a .dpk, you can't USES a packages afaik.
I'd simply clean up the $(BDSDIR)/projects/ dir, my own projects dir to remove B.dcp and all dcu's for the units that were in B and then rebuild A.
Another thing to check if there is a component registered that depends on B.