how to create executable using isc dhcp and problem while issuing make command.
ameen.shajahan at wipro.com
ameen.shajahan at wipro.com
Tue Dec 6 06:59:16 UTC 2011
Hi all,
The file mentioned below is ./configure of ISC DHCP-4.2.3
[ameen at nemo dhcp-4.2.3]$ ./configure --help
`configure' configures DHCP 4.2.3 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-debug create a debug-only version of the software (default
is no).
--enable-failover enable support for failover (default is yes)
--enable-execute enable support for execute() in config (default is
yes)
--enable-tracing enable support for server activity tracing (default
is yes)
--enable-delayed-ack queues multiple DHCPACK replies (default is no)
--enable-dhcpv6 enable support for DHCPv6 (default is yes)
--enable-paranoia enable support for chroot/setuid (default is no)
--enable-early-chroot enable chrooting prior to configuration (default is
no)
--enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
no)
--enable-use-sockets use the standard BSD socket API (default is no)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-srv-lease-file=PATH
File for dhcpd leases (default is
LOCALSTATEDIR/db/dhcpd.leases)
--with-srv6-lease-file=PATH
File for dhcpd6 leases (default is
LOCALSTATEDIR/db/dhcpd6.leases)
--with-cli-lease-file=PATH
File for dhclient leases (default is
LOCALSTATEDIR/db/dhclient.leases)
--with-cli6-lease-file=PATH
File for dhclient6 leases (default is
LOCALSTATEDIR/db/dhclient6.leases)
--with-srv-pid-file=PATH
File for dhcpd process information (default is
LOCALSTATEDIR/run/dhcpd.pid)
--with-srv6-pid-file=PATH
File for dhcpd6 process information (default is
LOCALSTATEDIR/run/dhcpd6.pid)
--with-cli-pid-file=PATH
File for dhclient process information (default is
LOCALSTATEDIR/run/dhclient.pid)
--with-cli6-pid-file=PATH
File for dhclient6 process information (default is
LOCALSTATEDIR/run/dhclient6.pid)
--with-relay-pid-file=PATH
File for dhcrelay process information (default is
LOCALSTATEDIR/run/dhcrelay.pid)
--with-relay6-pid-file=PATH
File for dhcrelay6 process information (default is
LOCALSTATEDIR/run/dhcrelay6.pid)
--with-libbind=PATH bind includes and libraries are in PATH (default is
./bind)
--with-ldap enable OpenLDAP support in dhcpd (default is no)
--with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is
no)
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <dhcp-users at isc.org>.
I want to create create executable (lib files) using ISC DHCP.
For that I have executed the below commands.
Command 1:
[ameen at nemo dhcp-4.2.3]$ ./configure CC=/opt/crosstool/armv5b-linux/bin/armv5b-linux-gcc --host=armv5b --prefix=/home/ameen/dhcp-4.2.3/output --enable-debug --enable-delayed-ack --with-srv6-lease-file=/var/db/dhcpd6.leases --with-cli6-lease-file=/var/db/dhclient6.leases --with-srv6-pid-file=/var/run/dhcpd6.pid --with-cli6-pid-file=/var/run/dhclient6.pid --with-relay-pid-file=/var/run/dhcrelay.pid --cache-file=config.cache
This one is executed successfully, after that I executed the make command.
Actually the problem in my make command.
[ameen at nemo dhcp-4.2.3]$make
.
.
.
.
.
.
.
.
/opt/crosstool/armv5b-linux/lib/gcc-lib/armv5b-linux/3.3.2/../../../../armv5b-linux/bin/ld: warning: unknown architecture of input file `../bind/lib/libisc.a(mem.o)' is incompatible with arm output
/opt/crosstool/armv5b-linux/lib/gcc-lib/armv5b-linux/3.3.2/../../../../armv5b-linux/bin/ld: warning: unknown architecture of input file `../bind/lib/libisc.a(socket.o)' is incompatible with arm output
/opt/crosstool/armv5b-linux/lib/gcc-lib/armv5b-linux/3.3.2/../../../../armv5b-linux/bin/ld: warning: unknown architecture of input file `../bind/lib/libisc.a(task.o)' is incompatible with arm output
/opt/crosstool/armv5b-linux/lib/gcc-lib/armv5b-linux/3.3.2/../../../../armv5b-linux/bin/ld: warning: unknown architecture of input file `../bind/lib/libisc.a(timer.o)' is incompatible with arm output
/opt/crosstool/armv5b-linux/lib/gcc-lib/armv5b-linux/3.3.2/../../../../armv5b-linux/bin/ld: warning: unknown architecture of input file `../bind/lib/libisc.a(bufferlist.o)' is incompatible with arm output
/opt/crosstool/armv5b-linux/lib/gcc-lib/armv5b-linux/3.3.2/../../../../armv5b-linux/bin/ld: ../bind/lib/libdns.a(client.o)(.text+0x99): R_ARM_PC24 relocation against SEC_MERGE section
collect2: ld returned 1 exit status
make[1]: *** [svtest] Error 1
make[1]: Leaving directory `/home/ameen/dhcp-4.2.3/omapip'
make: *** [all-recursive] Error 1
[ameen at nemo dhcp-4.2.3]$
Please let me know what would be the reason for this error.
Otherwise, I would like to know whether I should use some other procedure to create executable.
Please go through the above config file and let me know how I could I executed and create the executable.
Regards,
Ameen S
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20111206/5ead3e8b/attachment.html>
More information about the dhcp-users
mailing list