Bug #15689 compilation of mysql-5.0.15 on Solaris 5.9
Submitted: 12 Dec 2005 17:43 Modified: 4 Oct 2006 10:14
Reporter: Douglas Jones Email Updates:
Status: Duplicate Impact on me:
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.15 OS:Solaris (Solaris 5.9)
Assigned to: CPU Architecture:Any

[12 Dec 2005 17:43] Douglas Jones
I am trying to compile mysql-5.0.15 on Solaris 5.9 with the
following options:

CC=cc;export CC
CFLAGS="-Xa -fast -native -xstrconst -mt -xarch=v9";export CFLAGS
CXX=CC;export CXX
CXXFLAGS="-noex -mt -xarch=v9" ASFLAGS="-xarch=v9";export CXXFLAGS
./configure --prefix=/usr/local/mysql --enable-assembler

using Sun C 5.6 2004/07/15. I am getting the following errors:

cc -O -DDBUG_OFF -Xa -fast -native -xstrconst -xarch=v9 -D_FILE_OFFSET_BITS=64 -
DHAVE_RWLOCK_T -o factorial my_main.o factorial.o  -mt libdbug.a ../mysys/libmys
ys.a ../strings/libmystrings.a -lpthread -lthread -lposix4 -lcrypt -lgen -lsocke
t -lnsl -lm -lpthread -lthread
Undefined                       first referenced
 symbol                             in file
strmov                              libdbug.a(dbug.o)
ld: fatal: Symbol referencing errors. No output written to factorial
make[2]: *** [factorial] Error 1
make[2]: Leaving directory `/export/home/src/net/db/mysql/mysql-5.0.15/dbug'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/src/net/db/mysql/mysql-5.0.15'
make: *** [all] Error 2

Any suggestions? I am new to the Sun environment. Thanks!

How to repeat:
By following the above compiles.
[13 Dec 2005 14:20] Valeriy Kravchuk
Thank you for a problem report. Sorry, but I was not able to get error messages like yours when tried to compile 5.0.15 in a usual way on our Solaris 9 machine. I performed the following commands:

cd mysql-5.0.15

export PATH=/export/home/mysqldev/butch-64bit/bin:/opt/sfw/bin:/usr/sfw

CC=cc-5.0 CXX=CC ASFLAGS=-xarch=v9 CFLAGS="-xO3 -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9" CXXFLAGS="-xO3 -noex -mt -D_FORTEC_ -xarch=v9" LDFLAGS=-xarch=v9 ./configure --prefix=/users/vkravchuk/dbs/5.0-butch --with-extra-charsets=complex

make clean
make install

and then:

bash-2.05$ cd ~/dbs/5.0-butch/
bash-2.05$ bin/mysqld_safe --socket=/users/vkravchuk/mysql5.sock &
[1] 4138
bash-2.05$ Starting mysqld daemon with databases from /users/vkravchuk/dbs/5.0-butch/var

bash-2.05$ bin/mysql --socket=/users/vkravchuk/mysql5.sock -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.15

No entry for terminal type "cygwin";
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select version();
| version() |
| 5.0.15    |
1 row in set (0.00 sec)

mysql> exit
bash-2.05$ uname -a
SunOS butch 5.9 Generic_118558-09 sun4u sparc SUNW,UltraAX-i2

I believe that your additional configure options will not change anything (they are used in our standard builds). So, please, check your settings and try once more. Inform about the results.
[14 Jan 2006 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[4 Oct 2006 10:14] Sergei Golubchik
duplicate of bug#14420