[mrtg-developers] Problems compiling 2.9.X on HP

Albert E. Whale aewhale at abs-comptech.com
Thu Dec 28 22:05:56 MET 2000


I am attempting to install a More Current version of mrtg on HP-UX 11.0.

I have already RTFM'd, twice.  I am getting a compilation error in the
-lgd section of the configure script.  The Configure utility fails as
follows:

configure:1170: checking for gdImageGif in -lgd
configure:1189: gcc -o conftest -g -O2   -L/opt/gd/lib -lgd -lm
conftest.c -lgd
 -lm  1>&5
/usr/bin/ld: Unsatisfied symbols:
   gdImageGif (code)
collect2: ld returned 1 exit status
configure: failed program was:
#line 1178 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageGif();

int main() {
gdImageGif()
; return 0; }
configure:1213: checking for gdImagePng in -lgd
configure:1232: gcc -o conftest -g -O2   -L/opt/gd/lib -lgd -lm
conftest.c -lgd
-lpng -lz -lm -lm  1>&5
/usr/bin/ld: Can't find library for -lpng
collect2: ld returned 1 exit status
configure: failed program was:
#line 1221 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImagePng();

The original command line used was:
./configure --with-gd-lib=/opt/gd/lib


The correct library does exist in /opt/gd/lib as depicted by:

[/usr/local/mrtg-2.9.4] # ls /opt/gd/lib
libgd.a   libgd.sl

Any ideas?


--
Albert E. Whale - http://www.abs-comptech.com/aewhale.html
----------------------------------------------------------------------
ABS Computer Technology, Inc. - Computer & Networking Specialists
Sr. Network, Security and Systems Consultant
HP Networking & Openview, Royalty Class Consultant -
http://forums.itrc.hp.com

The Father's Rights Network -
http://www.abs-comptech.com/frn/frnhome.html
The Pennsylvania Parenthood Initiative - PAPI - Children need BOTH
Parents
- http://www.geocities.com/Heartland/4688/papi.htm

--
Unsubscribe mailto:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers



More information about the mrtg-developers mailing list