LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2004, 02:28 PM   #1
valsus
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
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
 
Old 11-09-2004, 04:44 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
You're missing the kernel-headers package.
 
Old 11-09-2004, 04:56 PM   #3
valsus
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Packages doctorwebbox Debian 2 05-29-2005 09:02 AM
Missing Packages ? Snipersnest Linux - Newbie 6 01-28-2005 12:14 PM
Missing Packages Snipersnest Fedora 1 01-28-2005 08:44 AM
Missing Packages jawaking00 Mandriva 1 06-25-2004 08:18 PM
gcc 3.2.3 packages ivanatora Slackware 2 09-21-2003 11:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration