Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RSyslog: users

fixed paths more probs

 

 

RSyslog users RSS feed   Index | Next | Previous | View Threaded


dennisolvany at gmail

May 30, 2005, 2:39 PM

Post #1 of 2 (435 views)
Permalink
fixed paths more probs

The original paths were relative, but I don't know what they what they were supposed to be relative to, so I used absolute paths.

syslogd.c:

#ifdef WITH_DB
#include "/usr/local/include/mysql/mysql.h"
#include "/usr/local/include/mysql/errmsg.h"
#endif


New prob:

postfix# make
gcc -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c syslogd.c
gcc -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -c pidfile.c
gcc -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c template.c
gcc -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c stringbuf.c
gcc -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c srUtils.c
gcc -s -o syslogd syslogd.o pidfile.o template.o stringbuf.o srUtils.o -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
*** Error code 1

Stop in /usr/home/dennisolvany/rsyslog-0.8.4.
postfix#


rgerhards at hq

May 30, 2005, 2:43 PM

Post #2 of 2 (421 views)
Permalink
fixed paths more probs [In reply to]

we are getting closer ;) mysqlclient is the mysql library. Please search
for this one too...

> -----Original Message-----
> From: rsyslog-bounces [at] lists
> [mailto:rsyslog-bounces [at] lists] On Behalf Of Dennis Olvany
> Sent: Monday, May 30, 2005 2:39 PM
> To: rsyslog [at] lists
> Subject: [rsyslog] fixed paths more probs
>
> The original paths were relative, but I don't know what they
> what they were supposed to be relative to, so I used absolute paths.
>
> syslogd.c:
>
> #ifdef WITH_DB
> #include "/usr/local/include/mysql/mysql.h"
> #include "/usr/local/include/mysql/errmsg.h"
> #endif
>
>
> New prob:
>
> postfix# make
> gcc -O3 -DSYSV -fomit-frame-pointer -Wall
> -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF
> -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c syslogd.c
> gcc -O3 -DSYSV -fomit-frame-pointer -Wall
> -fno-strength-reduce -DWITH_DB -c pidfile.c
> gcc -O3 -DSYSV -fomit-frame-pointer -Wall
> -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF
> -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c template.c
> gcc -O3 -DSYSV -fomit-frame-pointer -Wall
> -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF
> -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c stringbuf.c
> gcc -O3 -DSYSV -fomit-frame-pointer -Wall
> -fno-strength-reduce -DWITH_DB -DSYSLOG_INET -DSYSLOG_UNIXAF
> -DNO_SCCS -DFSSTND -DSYSLOGD_PIDNAME=\"rsyslogd.pid\" -c srUtils.c
> gcc -s -o syslogd syslogd.o pidfile.o template.o stringbuf.o
> srUtils.o -lmysqlclient
> /usr/bin/ld: cannot find -lmysqlclient
> *** Error code 1
>
> Stop in /usr/home/dennisolvany/rsyslog-0.8.4.
> postfix#
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
>

RSyslog users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.