[syslog-ng]Problem compiling syslog-ng 1.5.26

Chris Vaughan syslog-ng@lists.balabit.hu
Tue, 19 Oct 2004 16:27:29 +1000


This is a multi-part message in MIME format.

------_=_NextPart_001_01C4B5A4.B566C0FD
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hello,

I am trying to compile syslog-ng 1.5.26 on a Red Hat Linux 7.3 system,
in order to use template() destinations so that I can log to a mysql
database.

While running the make command, it fails as follows:
 syslog-ng-1.5.26]#  make
Making all in src
make[1]: Entering directory `/usr/local/install/syslog-ng-1.5.26/src'
make  all-recursive
make[2]: Entering directory `/usr/local/install/syslog-ng-1.5.26/src'
Making all in .
make[3]: Entering directory `/usr/local/install/syslog-ng-1.5.26/src'
gcc  -g -O2 -Wall -I/usr/local/install/libol-0.3.14/src -D_GNU_SOURCE
-o syslog-ng  main.o sources.o center.o filters.o destinations.o log.o
cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o
afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o
syslog-names.o  -lresolv  -lfl
/usr/local/install/libol-0.3.14/src/.libs/libol.a -lnsl
sources.o: In function `do_read_line':
/usr/local/install/syslog-ng-1.5.26/src/sources.c:91: undefined
reference to `MIN'
sources.o: In function `make_log_reader':
/usr/local/install/syslog-ng-1.5.26/src/sources.c:169: undefined
reference to `MAX'
cfg-lex.o: In function `append_string':
/usr/local/install/syslog-ng-1.5.26/src/cfg-lex.l:239: undefined
reference to `MIN'
affile.o: In function `do_init_dest_writer':
/usr/local/install/syslog-ng-1.5.26/src/affile.c:287: undefined
reference to `MAX'
affile.o: In function `append_string':
/usr/local/install/syslog-ng-1.5.26/src/affile.c:558: undefined
reference to `MIN'
affile.o: In function `expand_macro':
/usr/local/install/syslog-ng-1.5.26/src/affile.c:654: undefined
reference to `MIN'
afinet.o: In function `do_init_afinet_dest':
/usr/local/install/syslog-ng-1.5.26/src/afinet.c:461: undefined
reference to `MAX'
collect2: ld returned 1 exit status
make[3]: *** [syslog-ng] Error 1
make[3]: Leaving directory `/usr/local/install/syslog-ng-1.5.26/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/install/syslog-ng-1.5.26/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/local/install/syslog-ng-1.5.26/src'
make: *** [all-recursive] Error 1

What is going wrong here? What should I do to correct this?


***************************************************************
This message is intended for the addressee named and=20
may  contain confidential information. If you are not the=20
intended recipient, please delete it and notify the sender.=20
Views expressed in this message are those of the=20
individual sender, and are not necessarily the views of=20
the Department of  Lands.

This email message has been swept by MIMEsweeper=20
for the presence of computer viruses.
***************************************************************


------_=_NextPart_001_01C4B5A4.B566C0FD
Content-Type: text/x-vcard; 
    name="Chris Vaughan (Chris.Vaughan@lands.nsw.gov.au).vcf"
Content-Transfer-Encoding: base64
Content-Description: Chris Vaughan (Chris.Vaughan@lands.nsw.gov.au).vcf
Content-Disposition: attachment; 
    filename="Chris Vaughan (Chris.Vaughan@lands.nsw.gov.au).vcf"

QkVHSU46VkNBUkQNClZFUlNJT046Mi4xDQpOOlZhdWdoYW47Q2hyaXMNCkZOOkNocmlzIFZhdWdo
YW4gKENocmlzLlZhdWdoYW5AbGFuZHMubnN3Lmdvdi5hdSkNCk9SRzpEZXBhcnRtZW50IG9mIExh
bmRzO0luZm9ybWF0aW9uIE1hbmFnZW1lbnQgYW5kIFRlY2hub2xvZ3kNClRJVExFOkNvbW11bmlj
YXRpb25zIEFkbWluaXN0cmF0b3INClRFTDtXT1JLO1ZPSUNFOigwMikgOTIyOC02ODg0DQpURUw7
Q0VMTDtWT0lDRTorNjEgKDA0MDEpIDE0ODA2MQ0KVEVMO1dPUks7RkFYOigwMikgOTIyMy0xMjcx
DQpBRFI7V09SSztFTkNPRElORz1RVU9URUQtUFJJTlRBQkxFOjtJTVQ7MSBQcmluY2UgQWxiZXJ0
IFJkPTBEPTBBUXVlZW5zIFNxdWFyZTtTeWRuZXk7TlNXOzIwMDA7QXVzdHJhbGlhDQpMQUJFTDtX
T1JLO0VOQ09ESU5HPVFVT1RFRC1QUklOVEFCTEU6SU1UPTBEPTBBMSBQcmluY2UgQWxiZXJ0IFJk
PTBEPTBBUXVlZW5zIFNxdWFyZT0wRD0wQVN5ZG5leSwgTlNXIDIwMDA9MEQ9MEFBdT0NCnN0cmFs
aWENCkVNQUlMO1BSRUY7SU5URVJORVQ6Q2hyaXMuVmF1Z2hhbkBsYW5kcy5uc3cuZ292LmF1DQpS
RVY6MjAwNDA4MTBUMDYyMjMzWg0KRU5EOlZDQVJEDQo=

------_=_NextPart_001_01C4B5A4.B566C0FD--