Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 1998 10:13:05 -0700
From:      Parag Patel <parag@cgt.com>
To:        "FreeBSD Current" <freebsd-current@FreeBSD.ORG>
Subject:   Build problem when making -current under -stable
Message-ID:  <199805081711.KAA19543@mail1.sirius.com>

next in thread | raw e-mail | index | archive | help

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 <parag@cgt.com>


[...]
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805081711.KAA19543>