*Synopsis*: ON does not compile with ss12 u1
CR 6936888 changed on Mar 28 2010 by <User 1-5Q-9201>
=== Field ============ === New Value ============= === Old Value =============
Description New Note
====================== =========================== ===========================
*Change Request ID*: 6936888
*Synopsis*: ON does not compile with ss12 u1
Product: solaris
Category: consolidation
Subcategory: os-net-misc
Type: Defect
Subtype:
Status: 7-Fix in Progress
Substatus:
Priority: 2-High
Introduced In Release: sunos_2.0
Introduced In Build: sunos_2.0
Responsible Engineer: <User 1-5Q-4611>
Keywords: s11-cbe-aten, s11-cbe-ceres
=== *Description* ============================================================
While trying to build ON with SS12 U1, I ran into 2 failures :
1)
+ /opt/SUNWspro/SS12/bin/cc -O -K PIC -xspace -Xa -xildoff -errtags=yes
-errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED
-erroff=E_UNRECOGNIZED_PRAGMA_IGNORED -erroff=E_INTEGER_OVERFLOW_DETECTED
-erroff=E_INIT_DOES_NOT_FIT -xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1
-W0,-xglobalstatic -v -xcsi -xstrconst -g -xc99=%all -D_XOPEN_SOURCE=600
-D__EXTENSIONS__=1 -W0,-noglobal -xdebugformat=dwarf
-DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO -DHOSTTYPE="sol11.i386"
-Isrc/lib/libast -I../common -I../common/comp -I../common/include
-I../common/std -I../common/dir -I../common/port -I../common/sfio
-I../common/astsa -I../common/misc -I../common/string -Iinclude/ast
-I/export/home/surya/onnv-clone/proto/root_i386/usr/include
-DCONF_LIBSUFFIX=".so" -DCONF_LIBPREFIX="lib" -DERROR_CATALOG="libast"
-D__OBSOLETE__=20090101 -D_BLD_ast -D_PACKAGE_ast -D_BLD_DLL -DPIC -D_REENTRANT
-c -o pics/common/comp/setlocale.o ../common/comp/setlocale.c
"../common/comp/setlocale.c", line 767: initializer will be sign-extended:
-2147483648 (E_INIT_SIGN_EXTEND)
cc: acomp failed for ../common/comp/setlocale.c
*** Error code 1
2)
+ /opt/SUNWspro/SS12/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED
-erroff=E_EXTERN_INLINE_UNDEFINED -erroff=E_ARG_INCOMPATIBLE_WITH_ARG
-xc99=%all -W0,-xglobalstatic -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO
-I/export/home/surya/onnv-clone/proto/root_i386/usr/include -I.
-I../../lib/libparted/common/lib -I../../lib/libparted/common/include -c
parted.c
"parted.c", line 2271: argument #2 is incompatible with prototype:
prototype: pointer to function(pointer to pointer to struct _PedDevice
{pointer to struct _PedDevice {..} next, pointer to char model, pointer to char
path, enum {PED_DEVICE_XVD(13), PED_DEVICE_SX8(11), PED_DEVICE_VIODASD(10),
PED_DEVICE_DASD(9), PED_DEVICE_UBD(8), PED_DEVICE_I2O(7),
PED_DEVICE_ATARAID(6), PED_DEVICE_FILE(5), PED_DEVICE_CPQARRAY(4),
PED_DEVICE_DAC960(3), PED_DEVICE_IDE(2), PED_DEVICE_SCSI(1),
PED_DEVICE_UNKNOWN(0)} type, long long sector_size, long long phys_sector_size,
long long length, int open_count, int read_only, int external_mode, int dirty,
int boot_dirty, struct _PedCHSGeometry {..} hw_geom, struct _PedCHSGeometry
{..} bios_geom, short host, short did, pointer to void arch_specific})
returning int : "command.h", line 33
argument : pointer to function() returning int
(E_ARG_INCOMPATIBLE_WITH_ARG_L)
cc: acomp failed for parted.c
*** Error code 1
With the following change made to common/include/ast_std.h, I am able to fix the
first error :
< #define AST_LC_translate (1L<<31)
---
> #define AST_LC_translate (1UL<<31)
With the following change made to cmd/parted/parted.c, I am able to fix the 2nd
error :
< do_version ()
---
> do_version (PedDevice** dev)
*** (#1 of 2): 2010-03-22 07:29:56 GMT+00:00 <User 1-5Q-4611>
The first error is being fixed by a large upcoming change to ksh93 code:
6877392 ksh93 regresses 'uniq -c' performance
6900314 (while true ; do true|true ; done) hang in ioctl() with SIGTTOU
6904557 wc no longer counts number of bytes correctly
6904575 cut -d with multibyte character no longer works
6904597 paste -d no longer works with multibyte characters
6904780 /usr/bin/cksum changed output in snv_128
6904870 uniq -s does not skip multibyte characters correctly
6904878 join -t no longer works with multibyte char separator
6907460 EXIT trap handlers are sometimes executed twice
6909375 Sparc: aten build14.0 acomp failed to build new OpenSolaris snv_128
sources
6909579 libast getopt solaris compatibility broken
6919591 ksh93's built-in "tail -f" cannot be interrupted if "suspended"
6920072 ksh93 tail -f, with unconditional .25s sleep and line parsing, about
37x slower than cat
6932124 mktemp in ksh93 is broken
Contributed by Olga Kryzhanovska <<email address omitted>>
But the second error remains.
The fix for this bugid should only contain the
fix for the second problem.
*** (#2 of 2): 2010-03-28 15:42:59 GMT+00:00 <User 1-5Q-9201>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release: solaris_nevada
Commit To Fix In Build: snv_137
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also: 6909375
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5:
Hook6:
Program Management:
Root Cause:
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2010-03-22 07:29:55 GMT+00:00
Submitted By: <User 1-5Q-4611>
Status Changed Date Updated Updated By
7-Fix in Progress 2010-03-22 08:30:32 GMT+00:00 <User 1-5Q-4611>
=== *Service Request* ========================================================
Impact: Significant
Functionality: Primary
Severity: 2
Product Name: compilers-tools
Product Release: aten
Product Build:
Operating System: 5.11
Hardware: ultrasparc
Submitted Date: 2009-12-10 20:14:48 GMT+00:00
=== *Service Request* ========================================================
Impact: Significant
Functionality: Secondary
Severity: 3
Product Name: solaris
Product Release: solaris_nevada
Product Build: snv_130
Operating System: snv_130
Hardware: generic
Submitted Date: 2010-03-22 07:29:56 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================