Closed
Bug 235207
Opened 21 years ago
Closed 21 years ago
Build failure in mozilla/xpcom/string/src/nsStringObsolete.cpp
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: roland.mainz, Assigned: roland.mainz)
Details
Attachments
(1 file, 1 obsolete file)
2.89 KB,
patch
|
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
CVS pull from "Sun Feb 22 00:51:52 PST 2004" bulid with Sun Workshop 8 on
Solaris 2.8/SPARC, the build fails like this:
-- snip --
nsStringObsolete.cpp
Building deps for ../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp
/opt/SUNWspro/bin/CC -o nsStringObsolete.o -c -DOSTYPE=\"SunOS5\"
-DOSARCH=\"SunOS\" -D_IMPL_NS_COM -I../../../dist/include/xpcom
-I../../../dist/include/string -I../../../dist/include
-I/shared/bigtmp/mozilla/nightlybuilds/north/objdir_gtk1/dist/include/nspr
-I/usr/openwin/include -KPIC -I/usr/openwin/include -xbuiltin=%all -mt
-DNDEBUG -DTRIMMED -xO2 -I/usr/openwin/include -DSOLARIS=1
-DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1
-DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1
-DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UINT_T=1 -DHAVE_UINT16_T=1
-DHAVE_DIRENT_H=1 -DHAVE_SYS_BYTEORDER_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1
-DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1
-DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1
-DHAVE_LIBSOCKET=1 -DFUNCPROTO=15 -DHAVE_XSHM=1 -D_REENTRANT=1 -DHAVE_RANDOM=1
-DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_FCHMOD=1 -DHAVE_SNPRINTF=1
-DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_NL_LANGINFO=1 -DHAVE_FLOCKFILE=1
-DHAVE_LOCALTIME_R=1 -DHAVE_STRTOK_R=1 -DVA_COPY=va_copy -DHAVE_VA_COPY=1
-DHAVE_I18N_LC_MESSAGES=1 -DMOZ_DEFAULT_TOOLKIT=\"gtk\" -DMOZ_WIDGET_GTK=1
-DMOZ_ENABLE_XREMOTE=1 -DMOZ_X11=1 -DMOZ_ENABLE_COREXFONTS=1
-DMOZ_EXTRA_X11CONVERTERS=1 -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DMOZ_MATHML=1 -DMOZ_SVG=1
-DMOZ_SVG_RENDERER_LIBART=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\"
-DMOZ_XUL=1 -DMOZ_PROFILESHARING=1 -DMOZ_PROFILELOCKING=1 -DSUNCTL=1
-DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1
-DNS_PRINT_PREVIEW=1 -DNS_PRINTING=1 -DMOZILLA_VERSION=\"1.7b\"
-DMOZILLA_LOCALE_VERSION=\"1.7b\" -DMOZILLA_REGION_VERSION=\"1.7b\"
-D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp
"../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp", line 568: Warning
(Anachronism): "static" is not allowed and is being ignored.
"../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp", line 684: Warning
(Anachronism): "static" is not allowed and is being ignored.
"../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp", line 703: Warning
(Anachronism): "static" is not allowed and is being ignored.
"../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp", line 724: Warning
(Anachronism): "static" is not allowed and is being ignored.
"../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp", line 751: Warning
(Anachronism): "static" is not allowed and is being ignored.
"../../../../mozilla/xpcom/string/src/nsStringObsolete.cpp", line 642: Error:
The name Compare2To1(const unsigned short*, const char*, unsigned, int) is
unusable in static nsBufferRoutines<unsigned short>::compare(const unsigned
short*, const char*, unsigned, int).
1 Error(s) and 5 Warning(s) detected.
gmake[4]: *** [nsStringObsolete.o] Error 1
gmake[4]: Leaving directory
`/shared/bigtmp/mozilla/nightlybuilds/north/objdir_gtk1/xpcom/string/src'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/shared/bigtmp/mozilla/nightlybuilds/north/objdir_gtk1/xpcom/string'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory
`/shared/bigtmp/mozilla/nightlybuilds/north/objdir_gtk1/xpcom'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory
`/shared/bigtmp/mozilla/nightlybuilds/north/objdir_gtk1'
gmake: *** [default] Error 2
-- snip --
Assignee: dougt → string
Component: XPCOM → String
Why is using Compare2To2 OK but using Compare2To1 an error?
Assignee | ||
Comment 2•21 years ago
|
||
David Baron wrote:
> Why is using Compare2To2 OK but using Compare2To1 an error
Compare2To2(), Compare2To1() and Compare1To1() return an error, the compiler
just thinks one of these errors is enougth to report... :-/
Assignee | ||
Comment 3•21 years ago
|
||
The patch makes the Compare[12]To[12]() functions |inline| to get rid of the
compiler internal confusion about scope and kills the anachronism problems,
too.
Assignee | ||
Updated•21 years ago
|
Attachment #141966 -
Flags: superreview?(dbaron)
Attachment #141966 -
Flags: review?(dbaron)
What's the minimum patch needed to fix the bustage? All of these changes are
likely to cause changes we don't want.
Assignee | ||
Comment 5•21 years ago
|
||
David Baron wrote:
> What's the minimum patch needed to fix the bustage?
Erm... the patch is the minimum patch. Unfortunately we have also bustage
elsehwere:
-- snip --
nsLocalFileCommon.cpp
Building deps for ../../../mozilla/xpcom/io/nsLocalFileCommon.cpp
/opt/SUNWspro/bin/CC -o nsLocalFileCommon.o -c -DOSTYPE=\"SunOS5\"
-DOSARCH=\"SunOS\" -D_IMPL_NS_COM -I.. -I../../dist/include/string
-I../../dist/include/xpcom -I../../dist/include
-I/shared/bigtmp/mozilla/nightlybuilds/north/objdir_gtk1/dist/include/nspr
-I/usr/openwin/include -KPIC -I/usr/openwin/include -xbuiltin=%all -mt
-DNDEBUG -DTRIMMED -xO2 -I/usr/openwin/include -DSOLARIS=1
-DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DSTDC_HEADERS=1
-DHAVE_ST_BLKSIZE=1 -DHAVE_SIGINFO_T=1 -DHAVE_INT16_T=1 -DHAVE_INT32_T=1
-DHAVE_INT64_T=1 -DHAVE_UINT=1 -DHAVE_UINT_T=1 -DHAVE_UINT16_T=1
-DHAVE_DIRENT_H=1 -DHAVE_SYS_BYTEORDER_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1
-DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_X11_XKBLIB_H=1
-DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1
-DHAVE_LIBSOCKET=1 -DFUNCPROTO=15 -DHAVE_XSHM=1 -D_REENTRANT=1 -DHAVE_RANDOM=1
-DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_FCHMOD=1 -DHAVE_SNPRINTF=1
-DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DHAVE_NL_LANGINFO=1 -DHAVE_FLOCKFILE=1
-DHAVE_LOCALTIME_R=1 -DHAVE_STRTOK_R=1 -DVA_COPY=va_copy -DHAVE_VA_COPY=1
-DHAVE_I18N_LC_MESSAGES=1 -DMOZ_DEFAULT_TOOLKIT=\"gtk\" -DMOZ_WIDGET_GTK=1
-DMOZ_ENABLE_XREMOTE=1 -DMOZ_X11=1 -DMOZ_ENABLE_COREXFONTS=1
-DMOZ_EXTRA_X11CONVERTERS=1 -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DMOZ_MATHML=1 -DMOZ_SVG=1
-DMOZ_SVG_RENDERER_LIBART=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\"
-DMOZ_XUL=1 -DMOZ_PROFILESHARING=1 -DMOZ_PROFILELOCKING=1 -DSUNCTL=1
-DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1
-DNS_PRINT_PREVIEW=1 -DNS_PRINTING=1 -DMOZILLA_VERSION=\"1.7b\"
-DMOZILLA_LOCALE_VERSION=\"1.7b\" -DMOZILLA_REGION_VERSION=\"1.7b\"
-D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT
../../../mozilla/xpcom/io/nsLocalFileCommon.cpp
"../../../mozilla/xpcom/io/nsLocalFileCommon.cpp", line 110: Error:
nsACString::nsACString(const nsACString&) is not accessible from
nsLocalFile::CreateUnique(unsigned, unsigned).
1 Error(s) detected.
gmake[3]: *** [nsLocalFileCommon.o] Error 1
-- snip --
I wish there would still be a Tinderbox with Sun Workshop around...
The anachronism messages were warnings, not errors.
Attachment #141966 -
Flags: superreview?(dbaron)
Attachment #141966 -
Flags: superreview-
Attachment #141966 -
Flags: review?(dbaron)
Attachment #141966 -
Flags: review-
Assignee | ||
Comment 7•21 years ago
|
||
dbaron:
Thank you for not caring about the fact that the code doesn't compile without
that.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
If the compiler issues a warning that it's ignoring something, then one wouldn't
expect removing the thing that it's *ignoring* to fix an error.
Did you even try it with only the other changes?
Assignee | ||
Comment 9•21 years ago
|
||
David Baron wrote:
> If the compiler issues a warning that it's ignoring something, then one
> wouldn't expect removing the thing that it's *ignoring* to fix an error.
>
> Did you even try it with only the other changes?
Yes (CC: Sun C++ 5.5 Patch 113817-03 2003/10/14, SunOS meridian 5.8
Generic_108528-27 sun4u sparc SUNW,Ultra-1, 256MB). Without that the |inline|
change is a NO-OP (don't ask me why, I don't have the 5.5 compiler sources).
Just guess why I added the change. I didn't do that for fun or just to annoy
you. *Grumble*
I'd find this patch acceptable if all the changes were appropriately ifdef-ed
for the compiler in question.
Assignee | ||
Comment 11•21 years ago
|
||
Attachment #141966 -
Attachment is obsolete: true
Comment 12•21 years ago
|
||
reopening, marking this bug invalid like that is just silly
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Attachment #141971 -
Flags: superreview+
Comment 13•21 years ago
|
||
SunOS DEATHSTARII 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-80
CC: Forte Developer 7 C++ 5.4 Patch 111715-05 2003/02/09
is also affected (i pulled, started a build, and then committed the fix, i'll
update the build when cvs-mirror picks it up)
Comment 14•21 years ago
|
||
checked in
bug 235273 covers the next build failure
Status: NEW → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•