Closed Bug 309277 Opened 19 years ago Closed 19 years ago

nsStatusBarBiffManager.cpp fails to build due to incorrect type casting for nsISound::PlaySystemSound()

Categories

(SeaMonkey :: Build Config, defect)

Sun
Solaris
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: Mitch, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9a1) Gecko/20050911 SeaMonkey/1.1a
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9a1) Gecko/20050911 SeaMonkey/1.1a

Build fails. Can't do any more builds to debug any bugs...

/share/lang/solaris/7.0/SUNWspro/bin/CC -I/home/mitch/bld/support/include -o
nsStatusBarBiffManager.o -c  -DMOZ_LDAP_XPCOM -DMOZILLA_INTERNAL_API
-DOSTYPE=\"SunOS5\" -DOSARCH=\"SunOS\" -DBUILD_ID=2005092007 -DHAVE_MOVEMAIL 
-I../../../dist/include/xpcom -I../../../dist/include/alerts
-I../../../dist/include/xpcom_obsolete -I../../../dist/include/string
-I../../../dist/include/necko -I../../../dist/include/dom
-I../../../dist/include/appshell -I../../../dist/include/toolkitcomps
-I../../../dist/include/appcomps -I../../../dist/include/uconv
-I../../../dist/include/intl -I../../../dist/include/htmlparser
-I../../../dist/include/widget -I../../../dist/include/docshell
-I../../../dist/include/rdf -I../../../dist/include/gfx
-I../../../dist/include/layout -I../../../dist/include/content
-I../../../dist/include/mailnews -I../../../dist/include/locale
-I../../../dist/include/unicharutil -I../../../dist/include/msgbaseutil
-I../../../dist/include/webshell -I../../../dist/include/txmgr
-I../../../dist/include/msgcompose -I../../../dist/include/msgdb
-I../../../dist/include/uriloader -I../../../dist/include/pref
-I../../../dist/include/msglocal -I../../../dist/include/msgimap
-I../../../dist/include/mork -I../../../dist/include/msgnews
-I../../../dist/include/addrbook -I../../../dist/include/mime
-I../../../dist/include/mimetype -I../../../dist/include/windowwatcher
-I../../../dist/include/webbrwsr -I../../../dist/include/exthandler
-I../../../dist/include/mozldap -I../../../dist/include/msgbase
-I../../../dist/include -I../../../dist/include/nspr       -KPIC  
-I/home/mitch/bld/support/include -xbuiltin=%all -features=tmplife -mt  -DNDEBUG
-DTRIMMED -O   -DMOZILLA_VERSION=\"1.9a1\" -DMOZILLA_VERSION_U=1.9a1 -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_STAT64=1 -DHAVE_LSTAT64=1
-DHAVE_FLOCKFILE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_STRTOK_R=1
-DHAVE_LANGINFO_CODESET=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_SUITE=1 -DMOZ_BUILD_APP=suite
-DMOZ_DISTRIBUTION_ID=\"org.mozilla\" -DMOZ_ENABLE_COREXFONTS=1
-DMOZ_EXTRA_X11CONVERTERS=1 -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
-DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1
-DNS_PRINT_PREVIEW=1 -DMOZ_XTF=1 -DMOZ_MATHML=1 -DMOZ_UPDATE_CHANNEL=default
-DMOZ_STORAGE=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\" -DMOZ_XUL=1
-DMOZ_PROFILELOCKING=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1
-DJS_THREADSAFE=1 -DMOZILLA_LOCALE_VERSION=\"1.9a1\"
-DMOZILLA_REGION_VERSION=\"1.9a1\" -DMOZILLA_SKIN_VERSION=\"1.8\" 
-D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT nsStatusBarBiffManager.cpp
"nsStatusBarBiffManager.cpp", line 153: Error: Formal argument soundAlias of
type const nsAString_internal& in call to nsISound::PlaySystemSound(const
nsAString_internal&) is being passed const char*.
"nsStatusBarBiffManager.cpp", line 162: Error: Formal argument soundAlias of
type const nsAString_internal& in call to nsISound::PlaySystemSound(const
nsAString_internal&) is being passed const char[14].
"nsStatusBarBiffManager.cpp", line 278: Warning: event hides
nsIFolderListener::event.
2 Error(s) and 1 Warning(s) detected.
gmake[5]: *** [nsStatusBarBiffManager.o] Error 2
gmake[5]: *** Waiting for unfinished jobs....


Reproducible: Always

Steps to Reproduce:
1. Try a compile
2.
3.

Actual Results:  
Build failed
Probably due to Masayuki checkin 3 days ago for bug 207102
Adding him to cc
I changed nsISound interface by bug 207102, see:
http://lxr.mozilla.org/mozilla/source/widget/public/nsISound.idl

Now: void playSystemSound(in AString soundAlias);

I think that your nsStatusBarBiffManager.cpp is old version.
Do you get latest code?
And See:
http://lxr.mozilla.org/mozilla/source/mailnews/base/src/nsStatusBarBiffManager.cpp
You are right. Something is going wrong with my cvs pulls.

Thanks for spotting.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.