Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to compile rsyslog but it fails with

  CC     rsyslogd-smtradfwd.o
  CC     rsyslogd-iminternal.o
  CC     rsyslogd-pidfile.o
  CCLD   rsyslogd
../runtime/.libs/librsyslog.a(librsyslog_la-parser.o): In function `uncompressMessage':
/home/pate/cs/csbox/local/build/linux-debian-x86_64-6/rsyslog/rsyslog-5.8.12/runtime/parser.c:247: undefined reference to `uncompress'
collect2: ld returned 1 exit status
make[2]: *** [rsyslogd] Error 1
make[2]: Leaving directory `/home/pate/cs/csbox/local/build/linux-debian-x86_64-6/rsyslog/rsyslog-5.8.12/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pate/cs/csbox/local/build/linux-debian-x86_64-6/rsyslog/rsyslog-5.8.12'
make: *** [all] Error 2

From what I could find online it's related to zlib but I don't really know what to do add.

Zlib is not installed system wide but in a specific folder and LD_LIBRARY_PATH is set correctly.

Thanks for reading

share|improve this question
Are the header files for zlib installed and entered into the configure script? – Sven Sep 11 '12 at 0:47

You need to tell the compiler/linker where to find the zlib library. This is usually done with CFLAGS="-L/path/to/zlib" ./configure if it is autotools based.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.