doa41d7 package interface changes

runarhk

Member
Hi!
At my company we have a huge delphi library with lots of delphi packages. We have an installscript that installs all the packages into the $DELPHI/projects/bpl folder, including third party packages such as doa, using ecc32 command line tool. This is to be able to switch branch once in a while.

Now, the problem I'm experiencing is this: I have a package, call it p1, that has a unit, call it u1, that uses for instance something from the Oracle.pas unit. So p1 requires the doa41d7 package that has been installed. Also I have another package, call it p2, that uses the u1 unit. This means that the p2 package requires p1. Now, after all these packages have been installed in the correct order(that is doa41d7, p1 then p2) with ecc32 command line compiler tool, I launch the delphi and try to compile p2. The error message I now receive is
"[Fatal Error] p2.dpk(32): Never-build package 'p1' must be recompiled"

The obvious solution would be to set implicitbuild on, but this does not work either/cannot be done.
I have eliminated all of our own packages, and the simple package structure described above gives the error message stated.

Any help here would be very much appreciated

Regards,
Runar Kristiansen
 
a small note that I forgot to mention, when googling this i found some text saying:
"The package referenced in the message was compiled as a never-build package, but it requires another package to which interface changes have been made. The named package cannot be used without recompiling because it was linked with a different interface of the required package.

The only solution to this error is to manually recompile the offending package. Be sure to specify the never-build switch, if it is still desired."

So my guess is that the interface of the doa41d7 package has changed since it is the only package that p1 requires(apart from rtl, vcl and vclx).
 
If I launch the delphi7 IDE and recompile the packages that will fix it, but the problem is we have a buildscript for building the software package. I cannot make this buildscript launch the IDE to compile the packages. This script uses ecc32 commandline compile tool. So when building one of the projects that builds with packages, I get the mentioned error message and the build process is terminated.
 
Back
Top