unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make bootstrap fails with wrong number of args for getpgrp
@ 2002-11-28 11:44 Kai Großjohann
  2002-11-28 12:18 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2002-11-28 11:44 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]

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 <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #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)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: kai.sh --]
[-- Type: text/x-sh, Size: 2991 bytes --]

#!/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

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

end of thread, other threads:[~2002-11-29  6:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-28 11:44 make bootstrap fails with wrong number of args for getpgrp Kai Großjohann
2002-11-28 12:18 ` Andreas Schwab
2002-11-28 13:48   ` Kai Großjohann
2002-11-29  5:00   ` Karl Eichwalder
2002-11-29  6:25     ` Miles Bader

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).