error: compile 64 bit mysql on Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris error: compile 64 bit mysql on Solaris 10
# 1  
Old 05-07-2007
error: compile 64 bit mysql on Solaris 10

I'm trying to build 64 bit mysql-5.0.37 on Solaris 10.

CFLAGS="-O3" CXX='gcc -m64 -mcpu=v9' CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" ./configure -disable-shared --prefix=/usr/local/mysql --datadir=/home1/mysql_data --with-mysqld-user=mysql

LD_LIBRARY_PATH=/usr/lib/sparcv9:/usr/local/lib/sparcv9:/usr/ccs/lib/sparcv9:/usr/sfw/lib/sparcv9

The make goes for a long time then. Although I see that I have 2 ELFCLASS32 but the error is failing after that on ld: fatal: Symbol referencing errors. No output written to mysql_tzinfo_to_sqlcollect2: ld returned 1 exit status.

I'm using ccs/bin/make. I don't know where to get 64 bit libraries for those two files, but what is the Symbol referencing errors?

Thank you


-------------------------------------------
ld: warning: file ../mysys/libmysys.a(my_init.o): wrong ELF class: ELFCLASS32
ld: warning: file ../strings/libmystrings.a(strmake.o): wrong ELF class: ELFCLASS32
Undefined first referenced
symbol in file
my_init mysql_tzinfo_to_sql.o
init_alloc_root mysql_tzinfo_to_sql.o
alloc_root mysql_tzinfo_to_sql.o
my_dirend mysql_tzinfo_to_sql.o
my_fclose mysql_tzinfo_to_sql.o
my_dir mysql_tzinfo_to_sql.o
my_progname mysql_tzinfo_to_sql.o
strmake mysql_tzinfo_to_sql.o
free_root mysql_tzinfo_to_sql.o
my_fopen mysql_tzinfo_to_sql.o
my_fread mysql_tzinfo_to_sql.o
ld: fatal: Symbol referencing errors. No output written to mysql_tzinfo_to_sql
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `mysql_tzinfo_to_sql'
Current working directory /home1/users/cross/packages/UnpackedDownloads/mysql-5.0.37/sql
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='share'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home1/users/cross/packages/UnpackedDownloads/mysql-5.0.37/sql
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /home1/users/cross/packages/UnpackedDownloads/mysql-5.0.37/sql
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='. include Docs zlib cmd-line-utils sql-common pstack strings mysys dbug extra regex innobase myisam myisammrg heap vio sql libmysql client scripts man tests netware sql-bench mysql-test support-files server-tools'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home1/users/cross/packages/UnpackedDownloads/mysql-5.0.37
*** Error code 1
make: Fatal error: Command failed for target `all'
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Need help to compile and create python64 bit (2.7.9) on Solaris10

Hi, I am trying to build python(2.7.9) 64 bit from source on solaris10. Using the below to compile ./configure CFLAGS=-m64 LDFLAGS=-m64 But getting errors like below while executing make make: Fatal error: Command failed for target `libinstall' OS info: isainfo -v 64-bit amd64... (9 Replies)
Discussion started by: Sumanthsv
9 Replies

2. AIX

MySQL 5.5.28 compile on AIX 7.1

Hi, I have an AIX 7.1 lpar with cmake, gmp, libmpc, mpfr on it and a gcc 4.6.2 compiler that was made with the no-dependency flag. I am trying to complile MySql5.5.28 from Oracle. Cmake runs fine. Then when I run make, I get the following: <nyissz> Scanning dependencies of target strings ... (12 Replies)
Discussion started by: Ismeret Tenger
12 Replies

3. Solaris

Compile PHP 5.3.6 with MySql on Sun Blade 1500 Solaris 10

Hello, I'm trying to compile PHP 5.3.6 with Apache2 and MySql 5.5.12. I hit a problem that I can't seem to resolve by myself and I could not find a solution on the web. It looks like Apache and MySql installed ok, I can start/stop them with no problem. When I try to compile PHP the... (4 Replies)
Discussion started by: pn8830
4 Replies

4. Solaris

DBI with MySQL client library compile on Solaris

how dow you complie perl module DBI with mysql from /usr/local/mysql/bin keeps going to mysql client for /usr/sfw/bin is it the LD_PATH ???...:confused: error is # perl login.cgi DBI connect('customers;mysql_socket=/tmp/mysql.sock:localhost','root',...) failed: Client does not... (1 Reply)
Discussion started by: photon
1 Replies

5. Solaris

PHP 5.3 compile on Solaris 10 : make distclean :: fatal error

I'm trying to install PHP 5.3 on Solaris 10 . I'm using etc/apache2 and installed mysql 5.1.39. When I tried to compile PHP 5.3, with the following configure text, ./configure --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib-dir=/usr/local \... (21 Replies)
Discussion started by: ppa108
21 Replies

6. Solaris

32 bit MySQL on x86 64 bit?

Hello all. I am going to build an x86 Solaris box. Sun only offers it in a 64 bit flavor. I want to put MySQL on this box. MySQL only comes in a 32 bit version for x86 Solaris. Can I run 32 bit apps on a 64 bit x86 Solaris machine? Thanks! (4 Replies)
Discussion started by: RobertSubnet
4 Replies

7. Solaris

How do I compile a 64-bit program on SPARC??

Hi, wcslen(), strlen() returns size_t. On 64-bit platform i want to use int like str length is 10. int len = wcslen(str); On 64-bit what should I need to do if i wants the length in int. Because getting error as "Conversion of 64 bit type value to "int" causes truncation". if i... (17 Replies)
Discussion started by: amit_27
17 Replies

8. Linux

Is it possible to compile 64 bit application on 32 bit machine

Hi, I am using 32 bit machine, and I want to compile 64 bit application on 32-bit machine. So please tell me is it possible or not? Regards Mandar (7 Replies)
Discussion started by: Mandar123
7 Replies

9. Solaris

Errors trying to compile PHP for use with MySQL on Solaris 10

have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build: ./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies

10. Solaris

solaris 10 apache 2.2.4 64 bit build error

I am trying to build 64 bit apache 2.2.4 on a Sun server. I have built many applications so far. This is my configure line CC='gcc -m64 -mcpu=v9 -O3' ./configure --disable-ipv6 --enable-info --enable-status --enable-ssl --with-ssl=/usr/local/ssl --disable-negotiation --disable-userdir ... (2 Replies)
Discussion started by: csross
2 Replies
Login or Register to Ask a Question