LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   missing packages for gcc: i think. (https://www.linuxquestions.org/questions/programming-9/missing-packages-for-gcc-i-think-252905/)

valsus 11-09-2004 02:28 PM

missing packages for gcc: i think.
 
I am having trouble compiling anythnig in C on a new machine that I have started from scratch.

PIII-500
Slackware 10.0

When I installed, I ONLY installed the kernel, required packages, and the kernel source.
I have put the following programming related packages on from the cd one by one:
(not necessarily in this order)
gcc-3
gcc-g++
gcc-obj
glib
glib2
glibc
libtool
binutils
m4
make

Am I missing something important?

I have tried compiling numerous programs that worked on other machines, but I have always just installed "all development packages"

I get an error (among others) that says:
configure: error: C preprocessor "/lib/cpp" fails sanity check

another error i get is:
/usr/include/bits/errno.h:25:26: linux/errno.h: no such file or dir
make[1]: *** [common.o] Error 1

I checked and errno.h is in /usr/include/ and /usr/include/bits/

Any help would be greatly appreciated :-)
Thank you

serz 11-09-2004 04:44 PM

You're missing the kernel-headers package.

valsus 11-09-2004 04:56 PM

thanx
 
Thank you for the kernel-headers advise, it got me much further now.

But, now I get this error:

/usr/lib/gcc.........linux/bin/ld: cannot find -lz
collect2: ld returned 1 exit status

any ideas?


All times are GMT -5. The time now is 07:26 AM.