From owner-freebsd-ports Wed Sep 9 14:31:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA21757 for freebsd-ports-outgoing; Wed, 9 Sep 1998 14:31:13 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from couatl.uchicago.edu (couatl.uchicago.edu [128.135.21.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA21747; Wed, 9 Sep 1998 14:31:03 -0700 (PDT) (envelope-from sfarrell@couatl.uchicago.edu) Received: (from sfarrell@localhost) by couatl.uchicago.edu (8.9.1/8.9.0) id QAA02161; Wed, 9 Sep 1998 16:31:05 -0500 (CDT) To: Gary Jennejohn Cc: freebsd ports Subject: Re: ports/7861 References: <199809092113.OAA09624@freefall.freebsd.org> From: stephen farrell Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: 09 Sep 1998 16:31:05 -0500 In-Reply-To: Gary Jennejohn's message of "Wed, 9 Sep 1998 14:13:48 -0700 (PDT)" Message-ID: <871zplt1ly.fsf@couatl.uchicago.edu> Lines: 87 X-Mailer: Gnus v5.6.42/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Gary Jennejohn writes: > Synopsis: xemacs20 port fails to build > > State-Changed-From-To: open-analyzed > State-Changed-By: gj > State-Changed-When: Wed Sep 9 14:11:19 PDT 1998 > State-Changed-Why: > I just built xemacs20 under -current with no problem. > > Looks like the configure failed. It should dynamically figure out whether > getpgrp takes an argument or not. > > What's in your config.log for the getpgrp test ? I think this has to do with lesstif, actually. If I config w/o motif (--with-dialogs=athena), then all ok... i think lesstif-0.86.0 was built with gcc28 inadvertantly, and that this is causing the problem (though xscreensaver uses the new lesstif w/o any problems, so ??)--this is just a hunch. configure:8082: checking whether getpgrp takes no argument configure:8140: cc -o conftest -O -I/usr/local/include -I/usr/X11R6/includ e -L/usr/local/lib -L/usr/X11R6/lib -R/usr/local/lib:/usr/X11R6/lib conftest. c -lXm -lpng -ljpeg -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lkvm -lm -l util -lxpg4 1>&5 Bus error - core dumped configure: failed program was: #line 8085 "configure" #include "confdefs.h" /* * If this system has a BSD-style getpgrp(), * which takes a pid argument, exit unsuccessfully. * * Snarfed from Chet Ramey's bash pgrp.c test program */ #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); /* * If all of these values are the same, it's pretty sure that * we're on a system that ignores getpgrp's first argument. */ if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) exit(0); child = fork(); if (child < 0) exit(1); else if (child == 0) { np = getpid(); /* * If this is Sys V, this will not work; pgrp will be * set to np because setpgrp just changes a pgrp to be * the same as the pid. */ setpgrp(np, pg1); ng = getpgrp(0); /* Same result for Sys V and BSD */ if (ng == pg1) { exit(1); } else { exit(0); } } else { wait(&s); exit(s>>8); } } -- Steve Farrell To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message