Closed Bug 408812 Opened 16 years ago Closed 16 years ago

AIX Compilation error for trunk build source nsThebesRegion.cpp : ./dist/include/gfx/nsRegion.h", line 85.18: 1540-0723 (S) The inline function "void operator delete(void *, size_t)" is referenced, but it is not defined.

Categories

(Core Graveyard :: GFX, defect)

Other
AIX
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: shailen.n.jain, Assigned: shailen.n.jain)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

While compiling trunk build on AIX, getting below compilation error - 

"../../../dist/include/gfx/nsRegion.h", line 85.18: 1540-0723 (S) The inline function "void operator delete(void *, size_t)" is referenced, but it is not defined.

The nsRegion::RgnRect::operator delete is defined in nsRegion.cpp and it is being  being referenced in nsThebesRegion.cpp. The sThebesRegion.cpp does inlcude the "nsThebesRegion.h" which inturn includes "nsRegion.h", not able to find the function definition for nsRegion::RgnRect::operator delete.



Reproducible: Always

Steps to Reproduce:
1.Build Mozilla Firefox Trunk build on AIX with Gnome 2.12 RPMS of 64 bit
version.
2.
3.
Actual Results:  
Build fails with the above error.

Expected Results:  
No build failure
OS: Other → AIX
Version: unspecified → Trunk
Attached patch Patch V1 (obsolete) — Splinter Review
Moving the inline function definition for 

   1. nsRegion::RgnRect::operator delete
   2. nsRegion::RgnRect::operator new 

from nsRegion.cpp to nsRegion.h

Also the above change resulting in moving the class declaration for RgnRectMemoryAllocator from nsRegion.cpp to nsRegion.h.
Attachment #293657 - Flags: review?(benjamin)
Attached patch Patch V2 (obsolete) — Splinter Review
Small correction (in the comments for the code)for the previous attachment
Attachment #293657 - Attachment is obsolete: true
Attachment #293659 - Flags: review?(benjamin)
Attachment #293657 - Flags: review?(benjamin)
Comment on attachment 293659 [details] [diff] [review]
Patch V2

I am not a gfx peer. Seems to me that it might be better to make operator new/delete not inline at all.
Attachment #293659 - Flags: review?(benjamin) → review?(vladimir)
Attached patch Patch V3Splinter Review
Removing inline keyword for new/delete seem to be working fine.
Attachment #293659 - Attachment is obsolete: true
Attachment #293811 - Flags: review?(vladimir)
Attachment #293659 - Flags: review?(vladimir)
Comment on attachment 293811 [details] [diff] [review]
Patch V3

That's fine; I'm pretty sure 'inline' is bogus there anyway.
Attachment #293811 - Flags: review?(vladimir) → review+
Attachment #293811 - Flags: superreview?(roc)
Assignee: nobody → shailen.n.jain
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
Component: Build Config → GFX
Product: Firefox → Core
QA Contact: build.config → general
Comment on attachment 293811 [details] [diff] [review]
Patch V3

a=beltzner for 1.9
Attachment #293811 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Checking in gfx/public/nsRegion.h;
/cvsroot/mozilla/gfx/public/nsRegion.h,v  <--  nsRegion.h
new revision: 1.8; previous revision: 1.7
done
Checking in gfx/src/nsRegion.cpp;
/cvsroot/mozilla/gfx/src/nsRegion.cpp,v  <--  nsRegion.cpp
new revision: 1.23; previous revision: 1.22
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.