I need help. (Sincerely) I downloaded nut-0.44.3.tar.gz and I read the information required to build an RPM from the tarball. rpm -ta nut-0.44.3.tar.gz I have an AMD k6-233 w/Mandrake 7.2 2.2.19-4 kernel. Something really strange happens. When I execute the rpm -ta command, it starts to build. It creates the source tree in /usr/src/RPM/BUILD/nut-0.44.3. A file is created in /var/tmp/rpm.tmp-27557 with the contents of: *********************** #!/bin/sh RPM_SOURCE_DIR="/home/RPM/SOURCES" RPM_BUILD_DIR="/usr/src/RPM/BUILD" RPM_OPT_FLAGS="-O3 -fomit-frame-pointer -pipe -s -march=pentium -ffast-math -fexpensive-optimizations" RPM_ARCH="i386" RPM_OS="linux" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="nut" RPM_PACKAGE_VERSION="0.44.3" RPM_PACKAGE_RELEASE="1" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE RPM_BUILD_ROOT="/var/tmp/nut-0.44.3-root" export RPM_BUILD_ROOT set -x umask 022 cd /usr/src/RPM/BUILD cd /usr/src/RPM/BUILD rm -rf nut-0.44.3 /bin/gzip -dc /home/RPM/SOURCES/nut-0.44.3.tar.gz | tar -xf - STATUS=$? if [ $STATUS -ne 0 ]; then exit $STATUS fi cd nut-0.44.3 [ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root . [ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root . /bin/chmod -Rf a+rX,g-w,o-w . autoconf exit 0 ****************** All looks correct! (don't know if the double entries are giving me problems..) The build dies with the error: ****************** [root@Skyline SOURCES]# rpm -ta nut-0.44.3.tar.gz Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.18275 + umask 022 + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf nut-0.44.3 + /bin/gzip -dc /home/RPM/SOURCES/nut-0.44.3.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd nut-0.44.3 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,g-w,o-w . + autoconf /var/tmp/rpm-tmp.18275: autoconf: command not found Bad exit status from /var/tmp/rpm-tmp.18275 (%prep) ****************** So it looks like autoconf is my problem. Yes, I admit its a problem, because I don't know enough to fix it.... I need help. What's going on here? Well to keep pressing on, I may have out smarted myself, because I figured that as long as the source tree was there, I should be able to just build it manually, (./configure, make, make install) Well, the ./configure and make seem to have worked as they should. Installed gd and ./configure yields the following: ****************** [root@Skyline nut-0.44.3]# ./configure creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc -O ) works... yes checking whether the C compiler (gcc -O ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for a BSD compatible install... /usr/bin/install -c checking for flock... yes checking for cfsetispeed... yes checking for tcsendbreak... yes checking for setsid... yes checking for fcvt... yes checking for fcvtl... no checking for vsnprintf... yes checking for snprintf... yes checking for setenv... yes checking for inet_aton... yes checking for strerror... yes checking for strlcpy... no checking for strlcat... no checking for err... yes checking for atexit... yes checking for getopt declarations... in unistd.h checking whether to use uu_lock... no checking for connect... yes checking for TT_New_Glyph in -lttf... no checking for XBell in -lX11... no Retrying with -L /usr/X11R6/lib checking for XBell in -lX11... no checking for XpmReadFileToXpmImage in -lXpm... no Retrying with checking for XpmReadFileToXpmImage in -lXpm... no checking for gdImagePng in -lgd... no Trying again - using -L/usr/local/lib -I/usr/local/include... checking for gdImagePng in -lgd... no Trying again - using checking for gdImagePng in -lgd... no Trying again - using checking for gdImagePng in -lgd... no ** You will not be able to build the CGI programs without gd. ** ** To get it, visit http://www.boutell.com/gd/ checking for gd.h... yes checking for gd/gd.h... no checking for sys/modem.h... no checking for stdarg.h... yes checking for varargs.h... yes checking for sys/shm.h... yes checking for err.h... yes checking for mawk... mawk checking state path... using default: /var/state/ups checking model path... using default: /usr/local/ups/bin checking cgi path... using default: /usr/local/ups/cgi-bin checking pidpath... using default: /var/run checking network port number... using default value checking user to run as... using default: nobody checking group to run as... using default: nogroup checking facility for syslog... using default value checking whether to use shared memory... yes checking for msgget... yes checking for shmat... yes checking whether to use legacy double-open code... no checking for long long... yes updating cache ./config.cache creating ./config.status creating clients/Makefile creating conf/Makefile creating models/Makefile creating server/Makefile creating Makefile creating common/Makefile creating man/Makefile creating scripts/RedHat-6.0/upsd creating scripts/RedHat-6.0/upsmon creating include/config.h ****************** (Possible gd problem? ) Make yields: ****************** [root@Skyline nut-0.44.3]# make common/ make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/common' gcc -I../include -O -Wall -c common.c gcc -I../include -O -Wall -c strlcpy.c gcc -I../include -O -Wall -c strlcat.c make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/common' models/ make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/models' gcc -I../include -O -Wall -c upscommon.c gcc -I../include -O -Wall -o ups-trust425+625 ups-trust425+625.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o apcsmart apcsmart.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlc at.o gcc -I../include -O -Wall -o fentonups fentonups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/str lcat.o gcc -I../include -O -Wall -o genericups genericups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/s trlcat.o gcc -I../include -O -Wall -o optiups optiups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlcat .o gcc -I../include -O -Wall -o bestups bestups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlcat .o gcc -I../include -O -Wall -o victronups victronups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/s trlcat.o gcc -I../include -O -Wall -o ipt-anzen ipt-anzen.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/str lcat.o gcc -I../include -O -Wall -o bestfort bestfort.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlc at.o gcc -I../include -O -Wall -o mustekups mustekups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/str lcat.o gcc -I../include -O -Wall -o engetron engetron.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlc at.o gcc -I../include -O -Wall -o belkin belkin.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o powercom powercom.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlc at.o gcc -I../include -O -Wall -o bestuferrups bestuferrups.c upscommon.o ../common/common.o ../common/strlcpy.o ../comm on/strlcat.o gcc -I../include -O -Wall -o toshiba1500 toshiba1500.c upscommon.o ../common/common.o ../common/strlcpy.o ../common /strlcat.o gcc -I../include -O -Wall -o newapc newapc.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o mge-ellipse mge-ellipse.c upscommon.o ../common/common.o ../common/strlcpy.o ../common /strlcat.o gcc -I../include -O -Wall -o mgeups mgeups.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upseyeux upseyeux.c upscommon.o ../common/common.o ../common/strlcpy.o ../common/strlc at.o make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/models' server/ make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/server' gcc -I../include -O -Wall -o upsd upsd.c ../common/common.o ../common/strlcpy.o ../common/strlcat.o make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/server' clients/ make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/clients' gcc -I../include -O -Wall -c upsfetch.c gcc -I../include -O -Wall -o upsc upsc.c upsfetch.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upslog upslog.c upsfetch.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upsct upsct.c upsfetch.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upsct2 upsct2.c upsfetch.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upscmd upscmd.c upsfetch.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upsmon upsmon.c upsfetch.o ../common/common.o ../common/strlcpy.o ../common/strlcat.o gcc -I../include -O -Wall -o upssched upssched.c ../common/common.o ../common/strlcpy.o ../common/strlcat.o make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/clients' man/ make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/man' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/man' ****************** make install yields: ****************** [root@Skyline nut-0.44.3]# make install Installing in /usr/local/ups... make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/common' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/common' make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/models' if (test ! -d /usr/local/ups/bin) then \ /usr/bin/install -c -d /usr/local/ups/bin || exit 1; \ fi make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/models' make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/server' make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/server' make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/clients' make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/clients' make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/man' make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/man' make[1]: Entering directory `/usr/src/RPM/BUILD/nut-0.44.3/conf' Preserving existing config file: upsmon.conf Preserving existing config file: upsd.conf Preserving existing config file: upsset.passwd Preserving existing config file: hosts.conf Preserving existing config file: multimon.conf make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.44.3/conf' ****************** OK, so now I'm stumped -- due to my lack of prowess of course, and I need help! (1) I don't know why the rpm -ta didn't work; and (2) I don't know what I screwed up trying to build it manually. /clients/upsc, upscmd, upsct, upsct2, upslog, upsmon, and upssched all got built! /server/upsd got built! /models/ all got built! My question is -- WHAT IN THE HECK DO I DO NOW??? Any advise would be greatly appreciated. Rusty, I'm counting on you.....
