[kde-freebsd] mysql client build failure

Philip Boulton philipb at ssimicro.com
Tue Oct 4 23:21:11 UTC 2011

Thanks very much.

It's possible that there are some conflicts.  It was necessary at one point
for me to have gcc v 3.x and gcc v4.x available.  The solution was to rename
the 4.5 version of gcc as gcc45 and point to it when necessary.

Thanks for pointing out about the wrong-ftp location.  packages-8-stable
totally has it.

In any event, I was eventually able to build mysql5.5, but not using the
ports collection.  The procedure was:

Get CMake 2.8.5 from http://www.cmake.org, Unix/Linux Source version
Extract, make and install it.  This was uncomplicated.

Get mysql 5.5.16 source code from
http://dev.mysql.com/downloads/mysql/#downloads, generic Linux version
Extract make and install it.  This involved a lot of fiddling with options,
but was eventually successful.

The upgrade process itself was hairy, and it was a good thing I used


Philip B.

-----Original Message-----
From: Raphael Kubo da Costa [mailto:kubito at gmail.com] On Behalf Of Raphael
Kubo da Costa
Sent: October 1, 2011 12:11
To: Philip Boulton
Cc: kde-freebsd at kde.org
Subject: Re: [kde-freebsd] mysql client build failure

(CC'ing the list again)

"Philip Boulton" <philipb at ssimicro.com> writes:

> In order to make use of gcc 4.5.0, I edited make.conf to make make use of
> it, as follows:
> #Changes to support usage of gcc45, from FreeBSD ports tree
> .if exists(/usr/bin/gcc45)
> CC=gcc45
> CXX=g++45
> CPP=cpp45
> .endif
> #End changes to support gcc45 usage

Shouldn't gcc45 be installed to /usr/local/bin, not /usr/bin?

Your installation seems to be very weird ;)

The bootstrap error looks the same to me. If you compile that piece of
code manually with gcc45, does it work?

If your gcc45 is indeed installed to /usr/bin, I suspect you may be in a
situation in which there are all sorts of conflicts between the base gcc
and the one from ports.

> [philipb at pb-devel /usr/ports/databases/mysql55-client]$ sudo pkg_add -r
> cmake
> Password:
> Error: FTP Unable to get
> .tbz: File unavailable (e.g., file not found, no access)
> pkg_add: unable to fetch
> e.tbz' by URL

That should be 8-stable, not 8-current. 8 has not been CURRENT for quite
some time.

More information about the kde-freebsd mailing list