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

Re: gcc

Yes, it was compiled OK. However, because make was from root, the property of 
all compiled *.o files is root root. This makes some problems in the use of 
the program, such as in deleting files.


ln -s /usr/bin/gcc-41 /usr/local/bin/gcc

either as $ or #, followed by

$ make

gcc -g -02 -c -o active.o active.c
cc1: error: active.c: Permission denied
make: *** [active.o] Error 1

Perhaps, unless link/make can be arranged differently, the easiest would be to 
change the property of all *.o files. Don'y remember how this could be done 
with a single command.

Incidentally, in previous compilation the proprty of *.c files was francesco 
francesco. Now it is 500 500; I imagine that 500 stands for francesco. True? 
You know, when such affaris are carried out sporadically, memory about tends 
to vanish to make room to other storage.

francesco pietra

Therefore, I have recreated directory gmmx with sources (I had deleted all) 
and recompiled issuing both links and make as root. Now the *. files are 500 
500 property (I imagine it is for owner francesco) while *.o files are root 
root. Why not changing the property?

I was too tired yesterday. Now tried. Perhaps mistakenly, I issued the ln -s 
from my home, then cd to the directory containing the sources, from where i 
issued make:

deb64:/home/francesco# ln - /usr/bin/gcc-4.1 /usr/local/bin/gcc
cd gmmx
deb64:/home/francesco/gmmx# make

whereby a large number of lines where shown consecutively, of the type

gcc -g -02 -c -o   utility.o  utility.c

where utility.c is a file owned francesco francesco (date when the tarball was 
unzipped and untared), present before make, and utility.o, owned root root 
(date when make was issued), was generated following the command.

the sequence ended with:

gcc -g  -o gmmx03 active.o angles.o attach.o column.o dolastat.o diagc.o

Then, after other lines of text

main.o: In function 'main':
/home/francesco/gmmx/main.c: 71: warning: the 'gets' function is dangerous and 
should not be used.
deb64: /home/francesco/gmmx#

where <gmmx03> is the name of the tarball.

I do not yet understand if something positive happened, but surely your 
suggestion has broken the ice. Thank you. (should you understand from the 
above description, please tell me)

francesco pietra

On Wednesday 07 June 2006 15:57, Matthias Julius wrote:
> Francesco Pietra <frapietra@alice.it> writes:
> > On Wednesday 07 June 2006 00:05, Matthias Julius wrote:
> >> # ln -s /usr/bin/gcc-4.1 /usr/local/bin/gcc
> And did you try to create a gcc symlink?
> Matthias

Reply to: