From owner-freebsd-questions Fri Feb 6 01:52:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA10188 for questions-outgoing; Fri, 6 Feb 1998 01:52:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from fox.uni-trier.de (blank@fox.uni-trier.de [136.199.8.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA10180 for ; Fri, 6 Feb 1998 01:52:09 -0800 (PST) (envelope-from blank@fox.uni-trier.de) Received: (from blank@localhost) by fox.uni-trier.de (8.8.8/8.8.8) id KAA16179; Fri, 6 Feb 1998 10:52:07 +0100 Message-ID: <19980206105206.24062@fox.uni-trier.de> Date: Fri, 6 Feb 1998 10:52:06 +0100 From: Sascha Blank To: spork , questions@FreeBSD.ORG Subject: Re: MySQL 3.2.22-23 fails to compile Reply-To: Sascha Blank References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: ; from spork on Thu, Feb 05, 1998 at 01:47:18AM -0500 X-Operating-System: FreeBSD 2.2.5-STABLE X-PGP-Fingerpint: 26 FD 71 B5 48 12 42 91 10 1C 4F 74 70 48 6F 89 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" Hello, On Thu, Feb 05, 1998 at 01:47:18AM -0500, spork wrote: > >>> c++ -O -g -O2 -fno-implicit-templates -DDBUG_OFF -o mysql mysql.o > >>> readline.o sql_string.o completion_hash.o -L../readline -lreadline > >>> -ltermcap -L. -lmysqlclient -lm -lcompat > >>> rltty.c:399: Undefined symbol `___error' referenced from text segment > >>> rltty.c:431: Undefined symbol `___error' referenced from text segment > >>> rltty.c:433: Undefined symbol `___error' referenced from text segment > >>> bind.c:615: Undefined symbol `___error' referenced from text segment > >>> input.c:259: Undefined symbol `___error' referenced from text segment > >>> input.c:421: Undefined symbol `___error' referenced from text segment > >>> input.c:437: Undefined symbol `___error' referenced from text segment > >>> input.c:455: Undefined symbol `___error' referenced from text segment > >>> *** Error code 1 I had the same problem yesterday on my FreeBSD 2.2-STABLE (past 2.2.5-RELEASE) system. But the solution is simple: edit the Makefile in readline/ so that it defines the C preprocessor symbol "UNDEF_THREADS_HACK" in addtition to the other symbols that are passed to the C compiler (for example by adding the string "-DUNDEF_THREADS_HACK" to CFLAGS). Then do a "make clean" in readline and recompile. -- Sascha Blank | "I prefer to work behind the scenes. The Student and System Administrator | reward is nearly as great, and the risk at the University of Trier, Germany | is far far less" - Ambassador Mollari in mailto:blank@fox.uni-trier.de | in Babylon 5, "The coming of shadows"