Frank Mash wrote:

>>>Its just that one flag, -xc99=none, which is stopping you getting a clean 
>>>run.
>>>The local mysql_config is putting it in.
>>>      
>>>
>
>Thank you very much Sean,
>
>I removed -xc99=none from the files and was able to go a bit further (Making 
>all in mysql succeeded). Unfortunately now I get the following errors:
>  
>



Hi Frank,

you cannot mix -xarch=v9 and -xarch=v8 objects.
Somethings gets compiled 32 bits, something else 64bits, then the
/usr/ccs/bin/ld linker cannot link different ELFCLASS objects.
It might be a mistake in a makefile.
Looks very good otherwise.
Try to either make everything 32bits, or everything sparcv9


Much luck,
Martin

>[EMAIL PROTECTED]:/home/fmashraqi/install/bench/sysbench-0.4.7] make
>Making all in doc
>make[1]: Entering directory `/home/fmashraqi/install/bench/sysbench-0.4.7/doc'
>make[1]: Nothing to be done for `all'.
>make[1]: Leaving directory `/home/fmashraqi/install/bench/sysbench-0.4.7/doc'
>Making all in scripts
>make[1]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/scripts'
>make[1]: Nothing to be done for `all'.
>make[1]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/scripts'
>Making all in sysbench
>make[1]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench'
>Making all in drivers
>make[2]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers'
>Making all in mysql
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers/mysql'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers/mysql'
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers'
>make[3]: Nothing to be done for `all-am'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers'
>make[2]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers'
>Making all in tests
>make[2]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests'
>Making all in cpu
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/cpu'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/cpu'
>Making all in fileio
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/fileio'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/fileio'
>Making all in memory
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/memory'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/memory'
>Making all in threads
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/threads'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/threads'
>Making all in mutex
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/mutex'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/mutex'
>Making all in oltp
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/oltp'
>make[3]: Nothing to be done for `all'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests/oltp'
>make[3]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests'
>make[3]: Nothing to be done for `all-am'.
>make[3]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests'
>make[2]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/tests'
>Making all in .
>make[2]: Entering directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench'
>/bin/bash ../libtool --tag=CC --mode=link /opt/SUNWspro/bin/cc -D_REENTRANT  
>-g -lpthread  -o sysbench -static   sysbench.o sb_timer.o sb_options.o 
>sb_logger.o db_driver.o tests/fileio/libsbfileio.a 
>tests/threads/libsbthreads.a tests/memory/libsbmemory.a tests/cpu/libsbcpu.a 
>tests/oltp/libsboltp.a tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a 
>-xarch=v9 -L/usr/local/mysql/lib -lmysqlclient_r -lz -lposix4 -lcrypt -lgen 
>-lsocket -lnsl -lm -lmtmalloc   -lrt -lm
>/opt/SUNWspro/bin/cc -D_REENTRANT -g -o sysbench sysbench.o sb_timer.o 
>sb_options.o sb_logger.o db_driver.o -xarch=v9  -lpthread 
>tests/fileio/libsbfileio.a tests/threads/libsbthreads.a 
>tests/memory/libsbmemory.a tests/cpu/libsbcpu.a tests/oltp/libsboltp.a 
>tests/mutex/libsbmutex.a drivers/mysql/libsbmysql.a -L/usr/local/mysql/lib 
>-lmysqlclient_r -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lmtmalloc -lrt -lm
>ld: fatal: file sysbench.o: wrong ELF class: ELFCLASS32
>ld: fatal: File processing errors. No output written to sysbench
>make[2]: *** [sysbench] Error 1
>make[2]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory 
>`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench'
>make: *** [all-recursive] Error 1
>
>
>Thank you so much for your assistance. How can I get the right ELFCLASS32 for 
>my Solaris box?
>
>Frank
> 
> 
>This message posted from opensolaris.org
>_______________________________________________
>opensolaris-discuss mailing list
>[email protected]
>
>
>  
>

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to