unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Trouble linking under lib-src on FreeBSD 4.11
@ 2006-10-13  9:08 Jan D.
  2006-10-15  7:34 ` Jan D.
  0 siblings, 1 reply; 2+ messages in thread
From: Jan D. @ 2006-10-13  9:08 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-15  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-13  9:08 Trouble linking under lib-src on FreeBSD 4.11 Jan D.
2006-10-15  7:34 ` Jan D.

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).