Last Comment Bug 665816 - nsGlueLinkingDlopen.cpp:161: error: expected unqualified-id before numeric constant with NDKr5 after landing bug 632404
: nsGlueLinkingDlopen.cpp:161: error: expected unqualified-id before numeric co...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: XPCOM (show other bugs)
: Trunk
: All Android
: -- normal (vote)
: mozilla7
Assigned To: Makoto Kato [:m_kato]
:
Mentors:
Depends on: 632404
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-20 18:24 PDT by Makoto Kato [:m_kato]
Modified: 2011-06-21 14:51 PDT (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
fix (796 bytes, patch)
2011-06-20 23:05 PDT, Makoto Kato [:m_kato]
mh+mozilla: review+
Details | Diff | Splinter Review

Description Makoto Kato [:m_kato] 2011-06-20 18:24:29 PDT
Now tinderbox uses gcc 4.4.0 in NDK R4, but mobile team has a plan to upgrade to NDK R5.
Comment 1 Makoto Kato [:m_kato] 2011-06-20 18:26:07 PDT
Also, there is no readahead function in NDK.
Comment 2 Mike Hommey [:glandium] 2011-06-20 18:47:27 PDT
Would the NDK r5 happen to define ELFCLASS through elf.h ?
Comment 3 Makoto Kato [:m_kato] 2011-06-20 23:03:59 PDT
(In reply to comment #2)
> Would the NDK r5 happen to define ELFCLASS through elf.h ?

It is same as NDKr4.  But gcc 4.4.3 into NDKr5 defines __linux__ / linux as default.

when using NDKr4, LINUX is undefined during compiling this, so it can be compiled.  But when using NDKr5, LINUX is defined, so this error occurs.
Comment 4 Makoto Kato [:m_kato] 2011-06-20 23:05:11 PDT
Created attachment 540684 [details] [diff] [review]
fix

Note You need to log in before you can comment on or make changes to this bug.