Closed Bug 11195 Opened 25 years ago Closed 15 years ago

xpt_link cores when asked to link 1 file with no interfaces

Categories

(Core :: XPCOM, defect, P2)

x86
All
defect

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: jband_mozilla, Unassigned)

Details

Do we want to make xpidl support idl files without interfaces? We need to either
make that work or suggest a better means for putterman to do what he wants to do
here:

scottip@netscape.com (Scott Putterman) wrote:

Someone finally caught me on that :)
I always meant to try to figure it out.  Let me see if I can get this right.
The problem was that I wanted to
generate a .h file that had a couple of types defined that could also be used
from idl.  The problem was that
when I ran it, it complained unless I created a fake interface to go along with
it.  I promptly forgot about this
until you brought this up.

I really just cared about

typedef unsigned long nsMsgKey;
typedef unsigned long nsMsgViewIndex;

Scott


John Bandhauer wrote:

  Does this still need to be here? It is oddd to have 'hack' in the
  global interface namspace. What is the problem you were trying to
  solve?

  http://lxr.mozilla.org/seamonkey/source/mailnews/public/MailNewsTypes2.idl#22

  Thanks,

  John
Status: NEW → ASSIGNED
Marking as assigned.
'xpidl -m header MailNewsTypes2.idl' and 'xpidl -m typelib MailNewsTypes2.xpt'
(should we generate an .xpt file for an interface-less idl file?) seem to work
just fine with the hacked interface commented out.  It looks like xpt_link fails
trying to link it, though.  Big ol' core dump.
Hm.  Scratch that; the failure seems to be limited to xpt_link coring whenever
asked to link exactly one file, which contains no interfaces.

Scott, was this the problem you were running into?
Hm.  Scratch that; the failure seems to be limited to xpt_link coring whenever
asked to link exactly one file, which contains no interfaces.

Scott, was this the problem you were running into?
Yes.  That was the problem. I'd forgotten about that.  If it isn't possible to
solve this, I'll try to look into moving these files into a different directory.
This is an old directory that hasn't really been used since it was first created
with the MailNewsTypes files(though those files are important).
I'm sure Mike will say when he wakes up... This is well worth fixing. The linker
shouldn't ought to crash. Hang on and we'll have it fixed soon.
Ahem.  This is well worth fixing. The linker shouldn't ought to crash. Hang on
and we'll have it fixed soon.
Assignee: mccabe → mang
Status: ASSIGNED → NEW
Reassigning to mang@subcarrier.org, since I'm already working on another
xpt_link crash.
Mass reassign to mccabe since I'm outta here.
Mass accept as ASSIGNED of xpidl bugs
Summary: xpidl isn't happy processing idl files w/o interfaces → xpt_link cores when asked to link 1 file with no interfaces
[SPAM] Marking milestone 'future' as part of nsbeta3 triage.
Target Milestone: --- → Future
Mass-reassigning mccabe's non-JS, non-Rhino bugs to jband (34 total). 

Would like to cc mccabe; but the mass-reassign page does not allow this. 
I'll leave it up to mccabe to decide if he wants to be cc'ed on these - 
Assignee: mike+mozilla → jband
Status: ASSIGNED → NEW
mass reassign of xpidl bugs to dbradley@netscape.com
Assignee: jband → dbradley
Status: NEW → ASSIGNED
Priority: P3 → P2
Assignee: dbradley → nobody
Status: ASSIGNED → NEW
QA Contact: mike+mozilla → xpidl
Component: xpidl → XPCOM
QA Contact: xpidl → xpcom
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.