Date: Tue, 16 Jun 1998 19:18:39 -0700 (PDT) From: "Andrew N. Edmond (Nero)" <edmond@shaman.lycaeum.org> To: John Birrell <jb@cimlogic.com.au> Cc: current@FreeBSD.ORG, monty@tcx.se Subject: is libc_r broken in 980520-SNAP? Message-ID: <Pine.BSF.3.96.980616190119.20372x-100000@shaman.lycaeum.org>
next in thread | raw e-mail | index | archive | help
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 <sys/types.h>
> #include <signal.h>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980616190119.20372x-100000>
