Closed Bug 19932 Opened 25 years ago Closed 25 years ago

M11 doesn't build on Solaris 7 with Sun C 5.0

Categories

(SeaMonkey :: Build Config, defect, P3)

Sun
Solaris

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: eggert, Assigned: granrosebugs)

References

()

Details

Building M11 on Solaris 7 using Sun C 5.0, with all current patches installed,
results in the following problem.  This is due to Sun bug #4286968, which
has not been patched yet.

CC -library=iostream -o nsImageGTK.o -c   -DMOZILLA_CLIENT -DNECKO=1
-DBROKEN_QSORT=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DMOZ_DEFAULT_TOOLKIT=\"gtk\"
-DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=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_SYS_BYTEORDER_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_FILIO_H=1 -DHAVE_SYS_IPC_H=1 -DHAVE_SYS_SHM_H=1
-DHAVE_X11_EXTENSIONS_XSHM_H=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_STATFS_H=1
-DHAVE_SYS_VFS_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_LIBM=1 -DHAVE_LIBDL=1
-DHAVE_LIBRESOLV=1 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_LIBELF=1
-DHAVE_LIBINTL=1 -DHAVE_LIBPOSIX4=1 -DHAVE_LIBW=1 -D_REENTRANT=1 -DHAVE_RANDOM=1
-DHAVE_QSORT=1 -DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_FCHMOD=1
-DHAVE_SNPRINTF=1 -DHAVE_LOCALTIME_R=1 -DHAVE_STATVFS=1 -DHAVE_MEMMOVE=1
-DHAVE_GETTIMEOFDAY=1 -DGETTIMEOFDAY_TWO_ARGS=1 -DHAVE_VALLOC=1
-DHAVE_IOS_BINARY=1 -DHAVE_OSTREAM=1 -DHAVE_CPP_EXPLICIT=1
-DHAVE_CPP_SPECIALIZATION=1 -DHAVE_CPP_USING=1 -DHAVE_CPP_NEW_CASTS=1
-DHAVE_I18N_LC_MESSAGES=1 -DMOZ_MAIL_NEWS=1 -DUSE_SHM=1 -DClientWallet=1
-DCookieManagement=1 -DSingleSignon=1 -DDEBUG=1 -DDEBUG_arman=1 -DTRACING=1
-DMOZ_USER_DIR=\".mozilla\" -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_EMBED=1
-DX_PLUGINS=1 -DUNIX_LDAP=1 -DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DLAYERS=1
-DNGEDITOR=1  -mt -O -g  -KPIC  -DOSTYPE=\"SunOS5\" -D_IMPL_NS_GFXNONXP
-I../../../dist/include -I../../../dist/include -I../../../dist/include
-I../../../include  -I../../../dist/public/jpeg -I../../../dist/public/png
-I../../../dist/public/zlib  -I./. -I./..  -I/usr/dt/include
-I/usr/openwin/include -I/s/pagist/workshop/lib/glib/include
-I/s/pagist/workshop/include nsImageGTK.cpp
"/opt/SUNWspro/SC5.0/include/CC/std/time.h", line 29: Error: Multiple
declaration for std::tm.
1 Error(s) detected.
gnumake[4]: *** [nsImageGTK.o] Error 1


We hacked around the problem by applying the following change to
/opt/SUNWspro/SC5.0/include/CC/std/time.h:

--- time.h-	Wed Aug 11 14:06:35 1999
+++ time.h	Tue Nov 23 10:38:29 1999
@@ -26,7 +26,7 @@
   using std::mktime;
   using std::strftime;
   using std::time;
-  using std::tm;
+  // hack // using std::tm;

   #ifndef _CLOCKID_T
   #define _CLOCKID_T
Status: NEW → ASSIGNED
mass set milestone to M13
Target Milestone: M13 → M14
mass migration to M14
Sun Bug 4286968 should have already been patched.  The patch number is 107311.

Hopefully that helps.

Hmm, but as of today (2000-02-04), the latest public rev of Sun patch 107311
is 107311-09, and it doesn't list Sun bug 4286968 as being fixed.
Perhaps the Sun bug database is incomplete?

We switched to GCC so the issue is moot for us now.
resolving worksforme since I've been in contact with folks at Sun who are 
building M14 on Solaris 2.7 w/WS 5.0.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.