Closed Bug 526453 Opened 15 years ago Closed 15 years ago

AIX Compilation error for 3.7a1pre source xpcom/io/nsFastLoadFile.cpp", line 884.13: 1540-0256 (S) A parameter of type "char *" cannot be initialized with an expression of type "PRUint8 *"

Categories

(Firefox :: General, defect)

Other
AIX
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 526176

People

(Reporter: shailen.n.jain, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 While compiling Mozilla Firefox source for 3.7a1pre, getting the below error. "/home/firefox/mozilla-central/xpcom/io/nsFastLoadFile.cpp", line 884.13: 1540-0256 (S) A parameter of type "char *" cannot be initialized with an expression of type "PRUint8 *". "/home/firefox/mozilla-central/xpcom/io/nsFastLoadFile.cpp", line 884.13: 1540-1205 (I) The error occurred while converting to parameter 1 of "madvise(caddr_t, size_t, int)". gmake[1]: *** [nsFastLoadFile.o] Error 1 Reproducible: Always Steps to Reproduce: 1. Build Mozilla Firefox 3.7a1pre build on AIX with Gnome RPMS of 64 bit version. 2. 3. Actual Results: Build fails with the above error. Expected Results: No build failure
OS: Other → AIX
Attached patch Patch V 1 (obsolete) — Splinter Review
The patch resolves the compilation error.
Attachment #410205 - Flags: review?(benjamin)
Attachment #410205 - Flags: review?(benjamin) → review?(tglek)
Comment on attachment 410205 [details] [diff] [review] Patch V 1 I don't believe caddr_t exists on linux/osx. if aix is like solaris bug 526176 will fix this
Attachment #410205 - Flags: review?(tglek) → review-
To clarify, instead of nesting more platform-specific defines, I'd rather rely on bug 526176 to rectify this situation.
Depends on: 526176
Attached patch Patch V 2Splinter Review
This behavior is similar to Solaris and hence attached the new patch
Attachment #410205 - Attachment is obsolete: true
Attachment #411134 - Flags: review?(tglek)
Shailen, has bug 526176 fixed AIX compile?
yes the revised patch (of bug 526176) fixes the AIX compile
Attachment #411134 - Flags: review?(tglek)
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: