I recently had a problem with the configure script from perfparse running properly so that I could 'make install' it to work with Nagios 2.10 on latest CentOS 4.x + RPMForge (see http://readlist.com/lists/centos.org/centos/5/28966.html). Thinking it was a problem that was a result of "yum remove gd", I formatted the box and reinstalled everything. Now, oddly, I still have the same problem, and unlike before (before running "yum remove gd"), I cannot configure it without getting the following error:
*************************************************** *************************************************** "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." *************************************************** ***************************************************
The part of the config.log which looks relevant to the problem is the following:
*************************************************** *************************************************** | /* 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. *************************************************** ***************************************************
and in the configure script, this pertains to the error as well
*************************************************** ***************************************************
LIBS="-lgd $LIBS"
else { { echo "$as_me:$LINENO: error: required library libgd unusable. Install required and dependent files and rerun configure. See config.log or FAQs for details." >&5 echo "$as_me: error: required library libgd unusable. Install required and dependent files and rerun configure. See config.log or FAQs for details." >&2;} { (exit 1); exit 1; }; } fi
*************************************************** ***************************************************
Any suggestions? This was working (in that I could ./configure, just not "make && make install") before I removed gd, and once I formatted and reinstalled everything fresh, none of it works. Any help in the right direction would be greatly appreciated.
On Sun, 16 Dec 2007, Rogelio wrote:
problem that was a result of "yum remove gd", I formatted the box and reinstalled everything.
"checking for gdlib-config... /usr/bin/gdlib-config checking for gdMalloc in -lgd... no
/usr/bin/gdlib-config is owned by package: gd-devel
Install that with yum, and it should work as to _that_ test.
-- Russ Herrold
On Dec 16, 2007 6:18 PM, Rogelio scubacuda@gmail.com wrote:
I already did install that.
This is information which would have helped first, so we wouldn't provide you with unhelpful recomendations.
What I'd like to see out of the config.log is where it includes the gd files, not where it tries to call the gdmalloc. It's going to be one of two things. You're either missing a specific file (or version of the file) or nagios is looking in a place other than where it is on your system. In either case, this should be identifiable either in the config.log or in the configure script itself.
On Sun, Dec 16, 2007 at 06:12:57PM -0500, R P Herrold alleged:
On Sun, 16 Dec 2007, Rogelio wrote:
problem that was a result of "yum remove gd", I formatted the box and reinstalled everything.
"checking for gdlib-config... /usr/bin/gdlib-config checking for gdMalloc in -lgd... no
/usr/bin/gdlib-config is owned by package: gd-devel
Install that with yum, and it should work as to _that_ test.
As the configure output shows, /usr/bin/gdlib-config is there. There is nothing to install to get /usr/bin/gdlib-config.
You have to look at config.log to find the actual reason.
On Dec 16, 2007 4:45 PM, Garrick Staples garrick@usc.edu wrote:
As the configure output shows, /usr/bin/gdlib-config is there. There is nothing to install to get /usr/bin/gdlib-config.
You have to look at config.log to find the actual reason.
Here is a blip from config.log that might be relevant to my problem:
configure:26900: checking for gdMalloc in -lgdconfigure:26930: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd conftest.c -lgd >&5/usr/bin/ld: cannot find -lXpmcollect2: ld returned 1 exit statusconfigure:26936: $? = 1configure: failed program was:| /* confdefs.h. */
(lots of garbage from confdefs.h)
| /* 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.
On Mon, Dec 17, 2007 at 07:02:22AM -0800, Rogelio alleged:
On Dec 16, 2007 4:45 PM, Garrick Staples garrick@usc.edu wrote:
As the configure output shows, /usr/bin/gdlib-config is there. There is nothing to install to get /usr/bin/gdlib-config.
You have to look at config.log to find the actual reason.
Here is a blip from config.log that might be relevant to my problem:
configure:26900: checking for gdMalloc in -lgd configure:26930: gcc -o conftest -g -O2 -I/usr/include -L/usr/lib -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd conftest.c -lgd >&5 /usr/bin/ld: cannot find -lXpm collect2: ld returned 1 exit status configure:26936: $? = 1configure: failed program was:
The line breaks were lost in the output, the above is cleaned up.
When we went through this a few weeks ago and this looks like the same problem: missing libXpm.so.
On Dec 17, 2007 9:14 AM, Garrick Staples garrick@usc.edu wrote:
The line breaks were lost in the output, the above is cleaned up.
When we went through this a few weeks ago and this looks like the same problem: missing libXpm.so.
Those are there:
/usr/X11R6/lib/libXpm.so.4.11 /usr/X11R6/lib/libXpm.so.4
So, I'm wondering if something isn't linked properly? Someone else emailed me and said that it works on CentOS, as long as you symlink (ln -s) the right files. I'm wondering if it's referencing something incorrectly, and I'll need to add another symlink to the right library?
On Dec 17, 2007 1:36 PM, Rogelio scubacuda@gmail.com wrote:
Those are there:
/usr/X11R6/lib/libXpm.so.4.11 /usr/X11R6/lib/libXpm.so.4
No, /usr/X11R6/lib/libXpm.so.4 is different from /usr/lib/libXpm.so
One is provided by libXpm, which you have, but the file you need is provided by libXpm-devel, which you don't.
On Dec 17, 2007 10:44 AM, Jim Perrin jperrin@gmail.com wrote:
On Dec 17, 2007 1:36 PM, Rogelio scubacuda@gmail.com wrote:
Those are there:
/usr/X11R6/lib/libXpm.so.4.11 /usr/X11R6/lib/libXpm.so.4
No, /usr/X11R6/lib/libXpm.so.4 is different from /usr/lib/libXpm.so
One is provided by libXpm, which you have, but the file you need is provided by libXpm-devel, which you don't.
I did a search, but didn't find that in my repository (and am wondering if I should just build from rpm?)
yum search libXpm
Loading "priorities" plugin Searching Packages: Setting up repositories Reading repository metadata in from local files 225 packages excluded due to repository priority protections
imlib2.i386 1.2.0-1.2.el4.rf rpmforge
Matched from: Imlib2 is an advanced replacement library for libraries like libXpm that provides many more features with much greater flexibility and speed than standard libraries, including font rasterization, rotation, RGBA space rendering and blending, dynamic binary filters, scripting, and more.
I see the libXpm-devel rpm here, but not for CentOS 4.x
http://rpmfind.net/linux/rpm2html/search.php?query=libxpm-devel
And here is one for the i386 platform. Is that good?
ftp://rpmfind.net/linux/fedora/core/development/i386/os/Fedora/libXpm-devel-3.5.6-1.i386.rpm
I see the libXpm-devel rpm here, but not for CentOS 4.x
http://rpmfind.net/linux/rpm2html/search.php?query=libxpm-devel
And here is one for the i386 platform. Is that good?
ftp://rpmfind.net/linux/fedora/core/development/i386/os/Fedora/libXpm-devel-3.5.6-1.i386.rpm
Just found this one for CentOS
http://rpm.pbone.net/index.php3/stat/4/idpl/4066720/com/libXpm-devel-3.5.5-3...
On Mon, Dec 17, 2007 at 11:03:37AM -0800, Rogelio alleged:
On Dec 17, 2007 10:44 AM, Jim Perrin jperrin@gmail.com wrote:
On Dec 17, 2007 1:36 PM, Rogelio scubacuda@gmail.com wrote:
Those are there:
/usr/X11R6/lib/libXpm.so.4.11 /usr/X11R6/lib/libXpm.so.4
No, /usr/X11R6/lib/libXpm.so.4 is different from /usr/lib/libXpm.so
One is provided by libXpm, which you have, but the file you need is provided by libXpm-devel, which you don't.
I did a search, but didn't find that in my repository (and am wondering if I should just build from rpm?)
# yum list libXpm-devel ... Available Packages libXpm-devel.i386 3.5.5-3 base
Just install it with yum.
On Dec 17, 2007 11:17 AM, Garrick Staples garrick@usc.edu wrote:
# yum list libXpm-devel ... Available Packages libXpm-devel.i386 3.5.5-3 base
Just install it with yum.
I don't have that, and I suspect it's because I'm using DAG and/or perhaps package protection?
yum list libXpm-devel
Loading "priorities" plugin Setting up repositories update 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files primary.xml.gz 100% |=========================| 1.8 MB 00:03
sqlite cache needs updating, reading in metadata rpmforge : ################################################## 8045/8045 226 packages excluded due to repository priority protections
On Mon, Dec 17, 2007 at 11:43:54AM -0800, Rogelio alleged:
On Dec 17, 2007 11:17 AM, Garrick Staples garrick@usc.edu wrote:
# yum list libXpm-devel ... Available Packages libXpm-devel.i386 3.5.5-3 base
Just install it with yum.
I don't have that, and I suspect it's because I'm using DAG and/or perhaps package protection?
yum list libXpm-devel
Loading "priorities" plugin Setting up repositories update 100% |=========================| 951 B 00:00
rpmforge 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files primary.xml.gz 100% |=========================| 1.8 MB 00:03
sqlite cache needs updating, reading in metadata rpmforge : ################################################## 8045/8045 226 packages excluded due to repository priority protections
Don't guess, just test it: yum --noplugins --disablerepo=freshrpms list libXpm-devel
On Dec 17, 2007 11:36 AM, Garrick Staples garrick@usc.edu wrote:
Don't guess, just test it: yum --noplugins --disablerepo=freshrpms list libXpm-devel
(my repos)
ls -al /etc/yum.repos.d/ CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo
(your command)
yum --noplugins --disablerepo=rpmforge list libXpm-devel Setting up repositories Reading repository metadata in from local files
Should I just download and install it from rpm? I tried, but I get this error:
rpm -i libXpm-devel-3.5.5-3.i386.rpm libXpm-devel-3.5.5-3.i386.rpm
warning: libXpm-devel-3.5.5-3.i386.rpm: V3 DSA signature: NOKEY, key ID e8562897 warning: package libXpm-devel = 3.5.5-3 was already added, replacing with libXpm-devel <= 3.5.5-3 error: Failed dependencies: libX11-devel is needed by libXpm-devel-3.5.5-3.i386 libXpm = 3.5.5-3 is needed by libXpm-devel-3.5.5-3.i386 libc.so.6(GLIBC_2.4) is needed by libXpm-devel-3.5.5-3.i386 rtld(GNU_HASH) is needed by libXpm-devel-3.5.5-3.i386 xorg-x11-filesystem >= 0.99.2-3 is needed by libXpm-devel-3.5.5-3.i386
On Mon, Dec 17, 2007 at 12:02:29PM -0800, Rogelio alleged:
On Dec 17, 2007 11:36 AM, Garrick Staples garrick@usc.edu wrote:
Don't guess, just test it: yum --noplugins --disablerepo=freshrpms list libXpm-devel
(my repos)
ls -al /etc/yum.repos.d/ CentOS-Base.repo CentOS-Media.repo mirrors-rpmforge rpmforge.repo
(your command)
yum --noplugins --disablerepo=rpmforge list libXpm-devel Setting up repositories Reading repository metadata in from local files
Maybe clear the cache first: yum clean all yum --noplugins --disablerepo=rpmforge list libXpm-devel
Should I just download and install it from rpm?
No. You should fix your yum config.
I'm not going to comment on fixing it at this point. I've never allowed dag/freshrpms on my systems so I'm not familiar with the implications.
On Dec 17, 2007 11:17 AM, Garrick Staples garrick@usc.edu wrote:
# yum list libXpm-devel
Is it possible that yum-plugin-priorities is preventing me from seeing things that were installed in base (such as this?)
http://wiki.centos.org/PackageManagement/Yum/Priorities
I installed that when I installed DAG, as per these instructions
http://wiki.centos.org/Repositories/RPMForge#head-fa5304fb28555bd19159629673...
On Dec 17, 2007 11:17 AM, Garrick Staples garrick@usc.edu wrote:
# yum list libXpm-devel
Perhaps the libgd version in Red Hat doesn't support the gdMalloc in Perfparse because of this security advisory?
On Mon, Dec 17, 2007 at 01:10:24PM -0800, Rogelio alleged:
On Dec 17, 2007 11:17 AM, Garrick Staples garrick@usc.edu wrote:
# yum list libXpm-devel
Perhaps the libgd version in Red Hat doesn't support the gdMalloc in Perfparse because of this security advisory?
Don't get sidetracked. The error message is explicit and the evidence is clear. You are missing libXpm.so, which is in the libXpm-devel package.
On Dec 17, 2007 4:10 PM, Rogelio scubacuda@gmail.com wrote:
On Dec 17, 2007 11:17 AM, Garrick Staples garrick@usc.edu wrote:
# yum list libXpm-devel
Which version or centos are you using again? libXpm-devel is for centos 5. For centos 4 it's a different package.
Perhaps the libgd version in Red Hat doesn't support the gdMalloc in Perfparse because of this security advisory?
No. For centos4 you need xorg-x11-libs and xorg-x11-devel.
On Dec 17, 2007 1:50 PM, Jim Perrin jperrin@gmail.com wrote:
Perhaps the libgd version in Red Hat doesn't support the gdMalloc in Perfparse because of this security advisory?
No. For centos4 you need xorg-x11-libs and xorg-x11-devel.
Both of those are already installed from yum also.
rpm -qa | grep xorg-x11
xorg-x11-Mesa-libGL-6.8.2-1.EL.33 xorg-x11-libs-6.8.2-1.EL.33 xorg-x11-devel-6.8.2-1.EL.33
Fixed it: The config.log showed it pointing to stuff that was in libjped-devel and libpng-devel, not libgd. Once yum'd those, I could ./configure ok.