From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Trouble linking under lib-src on FreeBSD 4.11 Date: Sun, 15 Oct 2006 09:34:52 +0200 Message-ID: <4531E49C.1090200@swipnet.se> References: <452F578D.7020306@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1160897725 29820 80.91.229.2 (15 Oct 2006 07:35:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Oct 2006 07:35:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 15 09:35:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GZ0Wq-0001oS-3n for ged-emacs-devel@m.gmane.org; Sun, 15 Oct 2006 09:35:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZ0Wp-0006F1-9Q for ged-emacs-devel@m.gmane.org; Sun, 15 Oct 2006 03:35:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GZ0We-0006Em-Iu for emacs-devel@gnu.org; Sun, 15 Oct 2006 03:35:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GZ0Wd-0006EK-2i for emacs-devel@gnu.org; Sun, 15 Oct 2006 03:35:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZ0Wc-0006EH-Vx for emacs-devel@gnu.org; Sun, 15 Oct 2006 03:35:11 -0400 Original-Received: from [81.228.9.179] (helo=av6-1-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GZ0fT-0002T8-Dn for emacs-devel@gnu.org; Sun, 15 Oct 2006 03:44:19 -0400 Original-Received: by av6-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 1479437F94; Sun, 15 Oct 2006 09:35:09 +0200 (CEST) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av6-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 0334E37F81 for ; Sun, 15 Oct 2006 09:35:09 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id DA7F637E45 for ; Sun, 15 Oct 2006 09:35:08 +0200 (CEST) User-Agent: Thunderbird 1.5.0.7 (X11/20060922) Original-To: Emacs-Devel In-Reply-To: <452F578D.7020306@swipnet.se> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60751 Archived-At: Hello. This turned out to be a misconfigured system. Sorry for the noice. Jan D. Jan D. skrev: > Hello. > > FreeBSD 4.11 does not seem to have a getopt_long, so lib-src/getopt1.c > is compiled. However, src/config.h sets > > /* Define to rpl_ if the getopt replacement functions and variables > should be > used. */ > #define __GETOPT_PREFIX rpl_ > > > so instead of making a getopt_long function in getopt1.c, it becomes > rpl_getopt_long. > > But etags, emacsclient and other stuff in lib-src calls getopt_long, not > rpl_getopt_long, so I get: > > gcc -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib > -DHAVE_CONFIG_H -I. -I../src -I/users/jan/src/emacs/lib-src > -I/users/jan/src/emacs/lib-src/../src -g -O2 -DVERSION="\"22.0.50\"" > /users/jan/src/emacs/lib-src/etags.c getopt.o getopt1.o regex.o > -lutil -lc -o etags > /tmp/ccJRP6DB.o: In function `main': > /users/jan/src/emacs/lib-src/etags.c:1276: undefined reference to > `getopt_long' > *** Error code 1 > > So what is the correct thing to do here? Either fix etags, emacsclient > and so on so they check fro GETOPT_PREFIX, or fix m4/getopt.m4 so it > does not define GETOPT_PREFIX? > > Jan D. > > >