I suspect you need a newer version of the sun compiler.  sysbench-0.4.7 builds
 fine for me with the studio11 compilers.  You can get that version via the
 same links as sent out.

 Older Sun compilers didn't like (I think) things like:
static drv_caps_t mysql_drv_caps =
{
  .multi_rows_insert = 1,
  .transactions = 0,
  .prepared_statements = 0,
  .auto_increment = 1,
  .serial = 0,
  .unsigned_int = 1,
  
  .table_options_str = NULL
};

   which happens to be where the compile bombs out in drv_mysql.c.


Regards,
Sean.
.
Frank Mash stated:
< Thank you everyone for your assistance.
< 
< Steve, thanks for willing to assist me with this. I really appreciate it.
< 
< Based on the recommendations, I finally installed cc and now I am getting the 
following errors when trying to compile sysbench:
< 
< I was so happy to move beyond previous errors but now I am stuck with these.
< 
< I compiled this on RHEL with no issues at all.
< 
< Updated output of ./configure:
< ##########
< [EMAIL PROTECTED]:/home/fmashraqi/install/bench/sysbench-0.4.7] ./configure
< checking build system type... sparc-sun-solaris2.10
< checking host system type... sparc-sun-solaris2.10
< checking target system type... sparc-sun-solaris2.10
< checking for a BSD-compatible install... config/install-sh -c
< checking whether build environment is sane... yes
< checking for gawk... no
< checking for mawk... no
< checking for nawk... nawk
< checking whether make sets $(MAKE)... yes
< checking whether to compile with MySQL support... (cached) yes
< checking whether to compile with Oracle support... (cached) no
< checking whether to compile with PostgreSQL support... (cached) no
< checking for style of include used by make... GNU
< checking for gcc... /opt/SUNWspro/bin/CC
< checking for C compiler default output file name... a.out
< checking whether the C compiler works... yes
< checking whether we are cross compiling... no
< checking for suffix of executables...
< checking for suffix of object files... o
< checking whether we are using the GNU C compiler... no
< checking whether /opt/SUNWspro/bin/CC accepts -g... yes
< checking for /opt/SUNWspro/bin/CC option to accept ANSI C... none needed
< checking dependency style of /opt/SUNWspro/bin/CC... none
< checking whether SHM_HUGETLB is declared... no
< checking whether O_SYNC is declared... yes
< checking for gcc... (cached) /opt/SUNWspro/bin/CC
< checking whether we are using the GNU C compiler... (cached) no
< checking whether /opt/SUNWspro/bin/CC accepts -g... (cached) yes
< checking for /opt/SUNWspro/bin/CC option to accept ANSI C... (cached) none 
needed
< checking dependency style of /opt/SUNWspro/bin/CC... (cached) none
< checking for a sed that does not truncate output... /usr/bin/sed
< checking for egrep... egrep
< checking for non-GNU ld... /usr/ccs/bin/ld
< checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
< checking for /usr/ccs/bin/ld option to reload object files... -r
< checking for BSD-compatible nm... /usr/ccs/bin/nm -p
< checking whether ln -s works... yes
< checking how to recognise dependent libraries... pass_all
< checking how to run the C preprocessor... /usr/local/bin/gcc -E
< checking for ANSI C header files... yes
< checking for sys/types.h... yes
< checking for sys/stat.h... yes
< checking for stdlib.h... yes
< checking for string.h... yes
< checking for memory.h... yes
< checking for strings.h... yes
< checking for inttypes.h... yes
< checking for stdint.h... yes
< checking for unistd.h... yes
< checking dlfcn.h usability... yes
< checking dlfcn.h presence... yes
< checking for dlfcn.h... yes
< checking whether we are using the GNU C++ compiler... yes
< checking whether g++ accepts -g... yes
< checking dependency style of g++... gcc3
< checking how to run the C++ preprocessor... g++ -E
< checking for g77... g77
< checking whether we are using the GNU Fortran 77 compiler... yes
< checking whether g77 accepts -g... yes
< checking the maximum length of command line arguments... 262144
< checking command to parse /usr/ccs/bin/nm -p output from /opt/SUNWspro/bin/CC 
object... ok
< checking for objdir... .libs
< checking for ar... ar
< checking for ranlib... ranlib
< checking for strip... strip
< checking if /opt/SUNWspro/bin/CC static flag  works... yes
< checking for /opt/SUNWspro/bin/CC option to produce PIC... -KPIC
< checking if /opt/SUNWspro/bin/CC PIC flag -KPIC works... yes
< checking if /opt/SUNWspro/bin/CC supports -c -o file.o... yes
< checking whether the /opt/SUNWspro/bin/CC linker (/usr/ccs/bin/ld) supports 
shared libraries... yes
< checking dynamic linker characteristics... solaris2.10 ld.so
< checking how to hardcode library paths into programs... immediate
< checking whether stripping libraries is possible... no
< checking if libtool supports shared libraries... yes
< checking whether to build shared libraries... yes
< checking whether to build static libraries... yes
< configure: creating libtool
< appending configuration tag "CXX" to libtool
< checking for ld used by g++... /usr/ccs/bin/ld
< checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
< checking whether the g++ linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
< checking for g++ option to produce PIC... -fPIC
< checking if g++ PIC flag -fPIC works... yes
< checking if g++ supports -c -o file.o... yes
< checking whether the g++ linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
< checking dynamic linker characteristics... solaris2.10 ld.so
< checking how to hardcode library paths into programs... immediate
< checking whether stripping libraries is possible... no
< appending configuration tag "F77" to libtool
< checking if libtool supports shared libraries... yes
< checking whether to build shared libraries... yes
< checking whether to build static libraries... yes
< checking for g77 option to produce PIC... -KPIC
< checking if g77 PIC flag -KPIC works... no
< checking if g77 supports -c -o file.o... yes
< checking whether the g77 linker (/usr/ccs/bin/ld) supports shared 
libraries... yes
< checking dynamic linker characteristics... solaris2.10 ld.so
< checking how to hardcode library paths into programs... immediate
< checking whether stripping libraries is possible... no
< checking for xsltproc... xsltproc
< checking whether xsltproc works... yes
< checking for the pthreads library -lpthread... yes
< checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
< checking if more special flags are required for pthreads... -D_REENTRANT
< checking for cc_r... /opt/SUNWspro/bin/CC
< checking for sqrt in -lm... yes
< checking for mysql_config... /usr/local/mysql/bin/mysql_config
< checking MySQL C flags... -I/usr/local/mysql/include -xO3 -mt -D_FORTEC_ 
-xarch=v9 -xc99=none
< checking MySQL linker flags... -xarch=v9 -L/usr/local/mysql/lib 
-lmysqlclient_r -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lmtmalloc
< checking libaio.h usability... no
< checking libaio.h presence... no
< checking for libaio.h... no
< checking for ANSI C header files... (cached) yes
< checking errno.h usability... yes
< checking errno.h presence... yes
< checking for errno.h... yes
< checking fcntl.h usability... yes
< checking fcntl.h presence... yes
< checking for fcntl.h... yes
< checking math.h usability... yes
< checking math.h presence... yes
< checking for math.h... yes
< checking pthread.h usability... yes
< checking pthread.h presence... yes
< checking for pthread.h... yes
< checking sched.h usability... yes
< checking sched.h presence... yes
< checking for sched.h... yes
< checking signal.h usability... yes
< checking signal.h presence... yes
< checking for signal.h... yes
< checking for stdlib.h... (cached) yes
< checking for string.h... (cached) yes
< checking sys/aio.h usability... yes
< checking sys/aio.h presence... yes
< checking for sys/aio.h... yes
< checking sys/ipc.h usability... yes
< checking sys/ipc.h presence... yes
< checking for sys/ipc.h... yes
< checking sys/time.h usability... yes
< checking sys/time.h presence... yes
< checking for sys/time.h... yes
< checking sys/mman.h usability... yes
< checking sys/mman.h presence... yes
< checking for sys/mman.h... yes
< checking sys/shm.h usability... yes
< checking sys/shm.h presence... yes
< checking for sys/shm.h... yes
< checking thread.h usability... yes
< checking thread.h presence... yes
< checking for thread.h... yes
< checking for unistd.h... (cached) yes
< checking for inline... inline
< checking for off_t... yes
< checking for size_t... yes
< checking whether time.h and sys/time.h may both be included... yes
< checking for special C compiler options needed for large files... no
< checking for _FILE_OFFSET_BITS value needed for large files... 64
< checking for _LARGE_FILES value needed for large files... no
< checking for size_t... (cached) yes
< checking size of size_t... 4
< checking for stdlib.h... (cached) yes
< checking for GNU libc compatible malloc... yes
< checking for stdlib.h... (cached) yes
< checking for unistd.h... (cached) yes
< checking for getpagesize... yes
< checking for working mmap... yes
< checking whether strerror_r is declared... yes
< checking for strerror_r... yes
< checking whether strerror_r returns char *... no
< checking whether clock_gettime is declared... yes
< checking for library containing clock_gettime... -lrt
< checking for fdatasync... yes
< checking for gettimeofday... yes
< checking for memalign... yes
< checking for memset... yes
< checking for posix_memalign... no
< checking for pthread_yield... no
< checking for sqrt... yes
< checking for strdup... yes
< checking for thr_setconcurrency... yes
< checking for valloc... yes
< configure: creating ./config.status
< config.status: creating Makefile
< config.status: creating doc/xsl/catalog.xml
< config.status: creating doc/Makefile
< config.status: creating scripts/Makefile
< config.status: creating sysbench/Makefile
< config.status: creating sysbench/drivers/Makefile
< config.status: creating sysbench/drivers/mysql/Makefile
< config.status: creating sysbench/drivers/oracle/Makefile
< config.status: creating sysbench/drivers/pgsql/Makefile
< config.status: creating sysbench/tests/Makefile
< config.status: creating sysbench/tests/cpu/Makefile
< config.status: creating sysbench/tests/fileio/Makefile
< config.status: creating sysbench/tests/memory/Makefile
< config.status: creating sysbench/tests/threads/Makefile
< config.status: creating sysbench/tests/mutex/Makefile
< config.status: creating sysbench/tests/oltp/Makefile
< config.status: creating config/config.h
< config.status: config/config.h is unchanged
< config.status: executing depfiles commands
< ##########
< 
< Updated output of 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'
< source='drv_mysql.c' object='libsbmysql_a-drv_mysql.o' libtool=no \
< DEPDIR=.deps depmode=none /bin/bash ../../../config/depcomp \
< /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I../../../config  
-I/usr/local/mysql/include -xO3 -mt -D_FORTEC_ -xarch=v9 -xc99=none -I../.. 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_GNU_SOURCE  -D_REENTRANT  -g -O2 -c -o 
libsbmysql_a-drv_mysql.o `test -f 'drv_mysql.c' || echo './'`drv_mysql.c
< CC: Warning: Option -xc99=none passed to ld, if ld is invoked, ignored 
otherwise
< CC: Warning: -O2 overwrites previously set optimization level of -O3
< "../../sysbench.h", line 162: Error: Multiple declaration for sb_test_t.
< "../../sysbench.h", line 168: Error: The name sb_test_t is ambiguous, 
sb_test_t and sb_test_t.
< "../../db_driver.h", line 35: Warning: Identifier expected instead of "}".
< "drv_mysql.c", line 56: Warning: String literal converted to char* in 
initialization.
< "drv_mysql.c", line 56: Warning: String literal converted to char* in 
initialization.
< "drv_mysql.c", line 56: Warning: String literal converted to char* in 
initialization.
< "drv_mysql.c", line 57: Warning: String literal converted to char* in 
initialization.
< "drv_mysql.c", line 57: Warning: String literal converted to char* in 
initialization.
< "drv_mysql.c", line 57: Warning: String literal converted to char* in 
initialization.
< ...
< "drv_mysql.c", line 67: Warning: String literal converted to char* in 
initialization.
< "drv_mysql.c", line 123: Error: "}" expected instead of ".".
< "drv_mysql.c", line 168: Error: "}" expected instead of ".".
< "drv_mysql.c", line 172: Error: "," expected instead of "{".
< "drv_mysql.c", line 173: Error: Use ";" to terminate declarations.
< "drv_mysql.c", line 173: Error: A declaration was expected instead of ",".
< "drv_mysql.c", line 174: Error: Multiple declaration for mysql_drv_describe.
< "drv_mysql.c", line 175: Error: Multiple declaration for mysql_drv_connect.
< "drv_mysql.c", line 176: Error: Multiple declaration for mysql_drv_disconnect.
< "drv_mysql.c", line 177: Error: Multiple declaration for mysql_drv_prepare.
< "drv_mysql.c", line 178: Error: Multiple declaration for mysql_drv_bind_param.
< "drv_mysql.c", line 179: Error: Multiple declaration for 
mysql_drv_bind_result.
< "drv_mysql.c", line 180: Error: Multiple declaration for mysql_drv_execute.
< "drv_mysql.c", line 181: Error: Multiple declaration for mysql_drv_fetch.
< "drv_mysql.c", line 182: Error: Multiple declaration for mysql_drv_fetch_row.
< "drv_mysql.c", line 183: Error: Multiple declaration for mysql_drv_num_rows.
< "drv_mysql.c", line 184: Error: Multiple declaration for 
mysql_drv_free_results.
< "drv_mysql.c", line 185: Error: Multiple declaration for mysql_drv_close.
< "drv_mysql.c", line 186: Error: Multiple declaration for mysql_drv_query.
< "drv_mysql.c", line 187: Error: Multiple declaration for 
mysql_drv_store_results.
< "drv_mysql.c", line 189: Error: Multiple declaration for mysql_drv_done.
< "drv_mysql.c", line 189: Error: "," expected instead of "}".
< "drv_mysql.c", line 189: Error: Use ";" to terminate declarations.
< "drv_mysql.c", line 189: Error: A declaration was expected instead of ",".
< Compilation aborted, too many Error messages.
< make[3]: *** [libsbmysql_a-drv_mysql.o] Error 1
< make[3]: Leaving directory 
`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers/mysql'
< make[2]: *** [all-recursive] Error 1
< make[2]: Leaving directory 
`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench/drivers'
< make[1]: *** [all-recursive] Error 1
< make[1]: Leaving directory 
`/home/fmashraqi/install/bench/sysbench-0.4.7/sysbench'
< make: *** [all-recursive] Error 1
< ##########
< 
< 
< Are these errors occurring because of the following warnings:
< 
< ###############################
< ./configure output
< ###############################
< configure: WARNING: signal.h: present but cannot be compiled
< configure: WARNING: signal.h: check for missing prerequisite headers?
< configure: WARNING: signal.h: see the Autoconf documentation
< configure: WARNING: signal.h: section "Present But Cannot Be Compiled"
< configure: WARNING: signal.h: proceeding with the preprocessor's result
< configure: WARNING: signal.h: in the future, the compiler will take precedence
< configure: WARNING: ## -------------------------------- ##
< configure: WARNING: ## Report this to alexeyk at mysql dot com ##
< configure: WARNING: ## -------------------------------- ##
< configure: WARNING: thread.h: present but cannot be compiled
< configure: WARNING: thread.h: check for missing prerequisite headers?
< configure: WARNING: thread.h: see the Autoconf documentation
< configure: WARNING: thread.h: section "Present But Cannot Be Compiled"
< configure: WARNING: thread.h: proceeding with the preprocessor's result
< configure: WARNING: thread.h: in the future, the compiler will take precedence
< configure: WARNING: ## -------------------------------- ##
< configure: WARNING: ## Report this to alexeyk at mysql dot com ##
< configure: WARNING: ## -------------------------------- ##
< 
< #############################
< 
< 
< Any pointers are greatly appreciated. 
< 
< Thanks 
< Frank
<  
<  
< This message posted from opensolaris.org
< _______________________________________________
< opensolaris-discuss mailing list
< [email protected]

-- 
Sean.
.
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to