Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Linker    [ Add a report in this area ]  
Report #:  14204   Status: Need Feedback
E2161 on build
Project:  Delphi Build #:  9.0.1935.22056
Version:    9.0 Submitted By:   Russell Jones
Report Type:  Basic functionality failure Date Reported:  7/7/2005 8:07:46 PM
Severity:    Serious / Highly visible problem Last Updated: 1/14/2008 10:11:39 AM
Platform:    All versions Internal Tracking #:  
Resolution: Need More Info (Resolution Comments) Resolved in Build: : 11.0.2902.10471
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Rebuilding a win32 bpl (which had been building fine), I encountered the error:-
[Error] XmxWebServiceLib.dpk(32): E2161 RLINK32: Error opening file "Z:\Delphi_v2\XmxCore\XmxCore.drf"

I've never seen a drf file before, although I gather it was introduced in Delphi 3.

XmxCore is listed in the requires section of the project file.

To fix it I removed XmxCore and rebuilt, then reinserted XmxCore and rebuilt.
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

Hallvard Vassbotn at 8/11/2005 2:25:28 AM -
Z:\ - that sounds like a network drive?

Did you have some of the needed files on a shared network drive?

Is there a possibility that the shared files were being used by another instance of the delphi compiler/linker?

In the current implementation, I think dcc32 requires fill access to files.

Russell Jones at 9/29/2005 6:48:09 PM -
Z: is actually a subst rather than a network drive. The issue I have is that .drf are not used by Delphi, so it's not surprising that there aren't any. There are no tools for generating them, so why does the linker bleat?

adrian budileanu at 5/29/2006 12:24:11 AM -
In my case I just removed from environment search path entries related to my package and i have used the requires section of the project.

Everything goes just fine :)

Armin Biernaczyk at 8/4/2006 2:02:34 PM -
I run into this bug frequently: When trying to build a project, say TEST.BDSPROJ, I get

E2161 RLINK32: Unsupported 16bit resource in file "...TEST.drf"

The strange thing is: *there is no file TEST.drf*

Compiling the project instead of building it resolves the problem in my case.

Olivier Olmer at 11/13/2008 2:11:18 PM -
I run into the same problem using delphi 2007 build 11.0.2902.10471.
I can reproduce it by rebuilding package of gnostice shared libary. And get the error when on required package with the extension drf.

I wish there would be some explanation about this error and how to solve it.

Vladimir Srednikh at 4/29/2009 5:47:54 AM -
Suppose, that this bug occur because IDE broke non-ascii pathes.

I have the same problem, and i resolve it that:

My BDSCOMMONDIR was:
"C:\Documents and Settings\All Users\„®??¬?­??\RAD Studio\5.0"
where "„®??¬?­??" must be  "?????????"

When i override it by
"C:\Documents and Settings\All Users\CodeGear\RAD Studio\5.0" it compiled without errors.

Olivier Olmer at 5/22/2009 4:02:40 AM -
I found a solution to this. Just compile the packacge with explicit build option on and rebuild the package.
if there are required packages in this package do the same for the dependent package.

With kind regards,

Olivier Olmer
Oxolutions BV

Hans Hasenack at 11/20/2009 2:38:16 PM -
I had trouble E2601 Unsupported 16 bit resource
Compiling was OK, buiot building failed with this particular error.

I narrowd it down inb my code where I implemented a Max and a Min array scanning routine which started by

MaxValue:=-1.7E10380

//snip
MinValue:=1.7E10380

It was fixed when i repleced 1.7E10380 with the constant Infinity from the Math unit.

Hans Hasenack at 11/20/2009 2:39:15 PM -
Correction on the message:
E2161 Unsupported 16 but resource in file xxxx.drf

Server Response from: ETNACODE01