On Mon, 01 Aug 2005 15:20:20 +0900, henman@it.to-be.co.jp wrote:
Purpose: To build emacs to run on cygwin, using cygwin's X11 and other libs.
This is not an attempt to build nt emacs.
Unix-like-xfc: CYGWIN_NT-5.1 1.5.18(0.132/4/2) 2005-07-02
os: Microsoft XP Professional version 5.1 SP1
Machine: IBM Think Centre
GNU Emacs 22.0.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars)
* This fatal build error occurs in the unmodified cvs code.
[snip]
Then make the bootstrap:
make bootstrap >~/bootstrap.log 2>&1
Then make bootstrap aborts with the following message:
---------------- excerpt where make failed:
gcc -DHAVE_CONFIG_H -I. -I../src -I/cygdrive/c/emacs/cvs/emacs/lib-src
-I/cygdrive/c/emacs/cvs/emacs/lib-src/../src -L/usr/X11R6/lib -g -O2
/cygdrive/c/emacs/cvs/emacs/lib-src/update-game-score.c
-DHAVE_SHARED_GAME_DIR="\"/usr/var/games/emacs\"" -o update-game-score
/cygdrive/c/DOCUME~1/my-name/LOCALS~1/Temp/ccWG22xU.o: In function `main':
/cygdrive/c/emacs/cvs/emacs/lib-src/update-game-score.c:216: undefined
reference to `_rpl_getopt'
/cygdrive/c/emacs/cvs/emacs/lib-src/update-game-score.c:219: undefined
reference to `_rpl_optind'
/cygdrive/c/emacs/cvs/emacs/lib-src/update-game-score.c:211: undefined
reference to `_rpl_optarg'
Note: By commenting out referrences to "update-game-score" on line # 110 and
the whole gcc compile oriented lines #251 and #252 in file
..../lib-src/Makefile, then "make bootstrap" will completes successfully.
Any ideas as to how to correct this will be appreciated.
This error is new (It did not occur on 2005-07-11).
This patch to Makefile.in (you must run configure again after
patching) fixes it:
*** /appl/src/emacs/lib-src/Makefile.in.~1.143.~ Mon Aug 1 16:58:38 2005
--- /appl/src/emacs/lib-src/Makefile.in Mon Aug 1 21:24:03 2005
***************
*** 463,469 ****
update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \
-DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
! $(LOADLIBES) -o update-game-score
/* These are NOT included in INSTALLABLES or UTILITIES.
See ../src/Makefile.in. */
--- 463,469 ----
update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \
-DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
! $(GETOPTOBJS) $(LOADLIBES) -o update-game-score
/* These are NOT included in INSTALLABLES or UTILITIES.
See ../src/Makefile.in. */
Diff finished. Mon Aug 1 21:24:52 2005
Ehud.