compiling coreutils


 
Thread Tools Search this Thread
Top Forums Programming compiling coreutils
# 8  
Old 03-14-2011
Quote:
Originally Posted by Corona688
id.c, cat.c, and uniq.c aren't binaries so you're barking up the wrong tree. You're also assuming all the source code for id resides in id.c and so forth, which isn't necessarily true, they may have other source files in common.

You might try 'cd src ; make id'
Before ./configure
Code:
[cepido@localhost src]$ make id
cc     id.c   -o id
id.c:20:20: fatal error: config.h: No such file or directory
compilation terminated.
make: *** [id] Error 1
[cepido@localhost src]$ echo $?
2

After ./configure
Code:
[cepido@localhost src]$ make id
  CC       id.o
id.c:26:29: fatal error: selinux/selinux.h: No such file or directory
compilation terminated.
make: *** [id.o] Error 1
[cepido@localhost src]$ echo $?
2



Quote:
Originally Posted by Corona688
Just as the 'id' utility doesn't reside in id-0.78-1.fc14.i686.tar.gz, not every individual program has its own tiny individual package. I think passwd belongs to the shadow password tools.
Code:
[cepido@localhost src]$ rpm -qf `which passwd`
passwd-0.78-1.fc14.i686

seems passwd utility resides in passwd package Smilie
# 9  
Old 03-14-2011
Quote:
Originally Posted by wakatana
Before ./configure
It's never going to work before ./configure .
Quote:
After ./configure
Code:
[cepido@localhost src]$ make id
  CC       id.o
id.c:26:29: fatal error: selinux/selinux.h: No such file or directory
compilation terminated.
make: *** [id.o] Error 1
[cepido@localhost src]$ echo $?
2

Try make src/id from the main dir then.
# 10  
Old 03-23-2011
Hi guys and sorry for very long reply and for weird questions Smilie
My goal was to modify particular binary from package and compile only particular binary, because this is less time consuming than compile whole package.
Now I am able to do it: ./configure && make && cd src && change something in binary.c and compile it via make binary_name.
Thanks all for patience and sorry again for weird questions.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Error with compiling

Hi guys. I have a header file: unp.h like this: #ifndef _UNP_H_ #define _UNP_H_ extern ssize_t readn(int filedes, void *buff, size_t nbytes); extern ssize_t writen(int filedes, const void *buff, size_t nbytes); extern void err_quit(const char *msg); #define TRUE 1 #define FALSE 0 ... (2 Replies)
Discussion started by: majid.merkava
2 Replies

2. UNIX for Dummies Questions & Answers

Installing SU coreutils from BSD to unix AIX

Dear all Good day. Can any one advice me how to install the SU tool coreutils from BSD installed with linux on AIX unix ??? Thx in advance (0 Replies)
Discussion started by: islam.said
0 Replies

3. UNIX for Dummies Questions & Answers

doubt while compiling using cc

I was trying to compile a proc code. All steps when fine, except the last step which threw an error - I was just trying to compile it manually. Any ideas what this error means. Does it mean I am using the wrong library? (3 Replies)
Discussion started by: ranj@chn
3 Replies

4. UNIX for Advanced & Expert Users

re-compiling

I have a problem. How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result. I am pretty sure that I wasn't hacked! ... (5 Replies)
Discussion started by: aViking
5 Replies

5. Programming

compiling

I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
Discussion started by: Blunt_Killer
1 Replies

6. UNIX for Dummies Questions & Answers

compiling qt

i am trying to compile and install free qt for x11 2.2.4 in order to use kde 2.1. i'm using freebsd 4.3 i currently have XFree86 installed and working. i followed these instructions: ftp://ftp.trolltech.com/qt/source/INSTALL i get through the unpacking fine and i set my .profile. --... (2 Replies)
Discussion started by: nydel
2 Replies

7. UNIX for Dummies Questions & Answers

compiling

would anyone know of a good online tutorial on compiling and installing tarballs? i'm looking for one that assumes that you know very little to nothing about unix. (3 Replies)
Discussion started by: nydel
3 Replies

8. Programming

C compiling

I recently loaded SuSE on my intel comp. I am presently taking a walk down memory lane from my days at UofT. I was fiddling round with cc and the gcc compilers. I wrote a basic basic basic program . I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies
Login or Register to Ask a Question