Received: (at submit) by bugs.debian.org; 23 Oct 1999 19:12:50 +0000 Received: (qmail 12260 invoked from network); 23 Oct 1999 19:12:49 -0000 Received: from drow.res.cmu.edu (128.2.160.32) by master.debian.org with SMTP; 23 Oct 1999 19:12:49 -0000 Received: from drow by drow.res.cmu.edu with local (Exim 3.03 #1 (Debian)) id 11f6db-0002dM-00; Sat, 23 Oct 1999 15:15:35 -0400 From: Daniel Jacobowitz To: Debian Bug Tracking System Subject: AC_FUNC_GETPGRP macro is broken X-Reportbug-Version: 0.37 X-Mailer: reportbug 0.37 Date: Sat, 23 Oct 1999 15:15:35 -0400 Message-Id: Package: autoconf Version: 2.13-12 Severity: normal In the test for whether getpgrp() takes an argument, we have the following code: #include #include int pid; int pg1, pg2, pg3, pg4; int ng, np, s, child; main() { pid = getpid(); pg1 = getpgrp(0); pg2 = getpgrp(); pg3 = getpgrp(pid); pg4 = getpgrp(1); Now, naturally, getpid() and getpgrp() are undeclared. If the tests are being run with a C++ compiler, as is the case in 'maildrop's configuration (AC_LANG_CPLUSPLUS), that's not a warning, it's an error. Adding the following to the top of the test fixes it: #ifdef __cplusplus extern "C" { #endif char getpid(); char getpgrp(); #ifdef __cplusplus } #endif -- System Information Debian Release: potato Architecture: powerpc Kernel: Linux drow.res.cmu.edu 2.3.18 #19 Sat Sep 11 18:16:48 EDT 1999 ppc Versions of packages autoconf depends on: ii debianutils 1.10 Miscellaneous utilities specific t ii m4 1.4-10 a macro processing language ii perl-5.004 [perl5] 5.004.05-1 Larry Wall's Practical Extracting ii perl-5.005 [perl5] 5.005.03-4 Larry Wall's Practical Extracting