[Fatal Error] X.pas(x):Never-build package 'dac6' must be re

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ExpertM
Posts: 6
Joined: Wed 11 May 2011 12:16

[Fatal Error] X.pas(x):Never-build package 'dac6' must be re

Post by ExpertM » Wed 11 May 2011 12:40

I've just upgraded ODAC Professional to Version 7.20.0.6 (28-Apr-2011)
in Delphi 6.
Installation ended without problems but later
I got 2 errors :

1) When trying to recompile a dpk that uses an ODAC component I get error

[Fatal Error] XXX.pas(XX): Never-build package 'dac60' must be recompiled

2) When trying to recompile another dpk using ODAC VCL I get error :
[Fatal Error] KDbBckpODAC.pas(15): Unit MemUtils was compiled with a different version of Variants.VarResultCheck
which is nonsence because I have only 1 memutils.dcu which is in lib folder of the installation

Any idea about the reason of these errors and how to get through them?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 12 May 2011 06:20

Hello,

I could not reproduce the problem.
Please check that you are using Delphi 6 with the service pack 2 and that you are not making changes in the default Delphi Variants unit.
Also please send your packages to alexp*devart*com to demonstrate the problem.

ExpertM
Posts: 6
Joined: Wed 11 May 2011 12:16

What is you D6 environment

Post by ExpertM » Fri 13 May 2011 08:25

I think the problem is in Delphi 6 requirements of ODAC. Please specify them more precisely.

I made the following test:

1. installed win xp 32bit machine and up to SP3
2. installed Delphi 6 Enterprise
3. installed Delphi 6 General Update 2 Enterprise (http://altd.codegear.com/devsupport/del ... d2_ent.exe; also see page http://edn.embarcadero.com/article/38607)// now delphi version is 6.0.6.240 Ent
4. installed odac720d6pro.exe
5. started Delphi
5.1. added TOraSession VCL on Form1
5.2 try to build and get exceptions

Please, specify what is your test environment for D6 VCLs , I suppose you have some more patches applied.

ExpertM
Posts: 6
Joined: Wed 11 May 2011 12:16

one more failed attempt

Post by ExpertM » Fri 13 May 2011 08:38

Furthermore I installed

Delphi 6 RTL Update Pack 2 (same link as above)

but again failed to build the simple project (with only a TOraSession).


I really need details about your D6 installation and configuration in order to build a working machine with ODAC 7.20 and Delphi6 Ent.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Fri 13 May 2011 13:23

Hello,

We are using the following version of Delphi 6: Build 6.240 SP 2.

Please check that you have completely removed the previous version of ODAC, including the old *.bpl, *.dcu, etc., files.
Please check that the library path and the search path in Delphi are set correctly.

Also try to install ODAC with the 'force' key like:

odac720d6pro.exe /force

ExpertM
Posts: 6
Joined: Wed 11 May 2011 12:16

Post by ExpertM » Wed 18 May 2011 23:42

What exactly do you mean by
Please check that the library path and the search path in Delphi are set correctly.
I run the installer and everything finished OK.
I had no previous ODAC installed - I wrote that I made a clean install of Delphi6 Ent.


I'm going to try /force parameter. What is its purpose ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 19 May 2011 09:18

Hello,


Check that paths to the ..\Devart\Odac for Delphi 6\Lib и ..\Devart\Odac for Delphi 6\Bin directories are set correctly in Delphi (Tools->Environment Options->Library->Library Path).

When you install the product with the /force option, all available files from previous installations will be replaced by the current ones and the availability of the previous version will not be checked.

It looks like Service Pack 2 for Delphi 6 was installed incorrectly on your machine, because it includes updates for the Variants.* files. Try to reinstall Service Pack 2 for Delphi.

ExpertM
Posts: 6
Joined: Wed 11 May 2011 12:16

Again Variants.pas

Post by ExpertM » Thu 09 Jun 2011 09:34

Please send me your variants.pas.

I've been messing around for a couple weeks and get the same error.
I tryed all combinations of patches and update packs.
I came upon the decision your variants.pas is not standard one.
If you send me you copy of the file (and may be the dcu) I'll be able to get deeper in the problem preventing a proper installation of ODAC in Delphi 6.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 09 Jun 2011 12:12

Hello,

Please specify an e-mail address which we can use to send you this file.

ExpertM
Posts: 6
Joined: Wed 11 May 2011 12:16

Post by ExpertM » Thu 09 Jun 2011 12:29

to the mail address specified in my profile is OK
Thanks

Post Reply