Warning in building a kernel

2007-12-25 8:14:00

My original posting:

I have the following message when a rebuild the kernel:

....

cc -sparc -c -O

-Dsun4c -DOASYS -DSUN4C_60 -DWINSVJ -DVDDRV -DASYNCHIO -DLWP -DVFSSTATS

-DRFS -DCRYPT -DTCPDEBUG -DIPCSHMEM -DIPCSEMAPHORE -DIPCMESSAGE -DSYSAUDIT

-DSYSACCT -DPCFS -DHSFS -DTMPFS -DTFS -DLOFS -DNFSSERVER -DNFSCLIENT -DUFS

-DQUOTA -DINET -DSHMMNI="100" -DSHMSIZE="8192" -DKERNEL -I. -I.. -I../..

..http://sun/kern_wrapxxx.c

"..http://sun/kern_wrapxxx.c", line 35: warning: illegal pointer combination

kern_wrapxxx.c has the following lines around line 35:

short *

slacc_u_ruid()

{

        return (&u.u_ruid); <------- line 35

}

What is u.u_ruid? Does it hurt to use this newly built kernel?

Summary:

1) u.u_ruid is the real user id. Morrow Long suggested that the new

SunOS expects a long instead of a short for u_ruid. He also suggested

that change the return type of slacc_u_ruid() to long based on

preprocessor macro:

#ifdef U_RUID_32_BIT

long *

#else

short *

slacc_u_ruid()

{

        ...

}

2) Everyon says that it does not hurt to use the new kernel. Some says

that he's been seeing this warning message since SunOS 4.0.3.

Thanks for all the replies:

From: mos@e.KWL.CHKRA.abb.com (F.-J. Moser - ABB Power Generation Ltd - Baden/Switzerland)

From: weingart@inf.ethz.ch

From: long-morrow@CS.YALE.EDU (H Morrow Long)

From: jdschn@nicsn1.monsanto.com (John D Schneider)

From: B.Rea@cantva.canterbury.ac.nz

BTW, to B.Rea, it was an unintentional pun for "Thanks for any pointers".

                                                               ^^^^^^^^

-------------------

Kelvin C. Hui

email: kelvinh@sa-htn.valmet.com | Valmet Automation (U.S.A) Inc.

voice: (713) 956-4800 | 7604 Kempwood Drive

fax: (713) 681-8946 | Houston, Texas 77055

Comments

Got something to say?

You must be logged in to post a comment.