LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-06-2003, 07:07 PM   #1
OlRoy
Member
 
Registered: Dec 2002
Posts: 306

Rep: Reputation: 86
Did i install xinetd correctly?


One problem i have is that i don't have a /etc/xinetd folder Should i have untared the *.tar file to /etc/xinetd and installed it from there? Could i just copy the untared and installed folder in my home directory to /etc/xinetd to fix that? Heres the output of the installation. I got a few errors and missing files that i don't know if they effect how xinetd is going to work or not.


root@localhost:~#tar xzvf xinetd-2.3.11.tar.gz
root@localhost:~# cd xinetd-2.3.11
root@localhost:~/xinetd-2.3.11# ./configure --with-libwrap --with-loadavg

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for ranlib... ranlib
checking for main in -lcompat... no
checking for gethostbyname... yes
checking for getnameinfo... yes
checking for inet_ntop... yes
checking for difftime... yes
checking for fcvt... yes
checking for ecvt... yes
checking for gcvt... yes
checking for strerror... yes
checking for strcasecmp... yes
checking for socket... yes
checking for inet_aton... yes
checking for setenv... yes
checking for strsignal... yes
checking for sys_siglist in -lc... yes
checking for gai_strerror... yes
checking for freeaddrinfo... yes
checking for getaddrinfo... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking sys/termios.h usability... yes
checking sys/termios.h presence... yes
checking for sys/termios.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking rpc/rpc.h usability... yes
checking rpc/rpc.h presence... yes
checking for rpc/rpc.h... yes
checking rpc/rpcent.h usability... no
checking rpc/rpcent.h presence... no
checking for rpc/rpcent.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking ftw.h usability... yes
checking ftw.h presence... yes
checking for ftw.h... yes
checking machine/reg.h usability... no
checking machine/reg.h presence... no
checking for machine/reg.h... no
checking linux/time.h usability... no
checking linux/time.h presence... yes
checking for linux/time.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking rpc/pmap_clnt.h usability... yes
checking rpc/pmap_clnt.h presence... yes
checking for rpc/pmap_clnt.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for stdint.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... no
checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... no
checking for DNSServiceDiscovery/DNSServiceDiscovery.h... no
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uid_t... yes
checking for gid_t... yes
checking for socklen_t... yes
checking for rlim_t... no
checking for struct addrinfo... yes
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_storage... yes
checking for main in -lcrypt... yes
checking whether to compile in loadavg... yes
checking for crypt in -lc... yes
checking for log10 in -lm... yes
checking whether to default to ipv6... ignored
checking whether to use libwrap... yes
checking for request_init in -lwrap... yes
checking for yp_get_default_domain in -lnsl... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for isatty... yes
checking for memcpy... yes
checking for waitpid... yes
checking for sigvec... yes
checking for setsid... yes
checking for strftime... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libs/src/misc/Makefile
config.status: creating libs/src/pset/Makefile
config.status: creating libs/src/sio/Makefile
config.status: creating libs/src/str/Makefile
config.status: creating libs/src/xlog/Makefile
config.status: creating libs/src/portable/Makefile
config.status: creating xinetd/Makefile
config.status: creating config.h
configure: WARNING: linux/time.h: present but cannot be compiled
configure: WARNING: linux/time.h: check for missing prerequisite headers?
configure: WARNING: linux/time.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ #

