Reese Knowledgebase

compilation error rsyslog 7.4.9

View Kristian Reese's profile on LinkedIn

If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 149
by: Reese K.
Posted: 11 Feb, 2014
Last updated: 18 Mar, 2014
Views: 2090

undefined referece to 'uncompress' while compiling rsyslog 7.4.9 src RPM

  CCLD   rsyslogd
../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[2]: *** [rsyslogd] Error 1
make[2]: Leaving directory `/home/rpmpkg/rpmbuild/BUILD/rsyslog-7.4.9/tools'
make[1]: *** [all-recursive] Error 1
make[1]: 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*
rpm --rebuilddb

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

This article was:   Helpful | Not Helpful
External links

Prev   Next
LVM     How to configure rsyslog 7.4.9 with TLS