From owner-freebsd-current Fri May 8 10:11:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24383 for freebsd-current-outgoing; Fri, 8 May 1998 10:11:05 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail1.sirius.com (mail1.sirius.com [205.134.253.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24377 for ; Fri, 8 May 1998 10:11:03 -0700 (PDT) (envelope-from parag@mail.codegen.com) Received: from [192.168.100.101] (ppp-asok04--185.sirius.net [205.134.244.185]) by mail1.sirius.com (8.8.7/Sirius-8.8.7-97.08.12) with SMTP id KAA19543 for ; Fri, 8 May 1998 10:11:08 -0700 (PDT) Message-Id: <199805081711.KAA19543@mail1.sirius.com> Subject: Build problem when making -current under -stable Date: Fri, 8 May 1998 10:13:05 -0700 x-sender: parag@mail.codegen.com x-mailer: Claris Emailer 2.0v3, January 22, 1998 X-Face: =O'Kj74icvU|oS*<7gS/8'\Pbpm}okVj*@UC!IgkmZQAO!W[|iBiMs*|)n*`X]pW%m>Oz_mK^Gdazsr.Z0/JsFS1uF8gBVIoChGwOy{EK=<6g?aHE`[\S]C]T0Wm From: Parag Patel To: "FreeBSD Current" Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello. I'm having some difficulty building -current under a -stable system, and was wondering if anyone else has similar difficulties. I've been seeing this for the past few days and I have checked out the latest code (up to last night 5/7/98). The problem is indirectly due to the new sys/errno.h under -current. I think it happens because the initial tools gperf build is using the wrong header files. The tail of the build output is appended below. What seems to be happening is that gperf is compiled with the new errno.h that always uses __error() for "errno" instead of an int, but it's being linked to the local system's libc, which in the case of 2.2.6, doesn't have __errno() in -libc. However, if it's being linked to the local libc, it should be using the local header files, yes? I think a workaround is to rebuild my -stable system with _THREAD_SAFE defined (where should this be defined?), then build -current under it. Is this the recommended solution? Or should the gperf build be modified to use the local system's header files? The earlier build of "make" worked fine, so it must be pointed to the -stable headers and not the new -current headers. (My -stable system is a PII box and considerably faster than my 486 -current test box, so I always build everything under -stable and boot the 486 via NFS for testing.) Thanks for any feedback. -- Parag Patel [...] cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/keylist.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/listnode.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/xmalloc.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/hashtable.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/boolarray.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/readline.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/stderr.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/version.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -c /usr/u/freebsd/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/getopt.c cc -O -pipe -D_HAVE_PARAM_H -DLO_CAL -DGATHER_STATISTICS -I/usr/obj/usr/u/freebsd/src/tmp/usr/include -static -o gperf options.o iterator.o main.o perfect.o keylist.o listnode.o xmalloc.o hashtable.o boolarray.o readline.o stderr.o version.o getopt.o stderr.o: Undefined symbol `___error' referenced from text segment stderr.o: Undefined symbol `___error' referenced from text segment stderr.o: Undefined symbol `___error' referenced from text segment *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message