Error compiling on Solaris 6
Good morning, I am trying to build MySQL from source on Solaris 6. A pre-compiled version is not available for Solaris 6 and we cannot upgrade the OS to Solaris 8. I currently have Ver 9,38 Ditrib 3.22.32 installed, but the main MySQL Server (the one one Solaris is used as a client only) has been recently upgraded to Ver 14.12 Distrib 5.0.27 and we have problems with privileges, where Client does not support authentication protocol requested by server; consider upgrading MySQL client. There you go, I have to upgrade my client. I have downloaded the Compressed GNU TAR archive, unzipped and untarred, read the INSTALL-FILE and as suggested run the command CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors \ -fno-exceptions -fno-rtti ./configure \ --prefix=/usr/local/mysql --enable-assembler \ --with-mysqld-ldflags=-all-static And then make it. But this result in the following error make[4]: Entering directory `/usr/local/src/mysql-5.0.45/sql' /bin/ksh ../libtool --preserve-dup-deps --tag=CXX --mode=link gcc -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -all-static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lthread -lposix4 -lresolv -lgen -lsocket -lnsl -lm -lpthread -lthread gcc -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lthread -lposix4 -lresolv -lgen -lsocket -lnsl -lm -lpthread -lthread /usr/local/bin/ld: cannot find -lpthread collect2: ld returned 1 exit status make[4]: *** [mysql_tzinfo_to_sql] Error 1 make[4]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/mysql-5.0.45' make: *** [all] Error 2 I read than make on Solaris sometimes have problems, but I heard that GNU 3.75 works fine with MySql and I should be fine pvwdev-s mysql-5.0.45 make --version GNU Make version 3.76.1, by Richard Stallman and Roland McGrath. Can anybody help me please? It's quite important and a bit urgent. PLEASE reply to me as well as to the list because I am not subscribed. Many thanks Giulio -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
RE: Error compiling on Solaris 6
As far as I know my make is GNU. In fact, as I said at the end of the email pvwdev-s mysql-5.0.45 make --version GNU Make version 3.76.1, by Richard Stallman and Roland McGrath. Linedata Services (UK) Ltd Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB Registered in England and Wales No 3027851 VAT Reg No 778499447 -Original Message- From: mysql [mailto:[EMAIL PROTECTED] Sent: 26 July 2007 13:24 To: Giulio Troccoli Cc: mysql@lists.mysql.com Subject: Re: Error compiling on Solaris 6 Giulio did you take into consideration that the Solaris make is not the GNU make? and that you possibly have to install first the GNU make before making MySQL? suomi Giulio Troccoli wrote: Good morning, I am trying to build MySQL from source on Solaris 6. A pre-compiled version is not available for Solaris 6 and we cannot upgrade the OS to Solaris 8. I currently have Ver 9,38 Ditrib 3.22.32 installed, but the main MySQL Server (the one one Solaris is used as a client only) has been recently upgraded to Ver 14.12 Distrib 5.0.27 and we have problems with privileges, where Client does not support authentication protocol requested by server; consider upgrading MySQL client. There you go, I have to upgrade my client. I have downloaded the Compressed GNU TAR archive, unzipped and untarred, read the INSTALL-FILE and as suggested run the command CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors \ -fno-exceptions -fno-rtti ./configure \ --prefix=/usr/local/mysql --enable-assembler \ --with-mysqld-ldflags=-all-static And then make it. But this result in the following error make[4]: Entering directory `/usr/local/src/mysql-5.0.45/sql' /bin/ksh ../libtool --preserve-dup-deps --tag=CXX --mode=link gcc -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -all-static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lthread -lposix4 -lresolv -lgen -lsocket -lnsl -lm -lpthread -lthread gcc -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lthread -lposix4 -lresolv -lgen -lsocket -lnsl -lm -lpthread -lthread /usr/local/bin/ld: cannot find -lpthread collect2: ld returned 1 exit status make[4]: *** [mysql_tzinfo_to_sql] Error 1 make[4]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/mysql-5.0.45' make: *** [all] Error 2 I read than make on Solaris sometimes have problems, but I heard that GNU 3.75 works fine with MySql and I should be fine pvwdev-s mysql-5.0.45 make --version GNU Make version 3.76.1, by Richard Stallman and Roland McGrath. Can anybody help me please? It's quite important and a bit urgent. PLEASE reply to me as well as to the list because I am not subscribed. Many thanks Giulio -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: Error compiling on Solaris 6
Giulio did you take into consideration that the Solaris make is not the GNU make? and that you possibly have to install first the GNU make before making MySQL? suomi Giulio Troccoli wrote: Good morning, I am trying to build MySQL from source on Solaris 6. A pre-compiled version is not available for Solaris 6 and we cannot upgrade the OS to Solaris 8. I currently have Ver 9,38 Ditrib 3.22.32 installed, but the main MySQL Server (the one one Solaris is used as a client only) has been recently upgraded to Ver 14.12 Distrib 5.0.27 and we have problems with privileges, where Client does not support authentication protocol requested by server; consider upgrading MySQL client. There you go, I have to upgrade my client. I have downloaded the Compressed GNU TAR archive, unzipped and untarred, read the INSTALL-FILE and as suggested run the command CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors \ -fno-exceptions -fno-rtti ./configure \ --prefix=/usr/local/mysql --enable-assembler \ --with-mysqld-ldflags=-all-static And then make it. But this result in the following error make[4]: Entering directory `/usr/local/src/mysql-5.0.45/sql' /bin/ksh ../libtool --preserve-dup-deps --tag=CXX --mode=link gcc -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -all-static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lthread -lposix4 -lresolv -lgen -lsocket -lnsl -lm -lpthread -lthread gcc -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lthread -lposix4 -lresolv -lgen -lsocket -lnsl -lm -lpthread -lthread /usr/local/bin/ld: cannot find -lpthread collect2: ld returned 1 exit status make[4]: *** [mysql_tzinfo_to_sql] Error 1 make[4]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/src/mysql-5.0.45/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/mysql-5.0.45' make: *** [all] Error 2 I read than make on Solaris sometimes have problems, but I heard that GNU 3.75 works fine with MySql and I should be fine pvwdev-s mysql-5.0.45 make --version GNU Make version 3.76.1, by Richard Stallman and Roland McGrath. Can anybody help me please? It's quite important and a bit urgent. PLEASE reply to me as well as to the list because I am not subscribed. Many thanks Giulio -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Compiling on Solaris 2.6
I have tried multiple times to build a version of 3.23.55 with support for innodb under Solaris 2.6. I can not upgrade the version of the OS. Here is the error: source='mysql.cc' object='mysql.o' libtool=no \ depfile='.deps/mysql.Po' tmpdepfile='.deps/mysql.TPo' \ depmode=gcc3 /bin/ksh ../depcomp \ gcc -DUNDEF_THREADS_HACK -I. -I. -I.. -I./../include -I../include -I./.. -I. . -I ..-O3 -DDBUG_OFF -O6 -fno-implicit-templates -fno-exceptions -fno-rtti -DUS E_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -DHAVE_RWLOCK_T -c -o mysql.o `test -f mys ql.cc || echo './'`mysql.cc mysql.cc: In function `int sql_connect(char*, char*, char*, char*, unsigned int)': mysql.cc:2171: `sleep' undeclared (first use this function) mysql.cc:2171: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [mysql.o] Error 1 Any ideas or does anyone no where I can get a version that supports innodb for Solaris 2.6? - 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
errors compiling on solaris 2.6
Description: I'm trying to compile mysql on solaris 2.6. Getting these errors: mysql.cc: In function `int sql_connect(char*, char*, char*, char*, unsigned int)': mysql.cc:2175: `sleep' undeclared (first use this function) mysql.cc:2175: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [mysql.o] Error 1 make[2]: Leaving directory `/usr/home/tagawami/code/mysql-3.23.49/client' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/home/tagawami/code/mysql-3.23.49' How-To-Repeat: setenv LDFLAGS '-R/usr/local/lib' setenv CFLAGS -O3 setenv CXX gcc setenv CXXFLAGS -O3 -felide-constructors -fno-exceptions -fno-rtti ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysql-ldflags=-all-static make (gmake version 3.79.1) Fix: Submitter-Id: submitter ID Originator:Mark Tagawa Organization: EarthLink MySQL support: [none | licence | email support | extended email support ] Synopsis: Need help compiling mysql. Severity: serious Priority: high Category: mysql Class: Release: mysql-3.23.49 (Source distribution) Environment: System: SunOS mclaren 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-2 Architecture: sun4 Some paths: /home/tagawami/perl/bin/perl /ms/bin/make /usr/local/bin/gcc /usr/ucb/cc GCC: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.1/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ad --disable-nls Thread model: posix gcc version 3.1 Compilation info: CC='gcc' CFLAGS='' CXX='gcc' CXXFLAGS='' LDFLAGS='' LIBC: -rw-r--r-- 1 bin bin 1600348 Mar 20 1998 /lib/libc.a lrwxrwxrwx 1 root root 11 Jan 13 1999 /lib/libc.so - ./libc.so.1 -rwxr-xr-x 1 bin bin 1025512 Mar 1 22:44 /lib/libc.so.1 -rw-r--r-- 1 bin bin 1600348 Mar 20 1998 /usr/lib/libc.a lrwxrwxrwx 1 root root 11 Jan 13 1999 /usr/lib/libc.so - ./libc.so.1 -rwxr-xr-x 1 bin bin 1025512 Mar 1 22:44 /usr/lib/libc.so.1 Configure command: ./configure --with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory --with-mit-threads=yes --without-perl --enable-thread-safe-client --with-berkeley-db --enable-local-infile --with-innodb - 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
Re: Compiling on Solaris
Brad Teale writes: A couple of questions about compiling on Solaris. 1) Are the Sun Workshop 6 compilers supported for MySQL and MySQL++? 1a) Can you use the -native flag without problems? 2) Is the binary distribution compiled with Sun or GNU compilers? Background Info: We are currently trying to ingest 1.5M/sec of weather data into a database, and we have had luck using MySQL 3.23.4x on a Linux 800Mhz machine with 256M of RAM. However, this machine is basically useless for anything else, and it is my desktop. We have several Sun servers with 4+ procs and 4+Gb of RAM, and I thought one would make a good ingest machine. So I would like to compile MySQL and MySQL++ with the Sun compilers to take full advantage of everything the platform has to offer. Any help would be great. Thanks, Brad Teale Universal Weather and Aviation, Inc. mailto:[EMAIL PROTECTED] Hi! The answers to your questions : 1) Yes with MySQL, no with MySQL++. Nobody had ported it to the later 2) GNU You would be better with our binaries. They have been built optimally ... -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED] / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus ___/ www.mysql.com - 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
RE: Compiling on Solaris
Brad Teale writes: I found the answers to my previous question about MySQL in the manual. Doh! However, when I tried to compile MySQL, I ran into the following error: [skip] processors hash.c, line 189: reference to static variable hash_key in inline extern function hash.c, line 229: cannot recover from previous errors cc: acomp failed for hash.c make[2]: *** [hash.lo] Error 1 make[2]: Leaving directory `/export/home/bteale/pkgs/mysql-3.23.47/libmysql' make[1]: *** [all-recursive] Error 1 Thanks, Brad Teale Universal Weather and Aviation, Inc. mailto:[EMAIL PROTECTED] Hi! Solution to the problem is to #define _FORTREC_ in config.h and my_config.h. We have fixed configure for Sun C++ only recently, so the fix will appear in the next version. But I repeat again, you would be better off with our binaries ... -- Consider taking our support. Visit : https://order.mysql.com Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED] / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus ___/ www.mysql.com - 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
Compiling on Solaris
A couple of questions about compiling on Solaris. 1) Are the Sun Workshop 6 compilers supported for MySQL and MySQL++? 1a) Can you use the -native flag without problems? 2) Is the binary distribution compiled with Sun or GNU compilers? Background Info: We are currently trying to ingest 1.5M/sec of weather data into a database, and we have had luck using MySQL 3.23.4x on a Linux 800Mhz machine with 256M of RAM. However, this machine is basically useless for anything else, and it is my desktop. We have several Sun servers with 4+ procs and 4+Gb of RAM, and I thought one would make a good ingest machine. So I would like to compile MySQL and MySQL++ with the Sun compilers to take full advantage of everything the platform has to offer. Any help would be great. Thanks, Brad Teale Universal Weather and Aviation, Inc. mailto:[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
RE: Compiling on Solaris
I found the answers to my previous question about MySQL in the manual. Doh! However, when I tried to compile MySQL, I ran into the following error: /bin/sh ../libtool --mode=compile cc -DDEFAULT_CHARSET_HOME=\/export/home/bteale/mysql-3.23.47\ -DDATADIR=\/export/home/bteale/mysql-3.23.47/var\ -DSHAREDIR=\/export/home/bteale/mysql-3.23.47/share/mysql\ -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I..-O -DDBUG_OFF -Xa -fast -native -xstrconst -mt -DHAVE_CURSES_H -I/export/home/bteale/pkgs/mysql-3.23.47/include -DHAVE_RWLOCK_T -c hash.c rm -f .libs/hash.lo cc -DDEFAULT_CHARSET_HOME=\/export/home/bteale/mysql-3.23.47\ -DDATADIR=\/export/home/bteale/mysql-3.23.47/var\ -DSHAREDIR=\/export/home/bteale/mysql-3.23.47/share/mysql\ -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O -DDBUG_OFF -Xa -fast -native -xstrconst -mt -DHAVE_CURSES_H -I/export/home/bteale/pkgs/mysql-3.23.47/include -DHAVE_RWLOCK_T -c hash.c -KPIC -DPIC cc: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=v8plusa which generates code that does not run on pre UltraSPARC processors hash.c, line 189: reference to static variable hash_key in inline extern function hash.c, line 229: cannot recover from previous errors cc: acomp failed for hash.c make[2]: *** [hash.lo] Error 1 make[2]: Leaving directory `/export/home/bteale/pkgs/mysql-3.23.47/libmysql' make[1]: *** [all-recursive] Error 1 I looked into hash.c, and the relevant code is as follows: 183: #ifndef _FORTREC_ 184: inline 185: #endif 186: uint rec_hashnr(HASH *hash,const byte *record) 187: { 188: uint length; 189: byte *key=hash_key(hash,record,length,0); 190: return (*hash-calc_hashnr)(key,length); 191: } To fix the problem I poked around, and ended up commenting out lines 183-185. After this it compiles fine. Will this lead to any problems? Computer Config: SunOS 5.8 sun4u sparc SUNW, Ultra-80 Sun Workshop 6 update 2 5.3 2001/05/15 Thanks, Brad Teale Universal Weather and Aviation, Inc. mailto:[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
RE: Problems compiling under Solaris 2.6
Hmmm, Good thinking. However, the files needed (autoconf) is in /usr/local/bin - which is in my $PATH. a which shows autoconf so I know it can be seen without any problems. There is no ld.conf.so under solaris 2.6. Any more suggestions as I am having big problems with this. Thanks, Matt. -Original Message- From: Alan W. Rateliff, II [mailto:[EMAIL PROTECTED]] Sent: 05 December 2001 15:15 To: Matthew Darcy Subject: Re: Problems compiling under Solaris 2.6 On 05-Dec-01, Matthew Darcy said something totally profound about Problems compiling under Solaris 2.6 that made me ponder... MD MD Hi, MD MD I am running fully patched Solaris 2.6 on a Sun ultra 2 server. MD MD I am running a simple MD MD ./configure --enable-thread-safe-client --with-mysqld-user=dba MD MD and yes the dba account exists. MD MD There is 2 problems with this. MD MD 1.) if you examine the output of configure you will notice the it cannot MD find autoconf - although if you view pkginfo output you will notice that MD autoconf is present and in the search path. Why is this and how to fix ? Make sure that these packages are in your PATH. MOST SMC packages install in /usr/local, so having /usr/local/bin in your PATH should be sufficient. MD 2.) if you read the end of the configure output you will notice an error. MD I am unsure what this error means, and the librarys that it complains MD COULD be missing are infact installed in the correct place. Make sure that ALL of your library directories are in your LD_LIBRARY_PATH, or listed in /etc/ld.so.conf. I'm not sure it /etc/ld.so.conf exists in Solaris 2.6 or not, as that majority of my work has been in Solaris 8. However, I have had successfull compiles under 2.4, 2.5.1, 2.6, 7, and 8. -- Alan W. Rateliff, II: YourVillage.com Assistant Systems Administrator : 2700 Apalachee Pkwy [EMAIL PROTECTED] : Tallahassee, FL 32301 (850) 942-7021--- [EMAIL PROTECTED] http://support.yourvillage.com - 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
Problem compiling on Solaris 8
Hello, when trying to compile mysql-3.23.37 on solaris 8, using either just ./configure or CC=gcc CXX=gcc CXXFLAGS=-O3 ./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charset s=complex I get the message: checking return type of sprintf... configure: error: can not run test program while cross compiling I am using GNU Make version 3.78.1 and gcc version 2.95.3. The mysql is fresh off the website. My config.log file is: configure:812: checking host system type configure:833: checking target system type configure:851: checking build system type configure:886: checking for a BSD compatible install configure:939: checking whether build environment is sane configure:974: checking whether make sets ${MAKE} configure:1020: checking for working aclocal configure:1033: checking for working autoconf configure:1046: checking for working automake configure:1059: checking for working autoheader configure:1072: checking for working makeinfo configure:1174: checking whether to enable maintainer-specific portions of Makefiles configure:1216: checking whether build environment is sane configure:1233: checking whether make sets ${MAKE} configure:1301: checking for gawk configure:1333: checking for gcc configure:1446: checking whether the C compiler (gcc ) works configure:1462: gcc -o conftest conftest.c 15 configure:1488: checking whether the C compiler (gcc ) is a cross-compiler configure:1493: checking whether we are using GNU C configure:1521: checking whether gcc accepts -g configure:1557: checking for c++ configure:1589: checking whether the C++ compiler (c++ -O3 ) works configure:1605: c++ -o conftest -O3conftest.C 15 configure:1631: checking whether the C++ compiler (c++ -O3 ) is a cross-compiler configure:1636: checking whether we are using GNU C++ configure:1664: checking whether c++ accepts -g configure:1696: checking how to run the C preprocessor configure:1821: checking for ranlib configure:1931: checking for ld used by GCC configure:1993: checking if the linker (/usr/ccs/bin/ld) is GNU ld configure:2009: checking for BSD-compatible nm configure:2045: checking whether ln -s works ltconfig:603: checking for object suffix ltconfig:604: gcc -cconftest.c 15 ltconfig:629: checking for executable suffix ltconfig:630: gcc -o conftest conftest.c 15 ltconfig:776: checking if gcc PIC flag -fPIC works ltconfig:777: gcc -c -fPIC -DPIC conftest.c 15 ltconfig:829: checking if gcc supports -c -o file.o ltconfig:830: gcc -c -o out/conftest2.o conftest.c 15 ltconfig:862: checking if gcc supports -c -o file.lo ltconfig:863: gcc -c -c -o conftest.lo conftest.c 15 ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions ltconfig:915: gcc -c -fno-rtti -fno-exceptions -c conftest.c conftest.c 15 ltconfig:958: checking if gcc static flag -static works ltconfig:959: gcc -o conftest -static conftest.c 15 ltconfig:1653: checking if global_symbol_pipe works ltconfig:1654: gcc -cconftest.c 15 ltconfig:1657: eval /usr/ccs/bin/nm -p conftest.o | sed -n -e /^.*[ ]\([BDT]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' conftest.nm ltconfig:1709: gcc -o conftest -fno-builtin -fno-rtti -fno-exceptions conftest.c conftstm.o 15 configure:2250: checking for a BSD compatible install configure:2308: checking for bison configure:2308: checking for byacc configure:2341: checking for pdftex configure:2369: checking return type of sprintf I tried the tips in the mysql manual, including doing CFLAGS=-O6 -mpentiumpro CXX=gcc CXXFLAGS=-O6 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldfla gs=-all-static or adding the line to the config.cache file. Any ideas? Thanks, Jan -- jan miczaika project49 AG - 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
problems compiling on solaris 2.7
I'm having problems compiling mysql 3.23.37 on Solaris 2.7. It gets to the final linking stage and I get the following error: /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/libgcc.a: could not read symbols: Bad value Anyone have this happen to them before and/or have a fix? I've also compiled it on Linux with no problems. I followed the recommended configure line in the README. Thanks in advance Jeff Shipman E-Mail: [EMAIL PROTECTED] Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff - 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
Issues compiling under Solaris
Previously someone had mentioned that the issues covered by my FAQ (located at http://users.talstar.com/forager/MySQL-HOWTO.html ) had been taken care of with releases past 3.23.28. However, just tonight I found that the problem with the broken Solaris term.h file still exists, and after running ./configure you will have to edit the config.h file and either comment out or undef the line: #define HAVE_TERM_H 1 BEFORE running make. After that things will flow smoothly. This holds true for Solaris 7/Sparc, and Solaris 8/i86 and Sparc. Hope this is helpful to people. -- Alan W. Rateliff, II: YourVillage.com Assistant Systems Administrator : 2700 Apalachee Pkwy [EMAIL PROTECTED] : Tallahassee, FL 32301 (850) 942-7021--- [EMAIL PROTECTED] http://support.yourvillage.com - 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