Open Bug 748217 Opened 13 years ago Updated 3 years ago

undefined references to _InterlockedIncrement and family

Categories

(NSPR :: NSPR, defect)

x86_64
Linux
defect

Tracking

(Not tracked)

People

(Reporter: rs, Unassigned)

Details

Attachments

(1 file)

Issue: - when cross compiling for mingw32 on Fedora16, I get undefined references for the _Interlocked* functions declared in pr/include/pratom.h. - there are versions of these functions, without the '_' prefix, declared in winbase.h for both the fedora cross-compile and MozBuild environments. Fix - add a configure check for winbase.h and windows.h - modify pr/include/pratom.h. IFF configure found windows.h, winbase.h AND winbase hasn't already been included, then include windows.h and winbase.h, and use the non-prefixed version of the Interlocked* functions declared in winbase.h for all the PR_ATOMIC_* macros I know that cross compiling isn't officially supported, but it just makes more sense to me to use system headers for prototype when available.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: