Closed Bug 315293 Opened 20 years ago Closed 20 years ago

nsQuickSort.h change breaks Solaris Studio 10 build

Categories

(Thunderbird :: Build Config, defect)

Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 314997

People

(Reporter: km, Assigned: mscott)

Details

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9a1) Gecko/20051029 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9a1) Gecko/20051029 Firefox/1.6a1 Recent changes in xpcom/glue/nsQuickSort.h result in SunStudio 10 seeing two defintions extern "C" void NS_QuickSort when compiling nsQuickSort.cpp. One from the prototype in the .h, one from the source of the cpp file itself. This gives the error mozilla/xpcom/glue/nsQuickSort.cpp", line 103: Error: Only one of a set of overloaded functions can be extern "C". A quick workaround is to delete the include of nsQuickSort.h from from nsQuickSort.cpp, which has nothing but the unnecessary prototoype (for this cpp) in it. Reproducible: Always
*** This bug has been marked as a duplicate of 314997 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.