I found my mistake; I forgot to link the library when compiling by setting -ldbi in LIBDBI_LIBS environment variable.<div>So for now I'm not getting any error about libafsql anymore but when I first started syslog-ng I got this error "Error reading serialized data; error='Error reading file (short read)' Persistent configuration file is in invalid format; ignoring;"</div>
<div><br></div><div>I created syslog-ng.persist file in /usr/local/syslog-ng-test/var</div>