Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 1998 01:47:18 -0500 (EST)
From:      spork <spork@super-g.com>
To:        questions@FreeBSD.ORG
Subject:   MySQL 3.2.22-23 fails to compile
Message-ID:  <Pine.BSF.3.96.980205014037.25652C-100000@super-g.inch.com>

next in thread | raw e-mail | index | archive | help
The two newest versions of MySQL fail to compile on 2.2-stable or 3.0.

The following errors occur:

>>> Making all in Docs
>>> Making all in readline
>>> Making all in client
>>> 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

Other folks trying this running similar FBSD systems get the same result.
Monty (the MySQL guy) got it to go on a 2.2.5-RELEASE box.  Here's some of
his comments:

<Monty>
Has anyone a explanation for this?
I have tested MySQL 3.21.22 and 3.21.23 on a 'FreeBSD 2.2.2-RELEASE
i86pc' without any problems.

The above is an link error that shouldn't be MySQL releated (There is
no symbol __error in the MySQL source).  Can you find from where this
symbol orginates ? (Problably some header file in /usr/include).

There is also a possibility that your gcc include files are wrong!
(This is a common source of grief with gcc on Solaris)  Check that the
include files in the gcc-lib directory is from FreeBSD 2.2.2 and not
from an earlier FreeBSD version!

It's of possible that your c++ doesn't work properly!  If your c++ is
g++, then it may help if you use the above configure line. The
difference between using gcc and g++ in compiling C++ code is that gcc
doesn't depend on the libstdc++ library.
</Monty>

Start talking about symbols, linkers, and g++ problems, and I'm lost.
Does anyone have any ideas?  Is there anyone that would like to partner up
with Monty to help out with future releases?  He seems to develop
primarily for Linux and Solaris, so the FBSD version usually lags a bit.

Thanks,

Charles Sprickman
spork@super-g.com
---- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980205014037.25652C-100000>