all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Subject: Trouble linking under lib-src on FreeBSD 4.11
Date: Fri, 13 Oct 2006 11:08:29 +0200	[thread overview]
Message-ID: <452F578D.7020306@swipnet.se> (raw)

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.

             reply	other threads:[~2006-10-13  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13  9:08 Jan D. [this message]
2006-10-15  7:34 ` Trouble linking under lib-src on FreeBSD 4.11 Jan D.

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=452F578D.7020306@swipnet.se \
    --to=jan.h.d@swipnet.se \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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.