Closed Bug 74093 Opened 24 years ago Closed 24 years ago

/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 37: Error: Cannot use void* to initialize char*.

Categories

(SeaMonkey :: Installer, defect)

Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: roland.mainz, Assigned: samir_bugzilla)

Details

Sun Workshop 6 Update 2 EarlyAccess 2 fails to build 2001-03-29-08-trunk source tarball like this: -- snip -- /opt/SUNWspro/bin/CC -library=iostream -o nsXIEngine.o -c -DOSTYPE=\"SunOS5\" -DMOZ_REFLOW_PERF -DMOZ_REFLOW_PERF_DSP -DOJI -I../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/../../../stub -I../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/../../libxpnet/src -I../../../../dist/include -I../../../../dist/include -I/usr/openwin/include -KPIC -I/usr/openwin/include -I/usr/include -I/usr/local/include -mt -xO1 -DDEBUG -DDEBUG_gisburn -DTRACING -g `/usr/local/bin/gtk-config --cflags` -I/usr/openwin/include -DMOZILLA_CLIENT -DBROKEN_QSORT=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino -DMOZ_WIDGET_GTK=1 -DMOZ_ENABLE_XREMOTE=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_DIRENT_H=1 -DHAVE_SYS_BYTEORDER_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_FILIO_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_LIBSOCKET=1 -DHAVE_LIBPOSIX4=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_USLEEP=1 -DHAVE_RINT=1 -DHAVE_GETTIMEOFDAY=1 -DGETTIMEOFDAY_TWO_ARGS=1 -DHAVE_DEV_ZERO=1 -DHAVE_IOS_BINARY=1 -DHAVE_OSTREAM=1 -DHAVE_CPP_EXPLICIT=1 -DHAVE_CPP_SPECIALIZATION=1 -DHAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX=1 -DHAVE_CPP_PARTIAL_SPECIALIZATION=1 -DHAVE_CPP_ACCESS_CHANGING_USING=1 -DHAVE_CPP_AMBIGUITY_RESOLVING_USING=1 -DHAVE_CPP_NAMESPACE_STD=1 -DHAVE_CPP_UNAMBIGUOUS_STD_NOTEQUAL=1 -DHAVE_CPP_NEW_CASTS=1 -DHAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR=1 -DNEED_CPP_UNUSED_IMPLEMENTATIONS=1 -DHAVE_I18N_LC_MESSAGES=1 -DMOZ_MAIL_NEWS=1 -DMOZ_ENDER_LITE=1 -DNS_MT_SUPPORTED=1 -DCPP_CV_QUALIFIERS_CAUSE_AMBIGUITY=1 -DDETECT_WEBSHELL_LEAKS=1 -DMOZ_USER_DIR=\".mozilla\" -DMOZ_XUL=1 -DINCLUDE_XUL=1 -DMOZ_MATHML=1 -DMOZ_SVG=1 -DMOZ_XSL=1 -DMOZ_NEW_CACHE=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1 -DHAVE_MOVEMAIL=1 -DJS_THREADSAFE=1 ../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 35: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 37: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 48: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 49: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 62: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 63: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 64: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 66: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 67: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 68: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 72: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 138: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 139: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 140: Error: Cannot assign void* to nsHTTPConn*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 175: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 176: Error: Cannot assign void* to nsHTTPConn*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 217: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 218: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 219: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 220: Error: Cannot assign void* to nsFTPConn*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 265: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 269: Error: Cannot use void* to initialize nsComponent*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 333: Error: Cannot assign void* to char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 355: Error: Cannot use void* to initialize char*. "../../../../../../../../../tmp/moz_2001-03-29-08-trunk/mozilla/xpinstall/wizard/unix/src2/nsXIEngine.cpp", line 356: Error: Cannot use void* to initialize char*. Compilation aborted, too many Error messages. make[2]: *** [nsXIEngine.o] Error 1 make[2]: Leaving directory `/home/gisburn/mozilla/2001-03-29-08-trunk/objdir_ws6_gtk/xpinstall/wizard/unix/src2' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/gisburn/mozilla/2001-03-29-08-trunk/objdir_ws6_gtk/xpinstall' make: *** [install] Error 2 -- snip -- Seems Workshop's CC is little bit picky about casts... =:-)
All uses of "NULL" should be changed to 0 (zero) instead. This is exactly why we use "nsnull" in the Mozilla source instead of NULL, some unix compilers have only a C definition for NULL, not one compatible with C++. If raw 0 bothers you you can define nsnull in one of the wizard headers and use that.
Assignee: dbragg → sgehani
Despite "Engine" in the file name this is not part of the XPInstall engine, this is part of the native Installer
Component: Installer: XPInstall Engine → Installer
Fixed yesterday.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
If this is still a problem, please reopen or submit a new bug with details. Marking Verified.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.