X-Loop: help-debbugs@HIDDEN Subject: bug#15471: "hardcode_directy=yes" on OpenBSD causes build DBus failure Resent-From: Chengwei Yang <chengwei.yang.cn@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-libtool@HIDDEN Resent-Date: Fri, 27 Sep 2013 06:28:09 +0000 Resent-Message-ID: <handler.15471.B.138026325229022 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 15471 X-GNU-PR-Package: libtool X-GNU-PR-Keywords: To: 15471 <at> debbugs.gnu.org Cc: Simon McVittie <simon.mcvittie@HIDDEN> X-Debbugs-Original-To: bug-libtool@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.138026325229022 (code B ref -1); Fri, 27 Sep 2013 06:28:09 +0000 Received: (at submit) by debbugs.gnu.org; 27 Sep 2013 06:27:32 +0000 Received: from localhost ([127.0.0.1]:39593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VPRWU-0007Xu-1s for submit <at> debbugs.gnu.org; Fri, 27 Sep 2013 02:27:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55063) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <chengwei.yang.cn@HIDDEN>) id 1VP5ua-000355-GK for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 03:22:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <chengwei.yang.cn@HIDDEN>) id 1VP5uV-00015g-Ce for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 03:22:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <chengwei.yang.cn@HIDDEN>) id 1VP5uV-00015c-8Z for submit <at> debbugs.gnu.org; Thu, 26 Sep 2013 03:22:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <chengwei.yang.cn@HIDDEN>) id 1VP5uQ-0003fr-21 for bug-libtool@HIDDEN; Thu, 26 Sep 2013 03:22:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <chengwei.yang.cn@HIDDEN>) id 1VP5uK-000142-US for bug-libtool@HIDDEN; Thu, 26 Sep 2013 03:22:46 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:37130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <chengwei.yang.cn@HIDDEN>) id 1VP5uK-00013r-NR for bug-libtool@HIDDEN; Thu, 26 Sep 2013 03:22:40 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so921129pad.16 for <bug-libtool@HIDDEN>; Thu, 26 Sep 2013 00:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=t7WKGFDUjWheyJ54hMXWtkxi1lrzfK6I7nlgozOc0n8=; b=GYW3y2eCbnJmO7h+kKuL/pFIo2N5k3J97QL5Z6ihuREaJ5LmKJruPqANz2/QaFgV8k 0x32O6OGGTs7/T1W0FYtE5eRN5hk6rw3k6QHh9qPeiOmtRi+JQCqk4Vbl5HruTl88ycr Y5WE6wtimjarqIyYKtO4JKc7GCyeWkqiuuSSLgK9jE6mzfKPApD8dTkNlLdInBtstsrs H8LDDPUUYdMvIh6rJ3qKJ7yJhhf5wAMRdI11Tur2EuUt3B9brLwmeRoQHkl7elxYSzZl HMJDx7N00mweExzREyML6ll/J3BorJMEg7cjOKv4E6rodDrBvipjQNjeI4PEfqAgAVc2 GFHg== X-Received: by 10.68.40.169 with SMTP id y9mr1516302pbk.193.1380180159388; Thu, 26 Sep 2013 00:22:39 -0700 (PDT) Received: from localhost (shzdmzpr01-ext.sh.intel.com. [192.102.204.36]) by mx.google.com with ESMTPSA id xe9sm3048522pab.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 26 Sep 2013 00:22:38 -0700 (PDT) Date: Thu, 26 Sep 2013 15:22:32 +0800 From: Chengwei Yang <chengwei.yang.cn@HIDDEN> Message-ID: <20130926072232.GA25171@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Fri, 27 Sep 2013 02:27:14 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -4.0 (----) Hi List, When I was trying to build dbus (http://cgit.freedesktop.org/dbus/dbus/) master branch on OpenBSD 5.3, with GNU libtool 2.4.2 installed, I got below failure. (https://bugs.freedesktop.org/show_bug.cgi?id=69801) ------------------------>8---------------->8-------------------------- gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/X11R6/include -DDBUS_COMPILATION -DDBUS_MACHINE_UUID_FILE=\""/usr/local/var/lib/dbus/machine-id"\" -Wall -Wextra -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -fno-common -fno-strict-aliasing -I/usr/local/include -MT dbus-run-session.o -MD -MP -MF .deps/dbus-run-session.Tpo -c -o dbus-run-session.o dbus-run-session.c mv -f .deps/dbus-run-session.Tpo .deps/dbus-run-session.Po /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wextra -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -fno-common -fno-strict-aliasing -I/usr/local/include -export-dynamic -L/usr/local/lib -o dbus-run-session dbus-run-session.o ../dbus/libdbus-1.la libtool: link: gcc -Wall -Wextra -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -fno-common -fno-strict-aliasing -I/usr/local/include -o .libs/dbus-run-session dbus-run-session.o -Wl,-E -L/usr/local/lib -L../dbus/.libs -ldbus-1 -lpthread -Wl,-rpath,/usr/local/lib /usr/local/lib/libdbus-1.so.10.2: warning: vsprintf() is often misused, please use vsnprintf() dbus-run-session.o(.text+0x1eb): In function `exec_dbus_daemon': : warning: sprintf() is often misused, please use snprintf() dbus-run-session.o(.text+0x9f5): In function `main': : undefined reference to `dbus_setenv' dbus-run-session.o(.text+0xa0a): In function `main': : undefined reference to `dbus_setenv' dbus-run-session.o(.text+0xa1f): In function `main': : undefined reference to `dbus_setenv' dbus-run-session.o(.text+0xa34): In function `main': : undefined reference to `dbus_setenv' dbus-run-session.o(.text+0xa49): In function `main': : undefined reference to `dbus_setenv' collect2: ld returned 1 exit status gmake[2]: *** [dbus-run-session] Error 1 gmake[2]: Leaving directory `/home/chengwei/Upstream/dbus.git/tools' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/chengwei/Upstream/dbus.git' gmake: *** [all] Error 2 ------------------------->8--------------->8---------------------- From the above log, it says libtool was trying to link /usr/local/lib/libdbus-1.so.10.2 rather than the one in local build directory. Since all the non-built-in libs installed with prefix /usr/local, so I configured dbus with "CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib", so that all the required headers/libs can pass check when doing configure. After did some investigations, I found that it's hardcod_direct=yes cause the build failure and try to link to the old installed library which hasn't the new introduced symbol. $ sed -ne '5467,+4p' m4/libtool.m4 openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes Do you consider this is a bug? -- Thanks, Chengwei
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Chengwei Yang <chengwei.yang.cn@HIDDEN> Subject: bug#15471: Acknowledgement ("hardcode_directy=yes" on OpenBSD causes build DBus failure) Message-ID: <handler.15471.B.138026325229022.ack <at> debbugs.gnu.org> References: <20130926072232.GA25171@HIDDEN> X-Gnu-PR-Message: ack 15471 X-Gnu-PR-Package: libtool Reply-To: 15471 <at> debbugs.gnu.org Date: Fri, 27 Sep 2013 06:28:11 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-libtool@HIDDEN If you wish to submit further information on this problem, please send it to 15471 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 15471: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15471 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.