From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: undefined reference getopt_long Date: Sat, 01 Sep 2007 16:21:17 -0400 Message-ID: References: <18130.61461.588478.572113@blade3.toledo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188678099 31335 80.91.229.12 (1 Sep 2007 20:21:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2007 20:21:39 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Daniel C. Bastos" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 01 22:21:37 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRZTJ-0000ba-Nl for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Sep 2007 22:21:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRZTI-0002jP-Fd for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Sep 2007 16:21:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRZTG-0002it-H9 for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2007 16:21:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRZTG-0002iU-0M for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2007 16:21:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRZTF-0002iR-QU for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2007 16:21:29 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRZTF-0005Tz-IX for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2007 16:21:29 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IRZT3-0006M2-M4; Sat, 01 Sep 2007 16:21:17 -0400 X-Spook: mania Uzi security Etacs SHA Cohiba rs9512c North Korea X-Ran: D4(gN$$R?EA_`IhOTo],v~l`";&`\|`S2o{{,nN%Uq;B\>mR6o?'iBFhfW/w:)))}QegNg X-Hue: red X-Attribution: GM In-Reply-To: <18130.61461.588478.572113@blade3.toledo.com> (Daniel C. Bastos's message of "Mon, 27 Aug 2007 11:39:01 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16473 Archived-At: "Daniel C. Bastos" wrote: > gcc -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib -DHAVE_CONFIG_H -I. -I../src -I/home/dbastos/tmp/emacs/lib-src -I/home/dbastos/tmp/emacs/lib-src/../src -Wl,-znocombreloc -L/usr/X11R6/lib -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib -g -O2 -DEMACS_NAME="\"GNU Emacs"\" -DVERSION="\"22.1.50\"" /home/dbastos/tmp/emacs/lib-src/etags.c getopt.o getopt1.o regex.o -lutil -lc -o etags > /tmp/cc86z2lb.o: In function `main': > /home/dbastos/tmp/emacs/lib-src/etags.c(.text+0x71f): undefined reference to `getopt_long' I don't know much about this, so I might not help much. lib-src/ contains some getopt* files that ought to provide a definition of getopt_long if your system does not have one. Can you figure out why they are not working for you? getopt1.c contains a definition of getopt_long, and your command-line above shows getopt1.o being included in the compile command. Did the file getopt.h in your lib-src directory get generated? Is etags.c finding it when it gets compiled? What are the values of GETOPT_H and GETOPTDEPS in your lib-src/Makefile?