Closed
Bug 119304
Opened 24 years ago
Closed 24 years ago
SVG doesn't build on AIX
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla0.9.8
People
(Reporter: jdunn, Assigned: jdunn)
Details
Attachments
(2 files)
|
646 bytes,
patch
|
Details | Diff | Splinter Review | |
|
637 bytes,
patch
|
Details | Diff | Splinter Review |
When I build svg I am dying when trying to build nsSVGValue.cpp:
"/builds2/jdunn/trunk/mozilla/content/svg/content/src/nsSVGValue.cpp", line
73.21: 1540-0210 (S) "nsISVGValueObserver" is not a base class of
"nsDerivedSafe<nsISVGValueObserver>".
The offending code is...
void
nsSVGValue::NotifyObservers(SVGObserverNotifyFunction f)
{
PRInt32 count = mObservers.Count();
for (PRInt32 i = 0; i < count; ++i) {
nsIWeakReference* wr =
NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
nsCOMPtr<nsISVGValueObserver> observer = do_QueryReferent(wr);
if(observer)
-> (observer.get()->*f)(this);
}
}
updating
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Comment 2•24 years ago
|
||
The typedef for nsSVGObserverNotifyFunctions is:
typedef nsresult
(STDCALL nsISVGValueObserver::*SVGObserverNotifyFunction)(nsISVGValue*);
Is this wrong?
Or should it just be rewritten as two lines, using a temporary
nsISVGValueObserver* ?
How about:
(NS_STATIC_CAST(nsISVGValueObserver*, observer)->*f)(this);
Comment 4•24 years ago
|
||
I'd like to know why the original code doesn't work...
This did work for me with AIX's new compiler which seems to be
very picky...
Comment 6•24 years ago
|
||
If it fixes it, r=bbaetz. I'd still like to be told why we need to static cast
from nsCOMPtr<T>::get() to T*, though...
You shouldn't need the ".get()" when you do the static_cast, right? (That would
just make it a little cleaner.) This compiler is having problems with
nsDerivedSafe<T>, which is used to prevent calls to AddRef and Release on
nsCOMPtr<T>. Anyway, I'd rather use the term "seriously broken" rather than
"very picky", which I prefer to reserve for HP's compiler, which is usually
correct. :-)
dbaron this works as well...
I would agree on broken as well (trying to be nice)
am also trying to get some attention on the compiler issues
| Assignee | ||
Comment 10•24 years ago
|
||
updating
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•