Frank Mash stated:
< Hello all,
< 
< I have been trying to compile sysbench on SPARC/ Solaris 10 for the last 3 
days but with no success.
< 

  [...]

< 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

   ok, why is is using Sun C compiler options here, when you've specified
   gcc as the compiler ?

< checking libaio.h usability... no
< 

 [...]

< 
< The following is produced when I run make after the ./configure
< 
< ###########################
< 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'
< if gcc -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 -MT 
libsbmysql_a-drv_mysql.o -MD -MP -MF ".deps/libsbmysql_a-drv_mysql.Tpo" -c -o 
libsbmysql_a-drv_mysql.o `test -f 'drv_mysql.c' || echo './'`drv_mysql.c; \
< then mv -f ".deps/libsbmysql_a-drv_mysql.Tpo" 
".deps/libsbmysql_a-drv_mysql.Po"; else rm -f 
".deps/libsbmysql_a-drv_mysql.Tpo"; exit 1; fi
< gcc: language c99=none not recognized
< gcc: drv_mysql.c: linker input file unused because linking not done
< mv: cannot access .deps/libsbmysql_a-drv_mysql.Tpo
< make[3]: *** [libsbmysql_a-drv_mysql.o] Error 2
< 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
< 
< 
< ######################################
< 
< 
< 
< It seems like the errors have  something to do with the following two lines:
< -xc99=none
< 
< and 
< gcc: language c99=none not recognized

  Yup, looks like its mixing both gcc and SunC compiler options.

  The -xc99=none is a Sun C compiler option.

  eg, '-O2 -MT -MB -MP -MF' are all gcc options, whereas '-xO3 -md -x...'
  are all SunC compiler options.

  The configure script seems to be doing this for some reason.  You don't
  have CFLAGS or CPPFLAGS set in your environment per chance ?

< 
< Can someone please point out my oversight or what I am missing? I am stumped 
with this error.
< 
< 
< Thank you very much,
< 
< Frank

 Hope this helps.

Regards,

<  
<  
< This message posted from opensolaris.org
< _______________________________________________
< opensolaris-discuss mailing list
< opensolaris-discuss@opensolaris.org

-- 
Sean.
.
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to