root@localhost:~/xinetd-2.3.11# make
cd libs/src/portable ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/portable'
gcc -g -O2 -I../../include -c -o difftime.o difftime.c
gcc -g -O2 -I../../include -c -o inet_aton.o inet_aton.c
gcc -g -O2 -I../../include -c -o strerror.o strerror.c
gcc -g -O2 -I../../include -c -o fake-getnameinfo.o fake-getnameinfo.c
gcc -g -O2 -I../../include -c -o inet_ntop.o inet_ntop.c
gcc -g -O2 -I../../include -c -o cvt.o cvt.c
ar r libportable.a difftime.o inet_aton.o strerror.o fake-getnameinfo.o inet_ntop.o cvt.o
ranlib libportable.a
Installed libportable.a to ../../lib
Installed ./libportable.h to ../../include
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/portable'
cd libs/src/sio ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/sio'
gcc -g -O2 -I../../include -c -o sprint.o sprint.c
gcc -g -O2 -I../../include -c -o sio.o sio.c
gcc -g -O2 -I../../include -c -o siosup.o siosup.c
ar r libsio.a sprint.o sio.o siosup.o
ranlib libsio.a
Installed libsio.a to ../../lib
Installed ./sio.h to ../../include
Installed ./sio.3 ./Sprint.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/sio'
cd libs/src/str ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/str'
gcc -g -O2 -I../../include -c -o strutil.o strutil.c
gcc -g -O2 -I../../include -c -o strprint.o strprint.c
gcc -g -O2 -I../../include -c -o strparse.o strparse.c
ar r libstr.a strutil.o strprint.o strparse.o
ranlib libstr.a
Installed libstr.a to ../../lib
Installed ./str.h to ../../include
Installed ./strparse.3 ./strprint.3 ./strutil.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/str'
cd libs/src/misc ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/misc'
gcc -g -O2 -I../../include -c -o misc.o misc.c
gcc -g -O2 -I../../include -c -o m_env.o m_env.c
ar r libmisc.a misc.o m_env.o
ranlib libmisc.a
Installed libmisc.a to ../../lib
Installed ./misc.h ./m_env.h to ../../include
Installed ./misc.3 ./m_env.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/misc'
cd libs/src/pset ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/pset'
gcc -g -O2 -I../../include -c -o pset.o pset.c
gcc -g -O2 -I../../include -c -o ops.o ops.c
ar r libpset.a pset.o ops.o
ranlib libpset.a
Installed libpset.a to ../../lib
Installed ./pset.h to ../../include
Installed ./pset.3 ./psi.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/pset'
cd libs/src/xlog ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/xlog'
gcc -g -O2 -I../../include -c -o xlog.o xlog.c
gcc -g -O2 -I../../include -c -o filelog.o filelog.c
gcc -g -O2 -I../../include -c -o slog.o slog.c
gcc -g -O2 -I../../include -c -o util.o util.c
ar r libxlog.a xlog.o filelog.o slog.o util.o
ranlib libxlog.a
Installed libxlog.a to ../../lib
Installed ./xlog.h to ../../include
Installed ./xlog.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/xlog'
cd xinetd ; make CC=gcc CFLAGS='-g -O2 -I../libs/include' LDFLAGS='-L../libs/lib'
make[1]: Entering directory `/root/xinetd-2.3.11/xinetd'
gcc -g -O2 -I../libs/include -c -o access.o access.c
gcc -g -O2 -I../libs/include -c -o addr.o addr.c
gcc -g -O2 -I../libs/include -c -o builtins.o builtins.c
gcc -g -O2 -I../libs/include -c -o child.o child.c
gcc -g -O2 -I../libs/include -c -o conf.o conf.c
gcc -g -O2 -I../libs/include -c -o confparse.o confparse.c
gcc -g -O2 -I../libs/include -c -o connection.o connection.c
gcc -g -O2 -I../libs/include -c -o env.o env.c
gcc -g -O2 -I../libs/include -c -o ident.o ident.c
gcc -g -O2 -I../libs/include -c -o init.o init.c
gcc -g -O2 -I../libs/include -c -o int.o int.c
gcc -g -O2 -I../libs/include -c -o intcommon.o intcommon.c
gcc -g -O2 -I../libs/include -c -o internals.o internals.c
gcc -g -O2 -I../libs/include -c -o log.o log.c
gcc -g -O2 -I../libs/include -c -o logctl.o logctl.c
gcc -g -O2 -I../libs/include -c -o main.o main.c
gcc -g -O2 -I../libs/include -c -o msg.o msg.c
gcc -g -O2 -I../libs/include -c -o nvlists.o nvlists.c
gcc -g -O2 -I../libs/include -c -o parse.o parse.c
gcc -g -O2 -I../libs/include -c -o parsesup.o parsesup.c
gcc -g -O2 -I../libs/include -c -o parsers.o parsers.c
gcc -g -O2 -I../libs/include -c -o reconfig.o reconfig.c
gcc -g -O2 -I../libs/include -c -o retry.o retry.c
gcc -g -O2 -I../libs/include -c -o sconf.o sconf.c
gcc -g -O2 -I../libs/include -c -o sensor.o sensor.c
gcc -g -O2 -I../libs/include -c -o server.o server.c
gcc -g -O2 -I../libs/include -c -o service.o service.c
gcc -g -O2 -I../libs/include -c -o signals.o signals.c
gcc -g -O2 -I../libs/include -c -o special.o special.c
gcc -g -O2 -I../libs/include -c -o tcpint.o tcpint.c
gcc -g -O2 -I../libs/include -c -o time.o time.c
gcc -g -O2 -I../libs/include -c -o udpint.o udpint.c
gcc -g -O2 -I../libs/include -c -o util.o util.c
gcc -g -O2 -I../libs/include -c -o redirect.o redirect.c
gcc -g -O2 -I../libs/include -c -o xgetloadavg.o xgetloadavg.c
gcc -g -O2 -I../libs/include -c -o options.o options.c
gcc -g -O2 -I../libs/include -c -o includedir.o includedir.c
gcc -g -O2 -I../libs/include -c -o xtimer.o xtimer.c
gcc -g -O2 -I../libs/include -c -o inet.o inet.c
gcc -g -O2 -I../libs/include -o xinetd access.o addr.o builtins.o child.o conf.o confparse.o connection.o env.o ident.o init.o int.o intcommon.o internals.o log.o logctl.o main.o msg.o nvlists.o parse.o parsesup.o parsers.o reconfig.o retry.o sconf.o sensor.o server.o service.o signals.o special.o tcpint.o time.o udpint.o util.o redirect.o xgetloadavg.o options.o includedir.o xtimer.o inet.o -L../libs/lib -lsio -lmisc -lxlog -lstr -lpset -lportable -lwrap -lnsl -lm -lcrypt || rm -f xinetd
gcc -I../libs/include ./itox.c -o itox -L../libs/lib -lmisc -lsio -lstr -lportable -lsio -lmisc -lxlog -lstr -lpset -lportable -lwrap -lnsl -lm -lcrypt
make[1]: Leaving directory `/root/xinetd-2.3.11/xinetd'

