Sponsored Content
Full Discussion: compiling coreutils
Top Forums Programming compiling coreutils Post 302502159 by wakatana on Monday 7th of March 2011 04:35:17 AM
Old 03-07-2011
compiling coreutils

Hi gurus
I am trying to compile coreutils for studying purposes. I downloaded package (exact version which target system already contains) and tried following:

Code:
./configure
make

but compiling ands with some header file dependency problem. Then I tried compile particular binary

Code:
cd src
gcc id.c -o id

also tried

Code:
export CFLAGS="-static -02 -g"
./configure
cd src
gcc -std=gnu99 -I../lib -static -O2 -g -MT uniq.o -MD -MP -MF .deps/uniq.Tpo -c -o uniq.o uniq.c

But there was also missing header files problem.

So I tried to find particular file on system and link to /usr/include location for example:
Code:
ln -s /usr/lib/syslinux/com32/include/syslinux/config.h /usr/include/config.h
ln -s /usr/lib/syslinux/com32/include/com32.h /usr/include/com32.h
ln -s /usr/lib/syslinux/com32/include/klibc/compiler.h /usr/include/klibc/compiler.h
ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/plugin/include/system.h /usr/include/system.h
ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/plugin/include/safe-ctype.h /usr/include/safe-ctype.h
ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/plugin/include/hwint.h /usr/include/hwint.h
ln -s /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/plugin/include/filenames.h /usr/include/filenames.h

maybe further more header files I dont know - but the result is the same header file problem.
I tried the metioned procedure on Archbang and Fedora (on both the coreutils was the same version whih is already installed and is working properly)

Thanks a lot
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
libplot(3LIB)							Interface Libraries						     libplot(3LIB)

NAME
libplot, lib300, lib300s, lib4014, lib450, libvt0 - graphics interface libraries SYNOPSIS
cc [ flag... ] file... -lplot [ library... ] #include <plot.h> DESCRIPTION
Functions in this library generate graphics output. INTERFACES
The shared object libplot.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces. arc box circle closepl closevt cont erase label line linemod move openpl openvt point space FILES
/usr/lib/libplot.so.1 shared object /usr/lib/64/libplot.so.1 64-bit shared object /usr/lib/lib300.so.1 shared object /usr/lib/64/lib300.so.1 64-bit shared object /usr/lib/lib300s.so.1 shared object /usr/lib/64/lib300s.so.1 64-bit shared object /usr/lib/lib4014.so.1 shared object /usr/lib/64/lib4014.so.1 64-bit shared object /usr/lib/lib450.so.1 shared object /usr/lib/64/lib450.so.1 64-bit shared object /usr/lib/libvt0.so.1 shared object /usr/lib/64/libvt0.so.1 64-bit shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsl (32-bit) | +-----------------------------+-----------------------------+ | |SUNWcslx (64-bit) | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
pvs(1), intro(3), attributes(5) SunOS 5.10 13 Jun 2003 libplot(3LIB)
All times are GMT -4. The time now is 01:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy