Frank Mash stated:
< Hi all,
< I installed the latest version (Studio11) and the ./configure runs fine (no
errors or warnings but running make now produces somewhat similar errors:
<
< 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 -c -o
libsbmysql_a-drv_mysql.o `test -f 'drv_mysql.c' || echo './'`drv_mysql.c
< "drv_mysql.c", line 50: invalid token in #define macro parameters: ...
< "drv_mysql.c", line 123: designated initializers is a C99 ISO feature
Its just that one flag, -xc99=none, which is stopping you getting a clean run.
The local mysql_config is putting it in.
I can build sysbench just fine. Though if I have the -xc99=none flag
in sysbench's makefiles I get the exact same error as you:
...
cc -DHAVE_CONFIG_H -I. -I. -I../../../config -I/usr/sfw/include/mysql
-xstrconst -xc99=none -mt -I../.. -D_REENTRANT -D_XOPEN_SOURCE=500
-D_GNU_SOURCE -D_REENTRANT -g -c -o libsbmysql_a-drv_mysql.o `test -f
'drv_mysql.c' || echo './'`drv_mysql.c
"drv_mysql.c", line 50: invalid token in #define macro parameters: ...
"drv_mysql.c", line 123: designated initializers is a C99 ISO feature
cc: acomp failed for drv_mysql.c
*** Error code 2
...
You can take it out of the Makefiles with this one-liner
(in the sysbench directory of course)
for i in `find . -name Makefile `; do cp $i ${i}.orig; sed -e '/xc99=none/
s/-xc99=none//g' ${i}.orig > $i; done
and run make again and you should get a clean compile.
Regards,
Sean.
.
< cc: acomp failed for drv_mysql.c
< 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
<
<
<
<
< Here is my current environment:
<
< TERM=xterm
< SHELL=/sbin/sh
< SSH_CLIENT=192.168.1.11 34203 22
< OLDPWD=/home/fmashraqi/install/bench
< SSH_TTY=/dev/pts/5
< USER=root
<
LD_LIBRARY_PATH=/usr/local/mysql/lib:/usr/ccs/lib:/usr/lib:/usr/local/lib:/lib:/usr/ucblib
<
PATH=/opt/SUNWspro/bin:/usr/sbin:/usr/bin:/usr/local/bin:.:/usr/ccs/bin:/usr/local/mysql/bin
< MAIL=/var/mail//root
< PWD=/home/fmashraqi/install/bench/sysbench-0.4.7
< TZ=US/Eastern
< [EMAIL PROTECTED]:\w]
< SHLVL=1
< HOME=/
< LOGNAME=root
< SSH_CONNECTION=192.168.1.11 34203 192.168.1.192 22
< CC=/opt/SUNWspro/bin/cc
< _=/usr/bin/env
<
<
< I have been working on it nonstop but no success still.
<
< Thanks for your assistance,
<
< Frank
<
<
< This message posted from opensolaris.org
< _______________________________________________
< opensolaris-discuss mailing list
< [email protected]
--
Sean.
.
_______________________________________________
opensolaris-discuss mailing list
[email protected]