From: Dan Nelson Date: March 24 2003 4:37pm Subject: Re: building MySQL on Alpha-Dec-OSF4 with gcc List-Archive: http://lists.mysql.com/mysql/135405 Message-Id: <20030324163701.GV63147@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. Also, consider building MySQL 3.23.55 or 4.0.12 instead of 3.22.32. -- Dan Nelson sql,query dnelson@stripped