Closed Bug 1393713 Opened 7 years ago Closed 7 years ago

NSS Android build fails with undefined reference to 'getdtablesize'

Categories

(NSS :: Build, defect)

3.29
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1370138

People

(Reporter: gautamprajapati06, Unassigned)

Details

Attachments

(1 file)

Attached patch nss.patchSplinter Review
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce:

LibreOffice moved away from deprecated GCC toolchain in Android NDK. When built with Clang toolchain, NSS build fails with the error:

./unix_rand.c:744: error: undefined reference to 'getdtablesize'



Actual results:

Build failed with undefined reference to a function


Expected results:

Build should have succeeded considering that Clang is drop-in replacement for GCC
I have attached the patch(nss.patch) which defines the "getdtablesize" and hence should solve this issue.
I see that not just Clang but using GCC with latest NDK fails because "getdtablesize" has been removed on Android 21.
See: https://issuetracker.google.com/issues/37001193
Current upstream doesn't use getdtablesize now.  What NSS version for this patch?
Flags: needinfo?(gautamprajapati06)
(In reply to Makoto Kato [:m_kato] from comment #3)
> Current upstream doesn't use getdtablesize now.  What NSS version for this
> patch?

Oh, I have set the version as 3.29. I'll try to upgrade the NSS in LO. Thanks. 
Closing the bug as Duplicate.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(gautamprajapati06)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: