From owner-freebsd-current Tue Jun 16 19:19:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15940 for freebsd-current-outgoing; Tue, 16 Jun 1998 19:19:04 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from shaman.lycaeum.org (shaman.lycaeum.org [207.66.171.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15927 for ; Tue, 16 Jun 1998 19:19:02 -0700 (PDT) (envelope-from edmond@shaman.lycaeum.org) Received: from localhost (edmond@localhost) by shaman.lycaeum.org (Partyon/dude!) with SMTP id TAA11973; Tue, 16 Jun 1998 19:18:39 -0700 (PDT) Date: Tue, 16 Jun 1998 19:18:39 -0700 (PDT) From: "Andrew N. Edmond (Nero)" To: John Birrell cc: current@FreeBSD.ORG, monty@tcx.se Subject: is libc_r broken in 980520-SNAP? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been working with Monty at www.tcx.se (makers of MySQL - the best free SQL database, ever :), and we've been having a very difficult time with the libc_r in 980520-SNAP (clean install). Monty writes: > It looks like the current -lc_r library is broken ! > > You can mail some freebsd developer the following test program ? > This works if not linked with -lc_r. When linked with -lc_r > this hangs ! > > Doesn't work with: > > gcc -o conftest -g -O2 conftest.c -lm -lcompat -lcrypt -lc_r > > > cat conftest.c > #line 3484 "configure" > #include "confdefs.h" > /* Exit 0 (true) if wait returns something other than -1, > i.e. the pid of the child, which means that wait was restarted > after getting the signal. */ > #include > #include > ucatch (isig) { } > main () { > int i = fork (), status; > if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } > signal (SIGINT, ucatch); > status = wait(&i); > if (status == -1) wait(&i); > exit (status == -1); > > > cat confdefs.h > #define PACKAGE "mysql" > #define VERSION "3.22.1-alpha" > #define SYSTEM_TYPE "unknown-freebsd3.0" > #define MACHINE_TYPE "i386" > #define PROTOCOL_VERSION 10 > #define DOT_FRM_VERSION 6 > #define HAVE_DIRENT_H 1 > #define STDC_HEADERS 1 > #define HAVE_SYS_WAIT_H 1 > #define HAVE_FCNTL_H 1 > #define HAVE_FLOAT_H 1 > #define HAVE_FLOATINGPOINT_H 1 > #define HAVE_LIMITS_H 1 > #define HAVE_MEMORY_H 1 > #define HAVE_PWD_H 1 > #define HAVE_STDLIB_H 1 > #define HAVE_STDDEF_H 1 > #define HAVE_STRINGS_H 1 > #define HAVE_STRING_H 1 > #define HAVE_SYS_MMAN_H 1 > #define HAVE_SYS_TIMEB_H 1 > #define HAVE_SYS_TYPES_H 1 > #define HAVE_SYS_UN_H 1 > #define HAVE_SYS_VADVISE_H 1 > #define HAVE_SYS_WAIT_H 1 > #define HAVE_TERM_H 1 > #define HAVE_UNISTD_H 1 > #define HAVE_UTIME_H 1 > #define HAVE_SCHED_H 1 > #define HAVE_LIBM 1 > #define HAVE_LIBCRYPT 1 > #define HAVE_LIBCOMPAT 1 > > > Yours, > Monty Should I cvsup the new libc_r - or is there a known working version of this library? Andy Edmond +-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ || Andrew N. Edmond | Lycaeum Director | Nymserver Administrator || || edmond@lycaeum.org | http://www.lycaeum.org/ | http://www.nymserver.com/ || >---------------------+-------------------------+----------------------------< || Children of a future age, reading this indignant page, know that in a || || former time, a path to love was thought a crime - William Blake || +-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message