hey all,
Can someone give me a hand sorting this problem i've got with installing rsyslog, please? I've got a CentOS 4.2 box I've installed running Apache & MySQL at the moment with the aim of creating a centralised logging server for our windows environment...... but i'm having issues installing rsyslog.
so far i've followed the step by step guide and it all goes fine up untill "make" then it all goes slightly Pete Tong and I see this:
- Code: Select all
[root@box1 linux]# make install
install ../rfc3195d.8 /usr/share/man/man8/rfc3195d.8
install ../rsyslogd.8 /usr/share/man/man8/rsyslogd.8
install ../rsyslog.conf.5 /usr/share/man/man5/rsyslog.conf.5
cc -s -lpthread -o syslogd syslogd.o pidfile.o template.o outchannel.o stringbuf.o srUtils.o parse.o
syslogd.o(.text+0x208c): In function `initMySQL':
: undefined reference to `mysql_init'
syslogd.o(.text+0x20c5): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x20ee): In function `initMySQL':
: undefined reference to `mysql_real_connect'
syslogd.o(.text+0x2118): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2142): In function `initMySQL':
: undefined reference to `mysql_error'
syslogd.o(.text+0x214e): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2189): In function `initMySQL':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2281): In function `initMySQL':
: undefined reference to `mysql_close'
syslogd.o(.text+0x27f5): In function `fprintlog':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2818): In function `fprintlog':
: undefined reference to `mysql_query'
syslogd.o(.text+0x283d): In function `fprintlog':
: undefined reference to `mysql_error'
syslogd.o(.text+0x2849): In function `fprintlog':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x287d): In function `fprintlog':
: undefined reference to `mysql_errno'
syslogd.o(.text+0x2aa4): In function `fprintlog':
: undefined reference to `mysql_close'
syslogd.o(.text+0x6484): In function `die':
: undefined reference to `mysql_close'
syslogd.o(.text+0x8531): In function `init':
: undefined reference to `mysql_close'
collect2: ld returned 1 exit status
make: *** [syslogd] Error 1
any ideas what i've done wrong? i've tried it with both 0 and 1 set in the Makefile as I suspect it's a MySQL problem..... which is something else i'm trying to learn!
any help would be appreciated and earn virtual beer tokens


