From: Philip V. <ph...@we...> - 2005-01-28 07:03:16
|
Bobby, when you ran configure, you probably got the message: configure: WARNING: Could not find gdlib-config. The compiler and linker assume that you specify the options manually in CFLAGS and LDFLAGS when running make I get this on RedHat AS3 and 7.3 - I have gd-1.8.4 and gd-devel-1.8.4 installed. I'm not sure which version of gd has gdlib-config, probably version 2. Anyway: $ vi cgi/Makefile Search for GD_LIBS, then make this line: GD_LIBS =3D -lgd Then it should work. Alternatively: $ GD_LIBS=3D-lgd make -e Also works for me. Philip -----Original Message----- From: per...@li... [mailto:per...@li...] On Behalf Of Bobby Johnson Sent: Friday, 28 January 2005 10:15 AM To: per...@li... Subject: Re: [Perfparse-users] problem compiling I uninstalled devel/glibc-1.2.10 and installed 2.4.5. Now I get another error, see below. Also forgot to mention before. This is perfparse 0.105.2 and 0.104.9 with the argv=3D line moved. I = have gd 1.8.3 installed. The needed headers are in /usr/local/include and seem to have these funcions. My gcc is 2.95. gcc -g -O2 -Wall -o .libs/perfchart.png perfchart_png-perfchart.o perfchart_png-cgi.o -L/root/nagios/perfparse-0.104.9/libpp_mysql -L/root/nagios/perfparse-0.104.9/libpp_mysql/.libs -lpp_mysql -L/root/nagios/perfparse-0.104.9/libpp_common -L/root/nagios/perfparse-0.104.9/libpp_common/.libs -lpp_common -L/usr/local/lib/mysql -lmysqlclient -L/usr/lib -lz -lssl -lcrypto -L/usr/local/lib -lglib-2.0 -lintl -liconv -lm -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/lib/mysql perfchart_png-perfchart.o(.text+0x1e7): In function `main': /root/nagios/perfparse-0.104.9/cgi/perfchart.c:276: undefined reference to `gdImageRectangle' perfchart_png-perfchart.o(.text +0x211):/root/nagios/perfparse-0.104.9/cgi/perfchart.c:277: undefined reference to `gdImageRectangle' perfchart_png-perfchart.o(.text +0x234):/root/nagios/perfparse-0.104.9/cgi/perfchart.c:280: undefined reference to `gdImageFilledRectangle' perfchart_png-perfchart.o(.text +0x261):/root/nagios/perfparse-0.104.9/cgi/perfchart.c:281: undefined reference to `gdImageFilledRectangle' ****cut****** perfchart_png-perfchart.o(.text +0x30c3):/root/nagios/perfparse-0.104.9/cgi/perfchart.c:1720: undefined reference to `gdImageString' perfchart_png-perfchart.o(.text +0x30e8):/root/nagios/perfparse-0.104.9/cgi/perfchart.c:1727: undefined reference to `gdImagePng' collect2: ld returned 1 exit status *** Error code 1 Stop in /root/nagios/perfparse-0.104.9/cgi (line 370 of Makefile). *** Error code 1 Stop in /root/nagios/perfparse-0.104.9 (line 356 of Makefile). *** Error code 1 Stop in /root/nagios/perfparse-0.104.9 (line 267 of Makefile). On Wed, 2005-01-26 at 17:27 -0700, Bobby Johnson wrote: > # ./configure --with-glib12=3D/usr/local/include/glib-1.2/ > --prefix=3D/usr/local --with-imagedir=3D/var/www/htdocs/nagios/share/images/ > --with-cgidir=3D/var/www/cgi-bin/nagios/ > --with-http_image_path=3D/nagios/images >=20 >=20 > *********CUT********** >=20 >=20 > # make >=20 > ********CUT********* >=20 > /bin/sh ../libtool --mode=3Dlink gcc -g -O2 -Wall -o perfparsed > perfparsed-perfparsed.o perfparsed-perfparse-common.o > perfparsed-server_parser.o perfparsed-log_reader.o perfparsed-storage.o > perfparsed-storage_history.o -lz -L../libpp_common -lpp_common > -L../libnagios_perfdata_parser -lnagios_perfdata_parser -L/usr/local/lib > -lglib -L/usr/local/lib -lintl -L/usr/local/lib -liconv -lm > gcc -g -O2 -Wall -o .libs/perfparsed perfparsed-perfparsed.o perfparsed-perfparse-common.o perfparsed-server_parser.o perfparsed-log_reader.o perfparsed-storage.o perfparsed-storage_history.o -L/root/nagios/perfparse-0.105.2/libpp_common -L/root/nagios/perfparse-0.105.2/libpp_common/.libs -lpp_common -lz -L/root/nagios/perfparse-0.105.2/libnagios_perfdata_parser -L/root/nagios/perfparse-0.105.2/libnagios_perfdata_parser/.libs -lnagios_perfdata_parser -L/usr/local/lib -lglib -lintl -liconv -lm -Wl,-rpath,/usr/local/lib > perfparsed-storage.o(.text+0x6cc): In function `storage_periodic_cleanup': > /root/nagios/perfparse-0.105.2/perfparse/storage.c:269: undefined reference to `g_path_get_basename' > collect2: ld returned 1 exit status > *** Error code 1 >=20 > Stop in /root/nagios/perfparse-0.105.2/perfparse (line 358 of Makefile). > *** Error code 1 >=20 > Stop in /root/nagios/perfparse-0.105.2 (line 361 of Makefile). > *** Error code 1 >=20 > Stop in /root/nagios/perfparse-0.105.2 (line 272 of Makefile). > # >=20 > I'm running OpenBSD 3.6 > glibc 1.2.10 devel >=20 > Please help. I can attach any other output if needed. >=20 > Bobby >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users >=20 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Perfparse-users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perfparse-users |