Matthew Dharm wrote:
> You also need the -devel libraries for those rpms. Looks like, in
> particular, you're missing gd-devel-1.8.1-4mdk
>
> gdImagePng is a function in a library, not a filename.
>
> Matt
>
Matt, I have gd and gd-devel installed. Do I need to recompile gd now that
gd-devel is installed?
gd-1.8.1-4mdk
gd-devel-1.8.1-4mdk
>
> On Wed, Jun 13, 2001 at 12:18:52AM -0500, root wrote:
> > Rusty, [and list], I'm just picking on Rusty right now....
> >
> > ;laskerflkj(*&76lkjdflkj;h(87a9sd -- Ok, now I'm done venting. But I
> > still can't get nut to behave! Here is the scoup: (setup - LM 7.2,
> > 2.2.19-4 kernel)
> >
> > I downloaded the new official relase, nut 0.45 (also the 0.43). I check
> > to make sure all my dependencies are met -- they appear to be, see
> > below:
> >
> > [root@Skyline /root]# rpm -qa | grep zlib
> > zlib-1.1.3-11mdk
> > [root@Skyline /root]# rpm -qa | grep libpng
> > libpng-1.0.8-2mdk
> > [root@Skyline /root]# rpm -qa | grep gd
> > gdbm-1.8.0-8mdk
> > gdk-pixbuf-loaders-0.9.0-2mdk
> > gdk-pixbuf-0.9.0-2mdk
> > gd-1.8.1-4mdk
> > gd-devel-1.8.1-4mdk
> >
> > I run the suggested rpm -ta nut-0.45.0.tar.gz
> >
> > (lots of stuff starts happening! - The pertinent part follows)
> >
> > 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
> >
> >
> > Ok, so where ever gdImagePng is, I don't have it. I did look:
> >
> > [root@Skyline /]# find /usr -name gdImagePng
> > [root@Skyline /]# find /usr -name gdImage*
> > [root@Skyline /]#
> >
> > Next blowup happens when:
> >
> > gcc -I../include -O3 -fomit-frame-pointer -pipe -s -march=pentium
> > -ffast-math -fexpensive-optimizations -Wall -o upsimage.cgi
> > upsimage.c upsfetch.o cgilib.o -lm ../common/common.o
> > ../common/strlcpy.o ../common/strlcat.o
> > /tmp/ccISVo0t.o: In function `drawbattcap':
> > /tmp/ccISVo0t.o(.text+0x95): undefined reference to `gdImageCreate'
> > /tmp/ccISVo0t.o(.text+0xa3): undefined reference to
> > `gdImageColorAllocate'
> > /tmp/ccISVo0t.o(.text+0xb7): undefined reference to
> > `gdImageColorAllocate'
> > /tmp/ccISVo0t.o(.text+0xd0): undefined reference to
> > `gdImageColorAllocate'
> > <snip>
> > collect2: ld returned 1 exit status
> > make[1]: *** [upsimage.cgi] Error 1
> > make[1]: Leaving directory `/usr/src/RPM/BUILD/nut-0.45.0/clients'
> > + mkdir -p /var/tmp/nut-0.45.0-root/etc/sysconfig
> > + install -m644 scripts/RedHat-6.0/ups-config
> > /var/tmp/nut-0.45.0-root/etc/sysconfig/ups
> > + mkdir -p /var/tmp/nut-0.45.0-root/etc/rc.d/init.d
> > + install scripts/RedHat-6.0/upsd
> > /var/tmp/nut-0.45.0-root/etc/rc.d/init.d
> > + install scripts/RedHat-6.0/upsmon
> > /var/tmp/nut-0.45.0-root/etc/rc.d/init.d
> > + install scripts/RedHat-6.0/upspowerdown
> > /var/tmp/nut-0.45.0-root/etc/rc.d/init.d
> > + /usr/lib/rpm/brp-mandrake
> > Cleaning files...done
> > Compressing files...done
> > Stripping files...done
> > Relativisation of symlinks...done
> > Clean perl...done
> > Processing files: nut-0.45.0-1
> > File not found: /var/tmp/nut-0.45.0-root/etc/ups/hosts.conf
> > File not found: /var/tmp/nut-0.45.0-root/etc/ups/upsmon.conf
> > Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.53387
> > + umask 022
> > + cd /usr/src/RPM/BUILD
> > + cd nut-0.45.0
> > + DOCDIR=/var/tmp/nut-0.45.0-root/usr/share/doc/nut-0.45.0
> > + export DOCDIR
> > + rm -rf /var/tmp/nut-0.45.0-root/usr/share/doc/nut-0.45.0
> > + /bin/mkdir -p /var/tmp/nut-0.45.0-root/usr/share/doc/nut-0.45.0
> > + cp -pr COPYING CREDITS Changes QUICKSTART README docs/access.txt
> > docs/belkin.txt docs/big-servers.txt docs/cables docs/Changes.trust
> > docs/chroot.txt docs/commands.txt docs/configure.txt docs/data-room.txt
> > docs/design.txt docs/dummyups.txt docs/FAQ docs/generic-ups.txt
> > docs/mge-ellipse.txt docs/model-arguments.txt docs/multilink.txt
> > docs/new-modules.txt docs/pager.txt docs/powercom.txt docs/protocol.txt
> > docs/shutdown.txt docs/tips.txt docs/todo.txt docs/upssched.txt
> > docs/ups-trust425+625.txt
> > /var/tmp/nut-0.45.0-root/usr/share/doc/nut-0.45.0
> > cp: Changes: No such file or directory
> > cp: QUICKSTART: No such file or directory
> > Bad exit status from /var/tmp/rpm-tmp.53387 (%doc)
> > PreReq: chkconfig fileutils /bin/sh
> > Obsoletes: nut-client
> > Processing files: nut-server-0.45.0-1
> > File not found: /var/tmp/nut-0.45.0-root/etc/ups/upsd.conf
> > File not found: /var/tmp/nut-0.45.0-root/usr/man/man8/apcsmart.8.gz
> > File not found: /var/tmp/nut-0.45.0-root/usr/man/man8/powercom.8.gz
> > PreReq: /bin/sh
> > Requires: nut nut = 0.45.0
> > Processing files: nut-cgi-0.45.0-1
> > File not found: /var/tmp/nut-0.45.0-root/etc/ups/multimon.conf
> > File not found: /var/tmp/nut-0.45.0-root/etc/ups/upsset.passwd
> > File not found: /var/tmp/nut-0.45.0-root/etc/ups/hosts.conf
> > File not found:
> > /var/tmp/nut-0.45.0-root/usr/lib/ups/cgi-bin/multimon.cgi
> > File not found:
> > /var/tmp/nut-0.45.0-root/usr/lib/ups/cgi-bin/upsimage.cgi
> > File not found:
> > /var/tmp/nut-0.45.0-root/usr/lib/ups/cgi-bin/upsset.cgi
> > File not found:
> > /var/tmp/nut-0.45.0-root/usr/lib/ups/cgi-bin/upsstats.cgi
> > Requires: gd >= 1.6
> >
> > Obviously a gdImage problem (I think), but what gives?
> >
> > The entire /usr/local/ups directory gets built and populated with the
> > exception of the /usr/local/ups/cgi-bin directory. What am I missing and
> > where can I find the gdImagePnp file? Need major help!
> >
> > --
> > David C. Rankin, J.D., P.E.
> > ASEL -- Instrument
> > Nacogdoches, Texas
> > N31 34.7 W094 42.6
> > 355 MSL
>
> --
> Matthew Dharm Work: [EMAIL PROTECTED]
> Senior Software Designer, Momentum Computer
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature
--
David C. Rankin
Nacogdoches, Texas