swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Only root can "make" programs using GCC after linux reinstall/kernel upg


From: Paul E. Johnson
Subject: Only root can "make" programs using GCC after linux reinstall/kernel upgrade
Date: Sat, 15 Nov 1997 05:46:28 -0500 (EST)

I killed linux by mistake, reinstalled redhat 4.2, then got the updated
kernel source from ftp.varesearch.com for linux 2.0.31 and made the kernel
and reinstalled.  I've also installed/configured the Swarm libraries
(archive install method), and when I run a make as root, everything is
fine. On the other hand, if I am not root, it crashes.  The output is
below.  I think I've isolated the problem. In the kernel source for
2.0.31, the /usr/src/linux-2.0.31/include directory has permissions set
drwxr-x--x.  The owner and group are root root.  The 31 source gives read
permission only to root or users in group root.  But, in the kernel source
for 2.0.30, the permissions for that directory are drwxr-xr-x.  I could
compile before I upgraded the new kernel.  Am I right in thinking this is
why only root can run makes?   

I don't guess I'll do any damange by just changing permissions on the src
directory for 2.0.31 to allow anyone read access?

But here's what I can't figure out.  The first include file the compiler
wants, but can't get, is time.h.  That file is sitting in /usr/include,
and any user can read it.  However, the compiler wants instead to follow a
symbolic link in /usr/include which is linux -->
/usr/src/linux/include/linux.  In that linked directory, there is also a
time.h, but the compiler has no right to read it.  Why doesn't GCC just
use the time.h it finds in /usr/include?

Here's the other thing I don't get.  The symlink from /usr/include into
the /src/linux/include/linux bugs me.  Do other linux users have that?  I
had read that a person can delete the kernel source after a kernel is
compiled and installed, but apparently I cannot.

Here's the printout:

# make
gcc -c -g -Wall -Wno-import -I/swarm/swarm-1.0.3//include
-I/usr/X11R6/include/X11 -I/usr/include -I/usr/local/include  CountHeads.m
gcc -c -g -Wall -Wno-import -I/swarm/swarm-1.0.3//include
-I/usr/X11R6/include/X11 -I/usr/include -I/usr/local/include  Voter.m
In file included from /usr/include/X11/Xlib.h:52,
                 from /swarm/swarm-1.0.3//include/tk.h:32,
                 from /swarm/swarm-1.0.3//include/tkobjc/Raster.h:9,
                 from /swarm/swarm-1.0.3//include/tkobjc.h:14,
                 from
/swarm/swarm-1.0.3//include/space/Value2dDisplay.h:6,
                 from /swarm/swarm-1.0.3//include/space.h:9,
                 from Voter.h:5,
                 from Voter.m:4:
/usr/include/sys/types.h:4: warning: Header file
/usr/include/linux/types.h exists, but is not readable
/usr/include/sys/types.h:4: warning: Header file
/usr/include/linux/types.h exists, but is not readable
/usr/include/sys/types.h:4: linux/types.h: Permission denied
In file included from /swarm/swarm-1.0.3//include/time.h:27,
                 from /swarm/swarm-1.0.3//include/random/RandomDefs.h:21,
                 from /swarm/swarm-1.0.3//include/random.h:50,
                 from /swarm/swarm-1.0.3//include/simtools/global.h:8,
                 from /swarm/swarm-1.0.3//include/simtools.h:6,
                 from Voter.h:7,
                 from Voter.m:4:
/usr/include/sys/time.h:5: warning: Header file /usr/include/linux/types.h
exists, but is not readable
/usr/include/sys/time.h:5: warning: Header file /usr/include/linux/types.h
exists, but is not readable
/usr/include/sys/time.h:5: linux/types.h: Permission denied
/usr/include/sys/time.h:6: warning: Header file /usr/include/linux/time.h
exists, but is not readable
/usr/include/sys/time.h:6: warning: Header file /usr/include/linux/time.h
exists, but is not readable
/usr/include/sys/time.h:6: linux/time.h: Permission denied



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]