LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2002, 09:34 AM   #1
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Rep: Reputation: 16
Question Compiling from Source


G'day...

I'm having my first go at compiling an application, namingly DHCP3.

As per the instructions included with the distribution, I first ran the .configure script, and then ran make.

Make however returns approximately 70 lines complaining of missing header files. Try as I might, I have been unable to determine to which libraries the (missing) header files belong.

I installed gcc & make from the packages on the distribution CD. Is installing them "out of the box" sufficient, or does either tool require configuration?

How does one determine which libraries are required to compile an application, if that information is not found in the application source distribution?
 
Old 04-11-2002, 10:14 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
ldd appname
should give you a clue.
 
Old 04-11-2002, 09:34 PM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Post part of the error message with some missing headers.
 
Old 04-20-2002, 09:24 AM   #4
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Took me a while to get back at this... :-)

neo77777--ldd appears to require an executable. I don't have an executable yet, I'm compiling the source files. Perhaps I misunderstand?

Aussie--here are some of the errors which are being generated:

In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/limits.h:117,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/netinet/in.h:212,
from /root/dhcp-3.0/includes/dhcpd.h:46,
from raw.c:62:
/usr/include/bits/local_lim.h:36: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212,
from /root/dhcp-3.0/includes/dhcpd.h:46,
from raw.c:62:
/usr/include/bits/socket.h:298: asm/socket.h: No such file or directory
In file included from /usr/include/errno.h:36,
from /root/dhcp-3.0/includes/cf/linux.h:66,
from /root/dhcp-3.0/includes/osdep.h:118,
from /root/dhcp-3.0/includes/dhcpd.h:66,
from raw.c:62:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
In file included from /usr/include/signal.h:307,
from /usr/include/sys/wait.h:30,
from /root/dhcp-3.0/includes/cf/linux.h:68,
from /root/dhcp-3.0/includes/osdep.h:118,
from /root/dhcp-3.0/includes/dhcpd.h:66,
from raw.c:62:
/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or directory
 
Old 04-20-2002, 10:07 AM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
The missing files are part of the gnu c libs. You need to install glibc.tgz from /slakware/d1 on the install cd.
 
Old 05-20-2002, 10:12 AM   #6
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
I've managed to make some progress... As it turns out, the errors I posted were not due to a missing installation of the gnu c libraries, rather I had neglected to install the kernel source.

Now... make attempts are still failing though, this time complaining of "cc: installation problem, cannot exec `as': No such file or directory".

'as' is an assembler, correct? Can I use as86 from the bin86 package, or do I need to look elsewhere?
 
Old 05-27-2002, 12:48 PM   #7
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Thumbs up Success!

Hmmm... I appear to be having a conversation with myself lately.

In any case, the package I needed was binutils, not bin86.

That was the last piece which I needed... DHCP 3 is now happily compiled and running. I'm tempted to have a go at putting together a package and posting it to LinuxPackages.net
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 08:32 AM
Compiling from source... (64) Blash Linux - Software 8 06-11-2005 01:31 AM
Compiling Source ripmaster Linux - Newbie 5 08-19-2004 02:02 AM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 10:09 PM
Compiling Qt-3.2.1 from source Kroenecker Linux - Software 1 02-08-2004 08:45 AM


All times are GMT -5. The time now is 10:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration