On Fri, 16 Nov 2001, Harvey Hou wrote:
> I've downloaded MySQL 3.23.44 and compiled on a Sparc Solaris 2.6 > machine using gcc 2.95.3 and installed and started it all fine. But when > I goto try to use the MySQL client I receive an error that it cannot > find libstdc++.so.2.10.0. I've checked my system for this shared library > and it is not there. Where can I find this shared library file? I even > re-installed gcc 2.95.3 that I downloaded from www.sunfreeware.com but > no go the gcc pkgadd install places a static library libstdc++.a.2.10.0 > but no shared library file that the mysql client is looking for. Help. > On Fri, 16 Nov 2001, Bob Johnstone wrote: > Good morning, this is my first post to the group....... > The brew is > Solaris 8(sparc/sunblade) > GCC.2.95.3 <---pkg install > Flex 2.5.4a < ---pkg install > Bison 1.28 <--- pkg install > Mysql 3.23.44 < compiled ( listed as stable version) > Apache1.3.20 < compiled > PHP4.0.6 < compiled > and on top of this use php-nuke to jazz up a website > or 5 > > After 3 weeks of fielding problems, mostly with PHP, we fnally got > to the point where httpd was ready to start > and wound up with > "/usr/local/etc/httpd/libexec/libphp4.so: symbol > mysql_module_entry: referenced symbol not found" > > Questions went out on the net.... This AM received a hint regarding > a new version and re-compiling would probably work. So back to > mysql.com to download version 4.0.0. Set up, configure and get this > " configure: error: can not run test program while > cross compiling" > > This is addressed in the README and says you can try and bypass it > with a line in the config.cache, which was tried and > didn't work. > Further delving into the documantation indicates that on Solaris 8, > the GCC compiler has to be 2.95.2 ( presumably 'or higher"), mine is > 2.95.3 > > More documetation ensues and says the correct config line is > > CC=gcc CFLAGS="-O3" \ > CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions > -fno-rtti" \ > ./configure --prefix=/usr/local/mysql --with-low-memory > --enable-assembler > > and I'm back to > " configure: error: can not run test program while cross compiling " > > So what's going on folks.. > > Any help would be appreciated... I note two things: - I recently did a brief search of posts on google.com on this very issue. In every thread I found which mentioned "configure: error: can not run test program while cross compiling", the poster was using the pre-compiled gcc binary from sunfreeware. - I've had odd problems in the past building a *few* things from source using the pre-compiled gcc binary from sunfreeware (most packages compiled just fine). My memory is that these were library related. My solution was to build gcc from source using the pre-compiled gcc binary, then I replaced the pre-compiled gcc with the one I'd built from source. Using the gcc built from source, I've had no more of these sorts of problems. I have no idea what configure is doing when it decides that sunfreeware's gcc is a cross-compiler, but I can report that I do not get this error using the gcc I built from source. In particular, I successfully built mysql-3.23.44 (and it passed all tests) on Solaris 8 sparc (an E450) with the command recommended in the manual <http://www.mysql.com/doc/S/o/Solaris.html>: CC=gcc CFLAGS="-O3" \ CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \ ./configure --prefix=/usr/local/mysql --with-low-memory --enable-assembler Hope this helps. Michael ======= Michael Stassen University Information Technology Services Indiana University Bloomington [EMAIL PROTECTED] --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php