[Comm] merlin и libdbi

taa shinobispb на gmail.com
Чт Фев 11 07:14:14 UTC 2010


Работаю с nagios, и возникла проблема при сборке дополнительного модуля 
merlin, для него требуется libdbi и libdbi-devel, который соответственно 
был установлен.
Пробовал устноавить на 5.1 и на 4.1 (для которого собрал libdbi, версий 
0.8.3, и 1.0 из сизифа), в любом случае выдает

make: Entering directory `/usr/src/RPM/BUILD/merlin-0.6.6'
     CC module.o
     CC hooks.o
module.c: In function 'nebmodule_init':
module.c:409: warning: ignoring return value of 'chdir', declared with 
attribute warn_unused_result
     CC control.o
     CC hash.o
sh gen-version.sh > version.c
     CC logging.o
     CC cfgfile.o
     CC ipc.o
     CC shared.o
ipc.c: In function 'ipc_binlog_add':
ipc.c:129: warning: ignoring return value of 'asprintf', declared with 
attribute warn_unused_result
ipc.c: In function 'ipc_send_event':
ipc.c:332: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
     CC io.o
     CC protocol.o
     CC data.o
     CC binlog.o
     CC status.o
     CC daemonize.o
     CC daemon.o
     CC net.o
daemon.c: In function 'import_objects_and_status':
daemon.c:247: warning: ignoring return value of 'asprintf', declared 
with attribute warn_unused_result
daemon.c:252: warning: ignoring return value of 'asprintf', declared 
with attribute warn_unused_result
daemon.c: In function 'polling_loop':
daemon.c:270: warning: 'result' is used uninitialized in this function
     CC sql.o
     CC db_updater.o
     CC version.o
     LINK merlin.so
     LINK merlind
status.o: In function `store_object_states':
/usr/src/RPM/BUILD/merlin-0.6.6/status.c:34: undefined reference to 
`dbi_result_get_numrows'
/usr/src/RPM/BUILD/merlin-0.6.6/status.c:42: undefined reference to 
`dbi_result_next_row'
/usr/src/RPM/BUILD/merlin-0.6.6/status.c:46: undefined reference to 
`dbi_result_get_string_copy_idx'
/usr/src/RPM/BUILD/merlin-0.6.6/status.c:47: undefined reference to 
`dbi_result_get_int_idx'
/usr/src/RPM/BUILD/merlin-0.6.6/status.c:48: undefined reference to 
`dbi_result_get_int_idx'
/usr/src/RPM/BUILD/merlin-0.6.6/status.c:42: undefined reference to 
`dbi_result_next_row'
sql.o: In function `sql_close':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:236: undefined reference to 
`dbi_conn_close'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:238: undefined reference to 
`dbi_shutdown'
sql.o: In function `sql_free_result':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:78: undefined reference to 
`dbi_result_free'
sql.o: In function `sql_error':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:72: undefined reference to 
`dbi_conn_error'
sql.o: In function `sql_init':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:178: undefined reference to 
`dbi_initialize'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:187: undefined reference to 
`dbi_driver_open'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:194: undefined reference to 
`dbi_conn_open'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:200: undefined reference to 
`dbi_conn_set_option'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:201: undefined reference to 
`dbi_conn_set_option'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:202: undefined reference to 
`dbi_conn_set_option'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:203: undefined reference to 
`dbi_conn_set_option'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:206: undefined reference to 
`dbi_conn_set_option'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:211: undefined reference to 
`dbi_conn_connect'
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:205: undefined reference to 
`dbi_conn_set_option_numeric'
sql.o: In function `run_query':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:90: undefined reference to 
`dbi_conn_query_null'
sql.o: In function `sql_escape':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:53: undefined reference to 
`dbi_conn_quote_string_copy'
sql.o: In function `sql_quote':
/usr/src/RPM/BUILD/merlin-0.6.6/sql.c:40: undefined reference to 
`dbi_conn_quote_string_copy'
collect2: ld returned 1 exit status
make: *** [merlind] Error 1
make: Leaving directory `/usr/src/RPM/BUILD/merlin-0.6.6'
error: Bad exit status from /usr/src/tmp/rpm-tmp.50817 (%build)


Есть идеи?


Подробная информация о списке рассылки community