List:General Discussion« Previous MessageNext Message »
From:Ralf Hupfer Date:March 25 2003 8:55am
Subject:Re: building MySQL on Alpha-Dec-OSF4 with gcc
View as plain text  
On 24 Mar 2003 at 10:37, Dan Nelson wrote:

> In the last episode (Mar 24), Ralf Hupfer said:
> > I do face problems building MySQL 3.22.32 with gcc 3.2.2 on an Alpha-
> > DEC-OSF4 workstation.
> > 
> > CC="cc -pthread" CXX="cxx -pthread -O" ./configure 
> --with-named-thread-libs="-lpthread -lmach -lexc -lc" --with-low-memory
> > 
> > Everything run's smoothly, till mysqld is to be build. The linker produces:
> > 
> > The complete output when linking follows:
> > 
> > gnumake[3]: Entering directory `/usr/users/hupfer/build/mysql-3.22.32/sql'
> > /bin/sh ../libtool --mode=link gcc  -D_LARGEFILE_SOURCE -
> > D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -
> > DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti  -fno-
> 
> This should have read "/bin/sh ../libtool --mode=link cxx".  You can't
> link C++ programs with $CC; you need to use $CXX.  It looks like a typo
> in one of MySQL's Makefiles.

Other programms, like these in the "client" and "extra" subdir, do link with 
gcc. I also understood that gcc can handle both C and C++.

> Also, consider building MySQL 3.23.55 or 4.0.12 instead of 3.22.32.

I tried 3.23, but I didn't even start compiling :-(

> -- 
> 	Dan Nelson
> 	sql,query
> 	dnelson@stripped
> 
> 

----------------------------------------------------------
Ralf Hupfer
Fraunhofer Institut für Verkehrs- und Infrastruktursysteme Dresden

WWW : www.ivi.fhg.de
      www.intermobil.org


Thread
building MySQL on Alpha-Dec-OSF4 with gccRalf Hupfer24 Mar
  • Re: building MySQL on Alpha-Dec-OSF4 with gccDan Nelson24 Mar
    • Re: building MySQL on Alpha-Dec-OSF4 with gccRalf Hupfer25 Mar
  • building MySQL on Alpha-Dec-OSF4 with gccMichael Widenius27 Mar
Re: building MySQL on Alpha-Dec-OSF4 with gccRalf Hupfer24 Mar