undefined referece to 'uncompress' while compiling rsyslog 7.4.9 src RPM
../runtime/.libs/librsyslog.a(librsyslog_la-parser.o): In function `uncompressMessage':
/home/rpmpkg/rpmbuild/BUILD/rsyslog-7.4.9/runtime/parser.c:256: undefined reference to `uncompress'
collect2: ld returned 1 exit status
make: *** [rsyslogd] Error 1
make: Leaving directory `/home/rpmpkg/rpmbuild/BUILD/rsyslog-7.4.9/tools'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/rpmpkg/rpmbuild/BUILD/rsyslog-7.4.9'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.68872 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.68872 (%build)
Following the external link below, it seems that zlib wasn't feeling good that day, so in an attempt to resolve, I reinstalled the packages after removing SOME of them first. Follow this example at your own risk. In my case, I knew I wasn't using the i386 versions of the zlib i386 dependencies, so I knew I could safely remove them.
rpm -e openssl-devel-0.9.8e-22.el5_8.4.i386
rpm -e openssl-0.9.8e-22.el5_8.4.i686
rpm -e zlib-1.2.3-3.i386
rm -f /var/lib/rpm/__db.00*
I did NOT want to unistall the x86_64 package dependencies to the 64bit version of zlib, so I was able to update just the database with the --justdb option to rpm, followed by a 'yum install' to reinstall listed packages. Subsequently, I got passed the above error on my next ./configure attempt.
rpm -e --nodeps --justdb zlib-1.2.3-3
rpm -e --nodeps --justdb zlib-devel-1.2.3-4.el5
rpm -qa | grep zlib
yum install zlib.x86_64
yum install zlib-devel.x86_64