From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: make bootstrap fails with wrong number of args for getpgrp Date: Thu, 28 Nov 2002 12:44:36 +0100 Organization: University of Dortmund, Germany Sender: emacs-devel-admin@gnu.org Message-ID: <84y97dx6jf.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1038484142 15353 80.91.224.249 (28 Nov 2002 11:49:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2002 11:49:02 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18HNAC-0003z0-00 for ; Thu, 28 Nov 2002 12:49:00 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18HNHE-0001Lf-00 for ; Thu, 28 Nov 2002 12:56:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18HN6v-0005LI-00; Thu, 28 Nov 2002 06:45:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18HN64-0005Df-00 for emacs-devel@gnu.org; Thu, 28 Nov 2002 06:44:44 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18HN61-0005DQ-00 for emacs-devel@gnu.org; Thu, 28 Nov 2002 06:44:43 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18HN61-0005DM-00 for emacs-devel@gnu.org; Thu, 28 Nov 2002 06:44:41 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18HN3s-0003OV-00 for ; Thu, 28 Nov 2002 12:42:28 +0100 Original-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18HN3q-0003OF-00 for ; Thu, 28 Nov 2002 12:42:26 +0100 Original-Path: not-for-mail Original-Lines: 216 Original-NNTP-Posting-Host: pd9e1e902.dip.t-dialin.net Original-X-Trace: main.gmane.org 1038483746 13032 217.225.233.2 (28 Nov 2002 11:42:26 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Thu, 28 Nov 2002 11:42:26 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:NLLIEyRPEkQljmlN22kTTMDMSio= Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9729 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9729 --=-=-= Here is the tail of the output of my usual build script (which starts with distclean and then bootstraps): (The full build script is attached below my signature.) /---- | gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/export/home/kai/work/gnu/emacs/src -D_BSD_SOURCE -I/usr/X11R6/include -g -O2 xsmfns.c | gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/export/home/kai/work/gnu/emacs/src -D_BSD_SOURCE -I/usr/X11R6/include -g -O2 emacs.c | emacs.c: In function `main': | emacs.c:1068: too many arguments to function `getpgrp' | emacs.c: In function `shut_down_emacs': | emacs.c:1969: too many arguments to function `getpgrp' | make[1]: *** [emacs.o] Error 1 | make[1]: Leaving directory `/export/home/kai/work/gnu/emacs/src' | make: *** [bootstrap] Error 2 \---- I found out that EMACS_GETPGRP is called here, which is defined based on GETPGRP_VOID. I also found out that configure is correctly auto-detecting this, it seems: /----[ from config.log ] | configure:12249: checking whether getpgrp requires zero arguments | configure:12268: gcc -c -I/usr/X11R6/include -O2 -I/usr/X11R6/include -D_BSD_SOURCE conftest.c >&5 | configure: In function `main': | configure:12293: too many arguments to function `getpgrp' | configure:12271: $? = 1 | configure: failed program was: | #line 12255 "configure" | #include "confdefs.h" | #include | #if HAVE_SYS_TYPES_H | # include | #endif | #if HAVE_SYS_STAT_H | # include | #endif | #if STDC_HEADERS | # include | # include | #else | # if HAVE_STDLIB_H | # include | # endif | #endif | #if HAVE_STRING_H | # if !STDC_HEADERS && HAVE_MEMORY_H | # include | # endif | # include | #endif | #if HAVE_STRINGS_H | # include | #endif | #if HAVE_INTTYPES_H | # include | #else | # if HAVE_STDINT_H | # include | # endif | #endif | #if HAVE_UNISTD_H | # include | #endif | int | main () | { | getpgrp (0); | ; | return 0; | } | configure:12288: result: yes \---- But still, it fails. `rgrep' for GETPGRP_VOID shows me that this symbol is not defined in any file, so maybe configure wasn't using the result of the check? -- ~/.signature is: umop ap!sdn (Frank Nobis) --=-=-= Content-Type: text/x-sh Content-Disposition: attachment; filename=kai.sh #!/bin/sh MAKEINFO=gmakeinfo export MAKEINFO mode="unknown" case x"$1" in xa*) mode=all ;; xi*) mode=install ;; xj*) mode=justinstall ;; xcont*) mode=continue ;; xc*) mode=configure ;; xr*) mode=rerun ;; esac if [ "$mode" = "unknown" ]; then echo "Usage: $0 { all | install | justinstall | configure | rerun }" echo "configure means just run the configure script" echo "all means make clean, run configure, run make" echo "install means make install, too" echo "justinstall means omit the all part" exit 2 fi if [ "$mode" = "all" -o "$mode" = "install" ]; then echo '***' echo make distclean echo '***' make distclean #autoheader || exit 3 echo '***' echo autoconf echo '***' autoconf || exit 3 #( cd lispref ; autoconf ) || exit 3 fi case "$mode" in install|continue|all) echo '***' echo ./configure echo '***' ./configure --with-x \ --with-x-libraries=/usr/X11R6/lib \ --with-x-includes=/usr/X11R6/include \ --with-xpm --with-jpeg \ --with-tiff --with-gif --with-png \ --prefix=$HOME/sw/emacs-21.0 \ || exit 4 ;; rerun) echo '***' echo ./configure echo '***' ./configure --with-x \ --with-x-libraries=/usr/X11R6/lib \ --with-x-includes=/usr/X11R6/include \ --without-xpm --without-jpeg \ --without-tiff --without-gif --without-png \ --prefix=$HOME/sw/emacs-21.0 \ || exit 4 echo '***' echo make echo '***' make || exit 5 install -m 755 src/emacs $HOME/sw/emacs-21.0/bin/emacs.small ;; esac if [ "$mode" = "all" -o "$mode" = "install" ]; then echo '***' echo make bootstrap echo '***' make MAKEINFO=$MAKEINFO bootstrap || exit 5 #( cd lispref ; make elisp ) || exit 5 #( cd lispref ; make ) || exit 5 fi if [ "$mode" = "continue" ]; then echo '***' echo make all echo '***' make MAKEINFO=$MAKEINFO all || exit 5 #( cd lispref ; make elisp ) || exit 5 #( cd lispref ; make ) || exit 5 fi if [ "$mode" = "install" -o "$mode" = "justinstall" ]; then rm -rf $HOME/sw/emacs-21.0.SAV mv $HOME/sw/emacs-21.0 $HOME/sw/emacs-21.0.SAV #(cd lispref ; make install ) || exit 6 echo '***' echo make install echo '***' make MAKEINFO=$MAKEINFO install || exit 6 oldpwd=`pwd` cd $HOME/sw/emacs-21.0/share/emacs || exit 7 mv site-lisp .hidden.site-lisp ln -s /usr/sw/emacs/21.2/share/emacs/site-lisp ln -s /usr/sw/emacs/21.2/share/emacs/site-info cd $HOME/sw/emacs-21.0/bin ln -s /usr/sw/emacs/21.2/bin/starttls ln -s /usr/sw/emacs/21.2/bin/ra-index ln -s /usr/sw/emacs/21.2/bin/ra-retrieve cd $oldpwd #( cd lispref ; make install ) || exit 7 echo '***' echo make tags echo '***' make tags || exit 8 echo '***' echo gnuserv echo '***' (cd ../misc/gnuserv-3.12.4 ; make install) || exit 9 fi --=-=-=--