LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling from Source (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-from-source-18283/)

dguy 04-11-2002 08:34 AM

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?

neo77777 04-11-2002 09:14 AM

ldd appname
should give you a clue.

Aussie 04-11-2002 08:34 PM

Post part of the error message with some missing headers.

dguy 04-20-2002 08:24 AM

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

Aussie 04-20-2002 09:07 AM

The missing files are part of the gnu c libs. You need to install glibc.tgz from /slakware/d1 on the install cd.

dguy 05-20-2002 09:12 AM

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?

dguy 05-27-2002 11:48 AM

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 :)


All times are GMT -5. The time now is 08:06 AM.