[syslog-ng] Encoding provlem when writing to postgres
ml at bortal.de
ml at bortal.de
Fri Oct 24 09:36:32 CEST 2008
Hi,
now i am trying to compile syslog-ng-2.9.0+20081022 (with
eventlog-0.2.9+20081022) and i get:
------------------------------------------------------
rm -f libsyslog-ng.a
ar cru libsyslog-ng.a misc.o utils.o messages.o syslog-names.o cfg.o
filter.o logmsg.o logstamp.o logpipe.o logsource.o driver.o sgroup.o
dgroup.o center.o templates.o logreader.o logwriter.o affile.o
afstreams.o afuser.o afprog.o afsocket.o afunix.o afinet.o afinter.o
children.o stats.o gsockaddr.o gsocket.o logtransport.o logproto.o
memtrace.o dnscache.o serialize.o apphook.o radix.o logpatterns.o
cfg-lex.o cfg-grammar.o timeutils.o alarms.o logparser.o logprocess.o
logmpx.o logrewrite.o logmatcher.o gprocess.o globals.o control.o
compat.o logqueue.o afsql.o tlscontext.o tlstransport.o
ranlib libsyslog-ng.a
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog
-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall
-MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f
".deps/main.Tpo"; exit 1; fi
gcc -g -O2 -Wall -o syslog-ng main.o libsyslog-ng.a -lnsl -lrt
-Wl,-Bstatic -pthread -lgthread-2.0 -lglib-2.0 -L/usr/local/lib
-levtlog -lssl -lcrypto -lz -lnet -Wl,-Bdynamic -ldl
libsyslog-ng.a(afsql.o): In function `afsql_init_db_thread':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:671: undefined
reference to `dbi_initialize'
libsyslog-ng.a(afsql.o): In function `afsql_dd_run_query':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:231: undefined
reference to `dbi_conn_query'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:238: undefined
reference to `dbi_conn_error'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:254: undefined
reference to `dbi_result_free'
libsyslog-ng.a(afsql.o): In function `afsql_dd_insert_db':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:511: undefined
reference to `dbi_conn_quote_string_copy'
libsyslog-ng.a(afsql.o): In function `afsql_db_thread':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:610: undefined
reference to `dbi_conn_close'
libsyslog-ng.a(afsql.o): In function `afsql_dd_validate_table':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:323: undefined
reference to `dbi_result_get_field_idx'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:347: undefined
reference to `dbi_result_free'
libsyslog-ng.a(afsql.o): In function `afsql_dd_insert_db':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:531: undefined
reference to `dbi_conn_close'
libsyslog-ng.a(afsql.o): In function `afsql_dd_validate_table':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:347: undefined
reference to `dbi_result_free'
libsyslog-ng.a(afsql.o): In function `afsql_dd_insert_db':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:413: undefined
reference to `dbi_conn_new'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:416: undefined
reference to `dbi_conn_set_option'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:417: undefined
reference to `dbi_conn_set_option'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:418: undefined
reference to `dbi_conn_set_option'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:419: undefined
reference to `dbi_conn_set_option'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:420: undefined
reference to `dbi_conn_set_option'
libsyslog-ng.a(afsql.o):/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:421:
more undefined references to `dbi_conn_set_option' follow
libsyslog-ng.a(afsql.o): In function `afsql_dd_insert_db':
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:427: undefined
reference to `dbi_conn_connect'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:431: undefined
reference to `dbi_conn_error'
/usr/local/src/syslog-ng-2.9.0+20081022/src/afsql.c:441: undefined
reference to `dbi_conn_close'
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1
make[2]: Leaving directory `/usr/local/src/syslog-ng-2.9.0+20081022/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/syslog-ng-2.9.0+20081022'
make: *** [all] Error 2
Any idea how to fix this?
Thanks,
Mario
Balazs Scheidler wrote:
> sorry, some parts of the PE codebase remained, and I didn't test
> compiling the current state with SQL enabled, that's why it errored out.
>
> I've just pushed a patch that makes it work for me.
>
> On Fri, 2008-10-17 at 15:32 +0200, ml at bortal.de wrote:
>
>> Hi,
>>
>>
>>> The nightly snapshot went to the 2.1 directory, but now I've changed
>>> that. Tomorrow the 3.0 sources should appear in the nightly snapshot
>>> directory:
>>>
>>>
>>>
>> http://www.balabit.com/downloads/files/syslog-ng/sources/3.0/src-snapshot
>>
>> i am getting the following error:
>> --------------------------------------------
>> make[1]: Leaving directory `/usr/local/src/syslog-ng-2.9.0+20081017'
>> syslog-db:/usr/local/src/syslog-ng-2.9.0+20081017# make
>> make all-recursive
>> make[1]: Entering directory `/usr/local/src/syslog-ng-2.9.0+20081017'
>> Making all in src
>> make[2]: Entering directory
>> `/usr/local/src/syslog-ng-2.9.0+20081017/src'
>> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -pthread -I/usr/include/glib-2.0
>> -I/usr/lib/glib-2.0/include -I/usr/local/include/eventlog
>> -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
>> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall
>> -MT afsql.o -MD -MP -MF ".deps/afsql.Tpo" -c -o afsql.o afsql.c; \
>> then mv -f ".deps/afsql.Tpo" ".deps/afsql.Po"; else rm -f
>> ".deps/afsql.Tpo"; exit 1; fi
>> afsql.c: In function ‘afsql_dd_init’:
>> afsql.c:713: error: ‘server_mode’ undeclared (first use in this
>> function)
>> afsql.c:713: error: (Each undeclared identifier is reported only once
>> afsql.c:713: error: for each function it appears in.)
>> afsql.c:738: error: too many arguments to function ‘log_queue_new’
>> afsql.c:741: warning: implicit declaration of function
>> ‘log_queue_restore_queue’
>> afsql.c:746: warning: implicit declaration of function
>> ‘log_queue_get_filename’
>> afsql.c:746: warning: passing argument 2 of ‘evt_tag_str’ makes pointer
>> from integer without a cast
>> afsql.c: In function ‘afsql_dd_deinit’:
>> afsql.c:849: warning: implicit declaration of function
>> ‘log_queue_save_queue’
>> make[2]: *** [afsql.o] Error 1
>> make[2]: Leaving directory `/usr/local/src/syslog-ng-2.9.0+20081017/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/local/src/syslog-ng-2.9.0+20081017'
>> make: *** [all] Error 2
>>
>>
>>
>> Any hint?
>>
>> Thanks,
>> Mario
>>
>>
>>
>>
>>
More information about the syslog-ng
mailing list