root@localhost:~/xinetd-2.3.11# make install
cd libs/src/portable ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/portable'
Installed libportable.a to ../../lib
Installed ./libportable.h to ../../include
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/portable'
cd libs/src/sio ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/sio'
Installed libsio.a to ../../lib
Installed ./sio.h to ../../include
Installed ./sio.3 ./Sprint.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/sio'
cd libs/src/str ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/str'
Installed libstr.a to ../../lib
Installed ./str.h to ../../include
Installed ./strparse.3 ./strprint.3 ./strutil.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/str'
cd libs/src/misc ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/misc'
Installed libmisc.a to ../../lib
Installed ./misc.h ./m_env.h to ../../include
Installed ./misc.3 ./m_env.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/misc'
cd libs/src/pset ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/pset'
Installed libpset.a to ../../lib
Installed ./pset.h to ../../include
Installed ./pset.3 ./psi.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/pset'
cd libs/src/xlog ; make CC=gcc CFLAGS='-g -O2 -I../../include' install
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/xlog'
Installed libxlog.a to ../../lib
Installed ./xlog.h to ../../include
Installed ./xlog.3 to ../../man
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/xlog'
cd xinetd ; make CC=gcc CFLAGS='-g -O2 -I../libs/include' LDFLAGS='-L../libs/lib'
make[1]: Entering directory `/root/xinetd-2.3.11/xinetd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/xinetd-2.3.11/xinetd'
for i in /usr/local/sbin /usr/local/man/man5 /usr/local/man/man8 ; do \
test -d $i || mkdir -p $i ; done
/usr/bin/ginstall -c -m 755 xinetd/xinetd /usr/local/sbin
/usr/bin/ginstall -c -m 755 xinetd/itox /usr/local/sbin
/usr/bin/ginstall -c -m 755 ./xinetd/xconv.pl /usr/local/sbin
/usr/bin/ginstall -c -m 644 ./xinetd/xinetd.conf.man /usr/local/man/man5/xinetd.conf.5
/usr/bin/ginstall -c -m 644 ./xinetd/xinetd.log.man /usr/local/man/man8/xinetd.log.8
/usr/bin/ginstall -c -m 644 ./xinetd/xinetd.man /usr/local/man/man8/xinetd.8
/usr/bin/ginstall -c -m 644 ./xinetd/itox.8 /usr/local/man/man8/itox.8
/usr/bin/ginstall -c -m 644 ./xinetd/xconv.pl.8 /usr/local/man/man8/xconv.pl.8
You must put your xinetd.conf in /etc/xinetd.conf
There is a sample config file in xinetd/sample.conf and you can
use xconv.pl to convert your old inetd.conf file to an xinetd format
root@localhost:~/xinetd-2.3.11# xinetd/xconv.pl < /etc/inetd.conf > /etc/xinetd.conf

root@localhost:~/xinetd-2.3.11# make clean
for lib in portable sio str misc xlog pset ; do \
cd ./libs/src/$lib ; make clean ; \
cd ../../.. ; \
done
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/portable'
rm -f difftime.o inet_aton.o strerror.o fake-getnameinfo.o inet_ntop.o cvt.o libportable.a core
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/portable'
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/sio'
rm -f sprint.o sio.o siosup.o libsio.a core
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/sio'
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/str'
rm -f strutil.o strprint.o strparse.o libstr.a core
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/str'
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/misc'
rm -f misc.o m_env.o libmisc.a core
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/misc'
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/xlog'
rm -f xlog.o filelog.o slog.o util.o libxlog.a core
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/xlog'
make[1]: Entering directory `/root/xinetd-2.3.11/libs/src/pset'
rm -f pset.o ops.o libpset.a core
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/libs/src/pset'
cd xinetd ; make clean
make[1]: Entering directory `/root/xinetd-2.3.11/xinetd'
rm -f access.o addr.o builtins.o child.o conf.o confparse.o connection.o env.o ident.o init.o int.o intcommon.o internals.o log.o logctl.o main.o msg.o nvlists.o parse.o parsesup.o parsers.o reconfig.o retry.o sconf.o sensor.o server.o service.o signals.o special.o tcpint.o time.o udpint.o util.o redirect.o xgetloadavg.o options.o includedir.o xtimer.o inet.o xinetd core itox
rm -f *.swp
rm -f *.?~
make[1]: Leaving directory `/root/xinetd-2.3.11/xinetd'
rm -f ./libs/lib/*.a
root@localhost:~/xinetd-2.3.11#

Last edited by OlRoy; 06-06-2003 at 07:42 PM.
 
Old 06-07-2003, 12:04 PM   #2
OlRoy
Member
 
Registered: Dec 2002
Posts: 306

Original Poster
Rep: Reputation: 86
Anyone?
 
Old 06-07-2003, 01:45 PM   #3
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
You do not need /etc/xinetd folder. And it is not created automatically during installation from source.
To get functionality the most important is xinetd.conf.
Some distros create /etc/xinetd for more readability - each service is described with a separate text file. In this case xinetd.conf consists the line: 'includedir /etc/xinetd' which makes all the files in the /etc/xinetd to be merged and treated as a part of xinetd.conf.
But if you have one or two services to be run with xinetd place the relevant sections for this services just into the xinetd.conf

Regarding the configure warnings as they are the warnings nothing should flow on the final program.
 
Old 06-07-2003, 02:09 PM   #4
OlRoy
Member
 
Registered: Dec 2002
Posts: 306

Original Poster
Rep: Reputation: 86
Thanks, that cleared up a bunch of stuff for me. One more question though, i take it i can just delete the installation folder i extracted from the .tar file? If so what's the purpose of having used 'make clean' if you can just remove the folder instead?
 
Old 06-07-2003, 03:56 PM   #5
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Generally 'make clean' removes all the *.o and other files generated via 'make', so you get the same state as just after untaring the source package. It is typical target. The other one is 'install' - for moving all compiled stuff to destination dir (in fact in many cases it is just 'cp' command)
 
  


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
Help me install GRUB Correctly eNightmare Arch 4 05-03-2005 10:07 PM
Install and Uninstall Xinetd pas Linux - Newbie 1 01-20-2005 09:46 AM
uninstall and install xinetd pas Linux - Newbie 2 01-15-2005 07:22 PM
Did I install GD correctly? lexington Linux - Newbie 15 04-15-2004 12:06 PM
qt3.3 install isn't working correctly tvreeland Linux - Software 3 02-18-2004 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 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