* [Comm] merlin и libdbi
@ 2010-02-11 7:14 taa
2010-02-11 11:18 ` Boris Savelev
0 siblings, 1 reply; 4+ messages in thread
From: taa @ 2010-02-11 7:14 UTC (permalink / raw)
To: community
Работаю с 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)
Есть идеи?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] merlin и libdbi
2010-02-11 7:14 [Comm] merlin и libdbi taa
@ 2010-02-11 11:18 ` Boris Savelev
2010-02-11 13:14 ` Michael Shigorin
2010-02-11 14:01 ` taa
0 siblings, 2 replies; 4+ messages in thread
From: Boris Savelev @ 2010-02-11 11:18 UTC (permalink / raw)
To: ALT Linux Community general discussions
2010/2/11 taa <shinobispb@gmail.com>:
> Работаю с nagios, и возникла проблема при сборке дополнительного модуля
> merlin, для него требуется libdbi и libdbi-devel, который соответственно был
> установлен.
> Пробовал устноавить на 5.1 и на 4.1 (для которого собрал libdbi, версий
> 0.8.3, и 1.0 из сизифа), в любом случае выдает
>
> Есть идеи?
--- Makefile.orig 2009-10-27 19:15:21 +0300
+++ Makefile 2010-02-11 14:17:00 +0300
@@ -35,10 +35,10 @@
$(QUIET_LINK)$(CC) $(LDFLAGS) $^ -o $@
$(PROG): $(DAEMON_OBJS)
- $(QUIET_LINK)$(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) $(LIBS) $^ -o $@
+ $(QUIET_LINK)$(CC) $^ -o $@ $(LDFLAGS) $(DAEMON_LDFLAGS) $(LIBS)
$(NEB): $(MODULE_OBJS)
- $(QUIET_LINK)$(CC) $(MOD_LDFLAGS) $(LDFLAGS) $^ -o $@
+ $(QUIET_LINK)$(CC) $^ -o $@ $(MOD_LDFLAGS) $(LDFLAGS)
%.o: %.c
$(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
примерно так
--
Boris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] merlin и libdbi
2010-02-11 11:18 ` Boris Savelev
@ 2010-02-11 13:14 ` Michael Shigorin
2010-02-11 14:01 ` taa
1 sibling, 0 replies; 4+ messages in thread
From: Michael Shigorin @ 2010-02-11 13:14 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Thu, Feb 11, 2010 at 02:18:10PM +0300, Boris Savelev wrote:
> > Есть идеи?
> - $(QUIET_LINK)$(CC) $(MOD_LDFLAGS) $(LDFLAGS) $^ -o $@
> + $(QUIET_LINK)$(CC) $^ -o $@ $(MOD_LDFLAGS) $(LDFLAGS)
(http://www.altlinux.org/UpStream/AsNeeded)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] merlin и libdbi
2010-02-11 11:18 ` Boris Savelev
2010-02-11 13:14 ` Michael Shigorin
@ 2010-02-11 14:01 ` taa
1 sibling, 0 replies; 4+ messages in thread
From: taa @ 2010-02-11 14:01 UTC (permalink / raw)
To: ALT Linux Community general discussions
On 11.02.2010 15:18, Boris Savelev wrote:
> 2010/2/11 taa<shinobispb@gmail.com>:
>
>> Работаю с nagios, и возникла проблема при сборке дополнительного модуля
>> merlin, для него требуется libdbi и libdbi-devel, который соответственно был
>> установлен.
>> Пробовал устноавить на 5.1 и на 4.1 (для которого собрал libdbi, версий
>> 0.8.3, и 1.0 из сизифа), в любом случае выдает
>>
>> Есть идеи?
>>
> --- Makefile.orig 2009-10-27 19:15:21 +0300
> +++ Makefile 2010-02-11 14:17:00 +0300
> @@ -35,10 +35,10 @@
> $(QUIET_LINK)$(CC) $(LDFLAGS) $^ -o $@
>
> $(PROG): $(DAEMON_OBJS)
> - $(QUIET_LINK)$(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) $(LIBS) $^ -o $@
> + $(QUIET_LINK)$(CC) $^ -o $@ $(LDFLAGS) $(DAEMON_LDFLAGS) $(LIBS)
>
> $(NEB): $(MODULE_OBJS)
> - $(QUIET_LINK)$(CC) $(MOD_LDFLAGS) $(LDFLAGS) $^ -o $@
> + $(QUIET_LINK)$(CC) $^ -o $@ $(MOD_LDFLAGS) $(LDFLAGS)
>
> %.o: %.c
> $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
>
> примерно так
>
>
On 11.02.2010 17:14, Michael Shigorin wrote:
> On Thu, Feb 11, 2010 at 02:18:10PM +0300, Boris Savelev wrote:
>
>>> Есть идеи?
>>>
>> - $(QUIET_LINK)$(CC) $(MOD_LDFLAGS) $(LDFLAGS) $^ -o $@
>> + $(QUIET_LINK)$(CC) $^ -o $@ $(MOD_LDFLAGS) $(LDFLAGS)
>>
> (http://www.altlinux.org/UpStream/AsNeeded)
>
>
Огромное спасибо, помогло
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-11 14:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-11 7:14 [Comm] merlin и libdbi taa
2010-02-11 11:18 ` Boris Savelev
2010-02-11 13:14 ` Michael Shigorin
2010-02-11 14:01 ` taa
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git