From: Florian G. <fl...@bi...> - 2006-11-03 10:05:04
|
Though i'm not a autoconf/automake expert i tried to make a check for gd . This check tries to compile a simple program that only has a function call to gdMalloc(). In your sniplet of the config.log i cannot see why the compilation failed. If you want to disable the check, remove the lines AC_CHECK_LIB(gd,gdMalloc,,AC_MSG_ERROR(required library libgd unusable. Install required and dependent files and rerun configure. See config.log or FAQs for details.)) in configure.ac and run autoreconf. But i think you will runinto the problem later then. Flo Sand Philipp wrote: > Hi Florian, > > i recognized, that the gd-progs package hadn't been installed, and the > gdlib-config couldn't be found... though the configure finished without > an error... > > Anyway, I installed the gd-progs... and now I ran into the next Problem > :-/... I couldn't remember that it was so hard compiling perfparse on > fedora ... > > Check it out (snipped from config.log): > ---------------[schnipp]-------------------------------- > checking for gdlib-config... /usr/bin/gdlib-config > checking for gdMalloc in -lgd... no > configure: error: required library libgd unusable. > Install required and dependent files and rerun configure. > See config.log or FAQs for details. > [root@sygosrv14 perfparse-0.106.1]# less config.log > | #define HAVE___ARGZ_STRINGIFY 1 > | #define HAVE___ARGZ_NEXT 1 > | #define HAVE___FSETLOCKING 1 > | #define HAVE_DECL__SNPRINTF 0 > | #define HAVE_DECL__SNWPRINTF 0 > | #define HAVE_DECL_FEOF_UNLOCKED 1 > | #define HAVE_DECL_FGETS_UNLOCKED 0 > | #define HAVE_DECL_GETC_UNLOCKED 1 > | #define HAVE_ICONV 1 > | #define ICONV_CONST > | #define HAVE_LANGINFO_CODESET 1 > | #define HAVE_LC_MESSAGES 1 > | #define ENABLE_NLS 1 > | #define HAVE_GETTEXT 1 > | #define HAVE_DCGETTEXT 1 > | #define USE_SOURCE_NAGIOS 1 > | #define USE_DB_MYSQL 1 > | /* end confdefs.h. */ > | > | /* Override any gcc2 internal prototype to avoid an error. */ > | #ifdef __cplusplus > | extern "C" > | #endif > | /* We use char because int might match the return type of a gcc2 > | builtin and then its argument prototype would still apply. */ > | char gdMalloc (); > | int > | main () > | { > | gdMalloc (); > | ; > | return 0; > | } > configure:26962: result: no > configure:26974: error: required library libgd unusable. > Install required and dependent files and rerun configure. > See config.log or FAQs for details. > ---------------[schnipp]-------------------------------- > > > _____________________________ > > Philipp Sand > SYCOR GmbH - Sprach & Datenkommunikation > _____________________________ > > > > > > >>-----Original Message----- >>From: Florian Gleixner [mailto:fl...@bi...] >>Sent: Wednesday, November 01, 2006 4:44 PM >>To: Sand Philipp >>Cc: per...@li... >>Subject: Re: [Perfparse-users] Problem compiling perfparse 0.106.1 >> >>Sand Philipp wrote: >> >>>Hi Flo, >>> >>>gd packages are installed: >>> >>>rpm -qa | grep gd >>>gd-devel-2.0.28-4.4E.1 >>>gd-2.0.28-4.4E.1 >>> >>>any other suggestions? >>> >>>Philipp >> >>.... >> >>>`/root/Nagios-Stuff/perfparse-0.106.1/cgi' >>> >>>>>/bin/sh ../libtool --mode=link --tag=CC gcc -g -O2 -Wall -o >>>> >>>>perfchart.png perfchart_png-perfchart.o perfchart_png-cgi.o - >>>>L../libpp_mysql -lpp_mysql -L/usr/lib/mysql -lmysqlclient -lz > > -lcrypt > >>>- >>> >>>>lnsl -lm -L/usr/lib -lssl -lcrypto -L../libpp_common -lpp_common >>> >>>-lglib- >>> >>>>2.0 -ldl -lm >>>> >>>>>gcc -g -O2 -Wall -o .libs/perfchart.png perfchart_png-perfchart.o >>>> >>>>perfchart_png-cgi.o >>> >>>-L/root/Nagios-Stuff/perfparse-0.106.1/libpp_mysql >>> > /root/Nagios-Stuff/perfparse-0.106.1/libpp_mysql/.libs/libpp_mysql.so > >>>- >>> >>>>L/usr/lib/mysql -lmysqlclient -lcrypt -lnsl -L/usr/lib -lssl > > -lcrypto > >>>- >>> >>>>L/root/Nagios-Stuff/perfparse-0.106.1/libpp_common /root/Nagios- >>>>Stuff/perfparse-0.106.1/libpp_common/.libs/libpp_common.so -lz >>> >>>-lglib-2.0 >>> >>>>-ldl -lm -Wl,--rpath -Wl,/usr/local/nagios/lib >> >>I don't see a -lgd here. What was your configure command? Check your >>config.log or configure output for gd messages. It should look like > > this: > >>checking gd.h usability... yes >>checking gd.h presence... yes >>checking for gd.h... yes >>checking for gdlib-config... /usr/bin/gdlib-config >>checking for gdMalloc in -lgd... yes >> >>Flo > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |