Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2001 11:55:59 -0700 (PDT)
From:      <freebsdathome@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   MySQL install problems
Message-ID:  <20011006185559.97363.qmail@web10704.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
I'm having problems installing mysql-server-3.23.42 on
4.1.1-RELEASE. I am trying to install the port and
have successfully installed all required ports. 

The error I get is:

010513 17:17:22  mysqld started
/usr/libexec/ld-elf.so.1: /usr/lib/libstdc++.so.3:
Undefined symbol "__ti9except
ion"
010513 17:17:23  mysqld ended\n

I found a previous post to the list with the exact
same problem at
http://www.freebsd.org/cgi/getmsg.cgi?fetch=1502020+1503667+/usr/local/www/db/text/2000/freebsd-questions/20001217.freebsd-questions
but the reply was to "install the port" which is what
I'm doing. 

The relevant documentation from the mysql site says
this:

"By default, configure picks c++ as the compiler name
andGNU c++ links with -lg++. If you are using gcc,that
behavior can cause problems during configuration such
as this:

configure: error: installation or configuration
problem:C++ compiler cannot create executables.
You might also observe problems during compilation
related tog++, libg++, or libstdc++.One cause of these
problems is that you may not have g++, or you mayhave
g++ but not libg++, or libstdc++. Take a look atthe
`config.log' file. It should contain the exact reason
why your c++compiler didn't work! To work around these
problems, you can use gccas your C++ compiler. Try
setting the environment variable CXX to"gcc -O3". For
example:

shell> CXX="gcc -O3" ./configure
This works because gcc compiles C++ sources as well as
g++does, but does not link in libg++ or libstdc++ by
default.Another way to fix these problems, of course,
is to install g++,libg++ and libstdc++."

I have glibstdc++-2.8.1.1 installed. When I installed
it with the OS I didn't really know what I was doing
(and obviously still don't) and installed pretty much
anything that said gcc or g++. The pkg_info for
glibstdc++-2.8.1.1 suggests problems with the PATH if
using this as the default. 

So, my questions (finally) are should I be using
glibstdc++-2.8.1.1 and how do find out if that is the
default versus libstdc++? Or, should I change the
compiler used during the pkg install and how do I do that?

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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