All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Meyering <jim@meyering.net>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] Avoid link failure...
Date: Fri, 19 Jun 2009 19:19:15 +0200	[thread overview]
Message-ID: <87y6row38s.fsf@meyering.net> (raw)

When building from sources (master.git), against just-installed-to-
private hierarchy headers/libs from corosync and openais, I get this
failure:

libtool: link: gcc -I/p/p/coro/include -g -O2 -O2 -ggdb3 -Wall -Wshadow -Wmissin
g-prototypes -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-stat
ement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing
-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-lon
g -Wno-strict-aliasing -o confdb2ldif confdb2ldif-confdb2ldif.o  -L/p/p/coro/lib
 -lconfdb
/usr/bin/ld: warning: libcoroipcc.so.4, needed by /p/p/coro/lib/libconfdb.so, no
t found (try using -rpath or -rpath-link)
/p/p/coro/lib/libconfdb.so: undefined reference to `coroipcc_fd_get at COROSYNC_COR
OIPCC_3.0'
/p/p/coro/lib/libconfdb.so: undefined reference to `coroipcc_dispatch_get'
/p/p/coro/lib/libconfdb.so: undefined reference to `coroipcc_dispatch_put'
/p/p/coro/lib/libconfdb.so: undefined reference to `coroipcc_service_connect at COR
OSYNC_COROIPCC_3.0'
/p/p/coro/lib/libconfdb.so: undefined reference to `coroipcc_msg_send_reply_rece
ive at COROSYNC_COROIPCC_3.0'
/p/p/coro/lib/libconfdb.so: undefined reference to `coroipcc_service_disconnect@
COROSYNC_COROIPCC_3.0'
collect2: ld returned 1 exit status
make[3]: *** [confdb2ldif] Error 1
make[3]: Leaving directory `/h/meyering/w/co/cluster/config/tools/ldap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/h/meyering/w/co/cluster/config/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/h/meyering/w/co/cluster/config'
make: *** [all-recursive] Error 1
[Exit 2]

Here's the patch:

From aa504c6bcd3835bcd67e1ce8736e21132f0c43bf Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Fri, 19 Jun 2009 19:16:52 +0200
Subject: [PATCH] Avoid build failure when building against "make-installed-to-prefix"

corosync+openais trees.  i.e., I get /usr/bin/ld: warning: \
libcoroipcc.so.4, needed by /p/p/coro/lib/libconfdb.so, not found
* config/tools/ldap/Makefile.am (confdb2ldif_LDFLAGS): Append -lcoroipcc.
---
 config/tools/ldap/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config/tools/ldap/Makefile.am b/config/tools/ldap/Makefile.am
index 1c5c4a8..30a4c32 100644
--- a/config/tools/ldap/Makefile.am
+++ b/config/tools/ldap/Makefile.am
@@ -6,4 +6,4 @@ confdb2ldif_CPPFLAGS	= -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64

 confdb2ldif_CFLAGS	= $(confdb_CFLAGS)

-confdb2ldif_LDFLAGS	= $(confdb_LIBS)
+confdb2ldif_LDFLAGS	= $(confdb_LIBS) -lcoroipcc
--
1.6.3.2.416.g04d0



             reply	other threads:[~2009-06-19 17:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 17:19 Jim Meyering [this message]
2009-06-20 12:32 ` [Cluster-devel] [PATCH] Avoid link failure Fabio M. Di Nitto
2009-06-20 16:23   ` Steven Dake
2009-06-20 17:57     ` Fabio M. Di Nitto
2009-06-21  8:18       ` Jim Meyering
2009-06-21  8:26         ` Fabio M. Di Nitto
2009-06-21 13:08           ` Jim Meyering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6row38s.fsf@meyering.net \
    --to=jim@meyering.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.