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
> [EMAIL PROTECTED]
>
>
----------------------------------------------------------
Ralf Hupfer
Fraunhofer Institut f�r Verkehrs- und Infrastruktursysteme Dresden
WWW : www.ivi.fhg.de
www.intermobil.org
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]