sudo compiling error (Mubaraki, Altaf (DCS))

Eric J. Wisti eric.wisti at wisti.com
Tue Jan 9 14:37:17 EST 2001


your gcc is quite old, v2.95.2 is current (http://gcc.gnu.org) and it
appears that it is built for Solaris 2.4

> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2.1/include/sys/param.h

I'd try to upgrade your gcc before anything else. gcc will run
'fixincludes', which among other things copies system headers to a private
area and fix the non-ANSI constructs.

I have never had more than a 'out of disk' error compliling sudo on every
version of Solaris since 2.5.1...

I'd be willing to be that will solve the problems...

Eric

On Tue, 9 Jan 2001 "Mubaraki, Altaf (DCS)" <AltafM at exchange.ml.com> wrote:

> From: "Mubaraki, Altaf (DCS)" <AltafM at exchange.ml.com>
> To: sudo-users at courtesan.com
> Subject: sudo compiling error
> Date: Tue, 9 Jan 2001 13:46:43 -0500
>
> Hi all:
>
> I am trying to compile sudo ver 1.6.3p5 on a solaris 2.6 box. When I run make it aborts while compiling interfaces.c.  Here is the error I get:
>
> gcc -c -I. -I.  -D__EXTENSIONS__ -g -O2 -D_PATH_SUDOERS=\"/etc/sudoers\" -D_PATH_SUDOERS_TMP=\"/etc/sudoers.tmp\" -DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  interfaces.c
> In file included from /usr/include/sys/turnstile.h:12,
>                  from /usr/include/sys/t_lock.h:20,
>                  from /usr/include/sys/vnode.h:37,
>                  from /usr/include/sys/stream.h:21,
>                  from /usr/include/netinet/in.h:38,
>                  from /usr/include/netdb.h:96,
>                  from interfaces.c:59:
> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2.1/include/sys/param.h:185: warning: `NBBY' redefined
> /usr/include/sys/select.h:45: warning: this is the location of the previous definition
> In file included from /usr/include/sys/stream.h:26,
>                  from /usr/include/netinet/in.h:38,
>                  from /usr/include/netdb.h:96,
>                  from interfaces.c:59:
> /usr/include/sys/model.h:32: #error "No DATAMODEL_NATIVE specified"
> *** Error code 1
> make: Fatal error: Command failed for target `interfaces.o'
>
> Last year, when I first installed sudo (same version) on this machine, the installation went smoothly. Unfortunately, I had to remove it later on as I didn't have an OK from my manager. Incidentally, I get the 'warning: NBBY redefined' while compiling all the objects in SRCS.
>
> Would be obliged to one any who may shed light as to what am I missing...
>
> Thanks,
>
> Regards
>
> Altaf
>


-- 
Eric Wisti                                            eric.wisti at wisti.com

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



More information about the sudo-users mailing list