Closed Bug 408812 Opened 16 years ago Closed 16 years ago
AIX Compilation error for trunk build source ns
Thebes Region .cpp : ./dist/include/gfx/ns Region .h", line 85 .18: 1540-0723 (S) The inline function "void operator delete(void *, size _t)" is referenced, but it is not defined .
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/20071127 Firefox/184.108.40.206 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20071127 Firefox/18.104.22.168 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
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.
Small correction (in the comments for the code)for the previous attachment
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)
Removing inline keyword for new/delete seem to be working fine.
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+
Comment on attachment 293811 [details] [diff] [review] Patch V3 vlad's r= is enough, as per recent commits (http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=mozilla%2Fgfx&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=month&mindate=&maxdate=&cvsroot=%2Fcvsroot), especially for a build fix.
Attachment #293811 - Flags: superreview?(roc) → approval1.9?
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+
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
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
You need to log in before you can comment on or make changes to this bug.