[syslog-ng] Cross-compile problem with path in 3.2.4

Ulrich Prinz uprinz2 at netscape.net
Wed Jun 15 09:45:51 CEST 2011


Hi!

I cross compiled syslog-ng 3.2.4 for my ARM board. I called ./configure 
with the usual --host, --prefix and --exec-prefix options. Then I ran 
make with DESTDIR to my cross target directory.
I moved everything to my ARM target and syslog-ng starts up. While it 
locates and loads the configuration files properly, there is a problem 
with the modules:

~ # syslog-ng
Error opening plugin module; module='syslogformat', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Error opening plugin module; module='basicfuncs', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Plugin module not found in 'module-path'; module-path='/lib/syslog-ng', 
module='afsocket'
Error opening plugin module; module='affile', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='afprog', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='afuser', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='dbparser', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Error opening plugin module; module='csvparser', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Error opening plugin module; module='syslogformat', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Error opening plugin module; module='basicfuncs', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Plugin module not found in 'module-path'; module-path='/lib/syslog-ng', 
module='afsocket'
Error opening plugin module; module='affile', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='afprog', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='afuser', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='dbparser', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Error opening plugin module; module='csvparser', 
error='//lib/syslog-ng/: cannot read file data: Is a directory'
Error opening plugin module; module='confgen', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error opening plugin module; module='confgen', error='//lib/syslog-ng/: 
cannot read file data: Is a directory'
Error parsing source, source plugin system not found in 
/etc/syslog-ng/syslog-ng.conf at line 10, column 2:

Checking the directory shows:
/etc2/syslog-ng # ll /lib/syslog-ng/
drwxr-xr-x    2 root     root          1024 Jun 14 16:01 ./
drwxr-xr-x    7 root     root          3072 Jun 14 16:01 ../
-rw-r--r--    1 root     root        139122 Jun 14 16:01 libaffile.a
-rwxr-xr-x    1 root     root          1289 Jun 14 16:01 libaffile.la*
-rw-r--r--    1 root     root        110150 Jun 14 16:01 libafprog.a
-rwxr-xr-x    1 root     root          1289 Jun 14 16:01 libafprog.la*
-rw-r--r--    1 root     root        227144 Jun 14 16:01 
libafsocket-notls.a
-rwxr-xr-x    1 root     root          1313 Jun 14 16:01 
libafsocket-notls.la*
-rw-r--r--    1 root     root        484708 Jun 14 16:01 
libafsocket-tls.a
-rwxr-xr-x    1 root     root          1326 Jun 14 16:01 
libafsocket-tls.la*
lrwxrwxrwx    1 root     root            18 Jun 14 16:03 libafsocket.so 
-> libafsocket-tls.so@
-rw-r--r--    1 root     root         89662 Jun 14 16:01 libafuser.a
-rwxr-xr-x    1 root     root          1289 Jun 14 16:01 libafuser.la*
-rw-r--r--    1 root     root         26398 Jun 14 16:01 libbasicfuncs.a
-rwxr-xr-x    1 root     root          1301 Jun 14 16:01 
libbasicfuncs.la*
-rw-r--r--    1 root     root         15366 Jun 14 16:01 libconfgen.a
-rwxr-xr-x    1 root     root          1292 Jun 14 16:01 libconfgen.la*
-rw-r--r--    1 root     root         18030 Jun 14 16:01 
libconvertfuncs.a
-rwxr-xr-x    1 root     root          1307 Jun 14 16:01 
libconvertfuncs.la*
-rw-r--r--    1 root     root         96416 Jun 14 16:01 libcsvparser.a
-rwxr-xr-x    1 root     root          1298 Jun 14 16:01 
libcsvparser.la*
-rw-r--r--    1 root     root        265984 Jun 14 16:01 libdbparser.a
-rwxr-xr-x    1 root     root          1314 Jun 14 16:01 libdbparser.la*
-rw-r--r--    1 root     root         78426 Jun 14 16:01 libdummy.a
-rwxr-xr-x    1 root     root          1286 Jun 14 16:01 libdummy.la*
-rw-r--r--    1 root     root       1662352 Jun 14 16:01 libsyslog-ng.a
-rwxr-xr-x    1 root     root          1265 Jun 14 16:01 
libsyslog-ng.la*
-rw-r--r--    1 root     root         60868 Jun 14 16:01 
libsyslogformat.a
-rwxr-xr-x    1 root     root          1307 Jun 14 16:01 
libsyslogformat.la*

I tried calling syslog-ng --module-path=/lib/syslog-ng too, but I get 
the same result,

Any idea to get around that would be appreciated :)

Best Regards and thanks in advance
Ulrich


More information about the syslog-ng mailing list