Closed Bug 552635 Opened 10 years ago Closed 10 years ago

Failed to build nsLDAPProtocolModule.cpp on OpenSolaris

Categories

(MailNews Core :: Build Config, defect)

x86
Solaris
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.1b2

People

(Reporter: eagle.lu, Assigned: eagle.lu)

References

Details

Attachments

(1 file)

When build latest TB trunk code on OpenSolaris. I got following error:
/ws/onnv-tools-prc/SUNWspro/SS12/bin/CC -o nsLDAPProtocolModule.o -c -xldscope=hidden -DMOZ_PREF_EXTENSIONS -DMOZ_PSM -DMOZILLA_INTERNAL_API -DMOZ_THUNDERBIRD=1 -DOSTYPE=\"SunOS5\" -DOSARCH=SunOS -I../../../../mozilla/dist/public/ldap -I/export/home/brian/tmp/comm-central/directory/xpcom/base/src -I. -I../../../../mozilla/dist/include/xpcom -I../../../../mozilla/dist/include/string -I../../../../mozilla/dist/include/necko -I../../../../mozilla/dist/include   -I../../../../mozilla/dist/include/mozldap `/export/home/brian/tmp/thunderbird/mozilla/dist/bin/nspr-config --prefix=/export/home/brian/tmp/thunderbird/mozilla/dist --includedir=/export/home/brian/tmp/thunderbird/mozilla/dist/include/nspr --cflags` -I/export/home/brian/tmp/thunderbird/mozilla/dist/include/nss      -KPIC  -xlibmieee -xbuiltin=%all -features=tmplife -norunpath -mt  -DDEBUG -D_DEBUG -DDEBUG_brian -DTRACING -g   -DMOZILLA_CLIENT -D_COMM_CONFIG_H_ -DMOZILLA_VERSION=\"1.9.3a4pre\" -DMOZILLA_VERSION_U=1.9.3a4pre -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_GETOPT_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_MMINTRIN_H=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_DLADDR=1 -DHAVE_LIBSOCKET=1 -DFUNCPROTO=15 -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_TRUNCATE64=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_THREAD_TLS_KEYWORD=1 -DMALLOC_H=\<malloc.h\> -DHAVE_POSIX_MEMALIGN=1 -DHAVE_MEMALIGN=1 -DHAVE_VALLOC=1 -DHAVE_I18N_LC_MESSAGES=1 -DNS_ALWAYS_INLINE= -DNS_ATTR_MALLOC=__attribute__\(\(malloc\)\) -DNS_WARN_UNUSED_RESULT=__attribute__\(\(warn_unused_result\)\) -DNS_NORETURN=__attribute__\(\(noreturn\)\) -DMOZ_THUNDERBIRD=1 -DMOZ_BUILD_APP=mail -DMOZ_X11=1 -DMOZ_WIDGET_GTK2=1 -DMOZ_DISTRIBUTION_ID=\"org.mozilla\" -DMOZ_ENABLE_GNOMEVFS=1 -DMOZ_ENABLE_GCONF=1 -DMOZ_ENABLE_DBUS=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1 -DACCESSIBILITY=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 -DMOZ_XTF=1 -DMOZ_SMIL=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_FEEDS=1 -DMOZ_STORAGE=1 -DMOZ_SAFE_BROWSING=1 -DMOZ_URL_CLASSIFIER=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\" -DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_INT_TYPES_H=1 -DMOZ_XUL=1 -DMOZ_PROFILELOCKING=1 -DMOZ_RDF=1 -DBUILD_CTYPES=1 -DMOZ_MORK=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DMOZ_ACCESSIBILITY_ATK=1 -DATK_MAJOR_VERSION=1 -DATK_MINOR_VERSION=28 -DATK_REV_VERSION=0  /export/home/brian/tmp/comm-central/directory/xpcom/base/src/nsLDAPProtocolModule.cpp

"../../../../mozilla/dist/include/mozilla/mozalloc.h", line 226: Error: std::bad_alloc is not in the current exception specification.                           
"../../../../mozilla/dist/include/mozilla/mozalloc.h", line 242: Error: std::bad_alloc is not in the current exception specification.
2 Error(s) detected.
gmake[5]: *** [nsLDAPProtocolModule.o] Error 2
gmake[5]: Leaving directory `/export/home/brian/tmp/thunderbird/directory/xpcom/base/src'
gmake[4]: *** [libs] Error 2
Attached patch patchSplinter Review
Assignee: nobody → brian.lu
Attachment #432767 - Flags: review?(dmose)
see also Bug 550371
Attachment #432767 - Flags: review?(dmose) → review+
Comment on attachment 432767 [details] [diff] [review]
patch

rs=dmose.  If the Solaris users are happy with this, that's good enough for me.
Keywords: checkin-needed
I don't think we should check in it like this.
We should wait Bug 550371, and copy the change of configure.in here.
Keywords: checkin-needed
http://hg.mozilla.org/comm-central/rev/6327ffb044aa
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Why not port the rules.mk part too?
Depends on: 550371
Flags: in-testsuite-
Product: Thunderbird → MailNews Core
QA Contact: build-config → build-config
Target Milestone: --- → Thunderbird 3.1b2
There was a typo when I type the hg commit command, so the file is missed.

Try again
http://hg.mozilla.org/comm-central/rev/b1b40a0933a6

Thanks.
You need to log in before you can comment on or make changes to this bug.