From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Cannot link movemail on SunOS-5.5 in latest CVS Date: Mon, 27 May 2002 08:54:29 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200205262354.IAA21333@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1022457410 4996 127.0.0.1 (26 May 2002 23:56:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 26 May 2002 23:56:50 +0000 (UTC) Cc: acs@xemacs.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17C7sY-0001IT-00 for ; Mon, 27 May 2002 01:56:50 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17C89d-0006ZT-00 for ; Mon, 27 May 2002 02:14:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17C7sw-0005E6-00; Sun, 26 May 2002 19:57:14 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17C7qK-000560-00; Sun, 26 May 2002 19:54:32 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g4QNsUl10640; Mon, 27 May 2002 08:54:30 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g4QNsT913847; Mon, 27 May 2002 08:54:29 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id IAA21333; Mon, 27 May 2002 08:54:29 +0900 (JST) Original-To: rms@gnu.org In-Reply-To: message from Richard Stallman on Sun, 26 May 2002 16:25:31 -0600 (MDT) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4409 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4409 Richard Stallman writes: > There have not been a lot of changes in movemail lately. > I don't see any changes that would cause this. > It looks like Sun did something that broke it. > It is exceedingly strange that simply renaming the Make variable > LIBMAIL to MAIL_LIB would fix the problem. A more conventional > name to use for that variable would be LIBS_MAIL. Does that name > work? lib-src/movemail.c includes src/config.h, and src/config.h defines LIBMAIL as below on Solaris. /* Define to -llockfile if it is usable. */ #define LIBMAIL -llockfile And, that is perhaps because of this code in configure.in. ---------------------------------------------------------------------- # Check for mail-locking functions in a "mail" library AC_CHECK_LIB(mail, maillock) dnl Debian, at least: dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)]) AC_CHECK_LIB(lockfile, maillock) # If we have the shared liblockfile, assume we must use it for mail # locking (e.g. Debian). If we couldn't link against liblockfile # (no liblockfile.a installed), ensure that we don't need to. if test "$ac_cv_lib_lockfile_maillock" = no; then dnl This works for files generally, not just executables. dnl Should we look elsewhere for it? Maybe examine /etc/ld.so.conf? AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) if test $ac_cv_prog_liblockfile = yes; then AC_MSG_ERROR([Shared liblockfile found but can't link against it. This probably means that movemail could lose mail. There may be a \`development' package to install containing liblockfile.]) else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.]) fi else : fi ---------------------------------------------------------------------- So, I think it's just an incidental collision of macro name. Changing LIBMAIL to LIBS_MAIL should also work. --- Ken'ichi HANDA handa@etl.go.jp