Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译报错 #1

Open
suker413 opened this issue Sep 10, 2018 · 2 comments
Open

编译报错 #1

suker413 opened this issue Sep 10, 2018 · 2 comments

Comments

@suker413
Copy link

suker413 commented Sep 10, 2018

make[3]: Leaving directory '/home/lshn1118/sqlbench/src/storeproc'
Making all in core
make[3]: Entering directory '/home/lshn1118/sqlbench/src/core'
gcc -g -O2 -pthread -Wl,-rpath=/usr/lib/x86_64-linux-gnu -o datagen datagen.o libcore.a ../simple/libsimplesql.a ../extended/libextended.a ../dbc/mysql/libdbc_mysql.a -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -latomic -ldl -lm
../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_open_loader_stream': /home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:269: undefined reference to cli_safe_read'
/home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:277: undefined reference to net_field_length' /home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:286: undefined reference to my_net_write'
/home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:287: undefined reference to net_flush' ../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_close_loader_stream':
/home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:331: undefined reference to my_net_write' /home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:339: undefined reference to my_net_write'
/home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:339: undefined reference to net_flush' ../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_write_to_stream':
/home/lshn1118/sqlbench/src/dbc/mysql/dbc_mysql.c:311: undefined reference to `my_net_write'
collect2: error: ld returned 1 exit status
Makefile:416: recipe for target 'datagen' failed
make[3]: *** [datagen] Error 1
make[3]: Leaving directory '/home/lshn1118/sqlbench/src/core'
Makefile:322: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/lshn1118/sqlbench/src'
Makefile:368: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lshn1118/sqlbench'
Makefile:307: recipe for target 'all' failed
make: *** [all] Error 2

环境:
debian 9.4

@GoNorth
Copy link

GoNorth commented Sep 26, 2018

我也是编译报错,环境:RHEL/CentOS 7.x
root@jcyy05 sqlbench-master]# make && make install
make all-recursive
make[1]: Entering directory /opt/sqlbench/sqlbench-master' Making all in src make[2]: Entering directory /opt/sqlbench/sqlbench-master/src'
Making all in dbc
make[3]: Entering directory /opt/sqlbench/sqlbench-master/src/dbc' Making all in mysql make[4]: Entering directory /opt/sqlbench/sqlbench-master/src/dbc/mysql'
make[4]: Nothing to be done for all'. make[4]: Leaving directory /opt/sqlbench/sqlbench-master/src/dbc/mysql'
make[4]: Entering directory /opt/sqlbench/sqlbench-master/src/dbc' make[4]: Nothing to be done for all-am'.
make[4]: Leaving directory /opt/sqlbench/sqlbench-master/src/dbc' make[3]: Leaving directory /opt/sqlbench/sqlbench-master/src/dbc'
Making all in simple
make[3]: Entering directory /opt/sqlbench/sqlbench-master/src/simple' make[3]: Nothing to be done for all'.
make[3]: Leaving directory /opt/sqlbench/sqlbench-master/src/simple' Making all in extended make[3]: Entering directory /opt/sqlbench/sqlbench-master/src/extended'
make[3]: Nothing to be done for all'. make[3]: Leaving directory /opt/sqlbench/sqlbench-master/src/extended'
Making all in storeproc
make[3]: Entering directory /opt/sqlbench/sqlbench-master/src/storeproc' Making all in mysql make[4]: Entering directory /opt/sqlbench/sqlbench-master/src/storeproc/mysql'
make[4]: Nothing to be done for all'. make[4]: Leaving directory /opt/sqlbench/sqlbench-master/src/storeproc/mysql'
make[4]: Entering directory /opt/sqlbench/sqlbench-master/src/storeproc' make[4]: Nothing to be done for all-am'.
make[4]: Leaving directory /opt/sqlbench/sqlbench-master/src/storeproc' make[3]: Leaving directory /opt/sqlbench/sqlbench-master/src/storeproc'
Making all in core
make[3]: Entering directory /opt/sqlbench/sqlbench-master/src/core' gcc -g -O2 -pthread -Wl,-rpath=/usr/lib64/mysql -o datagen datagen.o libcore.a ../simple/libsimplesql.a ../extended/libextended.a ../dbc/mysql/libdbc_mysql.a -L/usr/lib64/mysql -lmysqlclient -lpthread -lm -lrt -ldl -lm ../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_open_loader_stream':
/opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:269: undefined reference to cli_safe_read' /opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:277: undefined reference to net_field_length'
/opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:286: undefined reference to my_net_write' /opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:287: undefined reference to net_flush'
../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_close_loader_stream': /opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:331: undefined reference to my_net_write'
/opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:339: undefined reference to my_net_write' /opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:339: undefined reference to net_flush'
../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_write_to_stream': /opt/sqlbench/sqlbench-master/src/dbc/mysql/dbc_mysql.c:311: undefined reference to my_net_write'
collect2: error: ld returned 1 exit status
make[3]: *** [datagen] Error 1
make[3]: Leaving directory /opt/sqlbench/sqlbench-master/src/core' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory /opt/sqlbench/sqlbench-master/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/sqlbench/sqlbench-master'
make: *** [all] Error 2

@lsyyff23
Copy link

failed again
[root@xx sqlbench]# make -j12
make all-recursive
make[1]: Entering directory /root/tpcc/sqlbench' Making all in src make[2]: Entering directory /root/tpcc/sqlbench/src'
Making all in dbc
make[3]: Entering directory /root/tpcc/sqlbench/src/dbc' Making all in mysql make[4]: Entering directory /root/tpcc/sqlbench/src/dbc/mysql'
make[4]: Nothing to be done for all'. make[4]: Leaving directory /root/tpcc/sqlbench/src/dbc/mysql'
make[4]: Entering directory /root/tpcc/sqlbench/src/dbc' make[4]: Nothing to be done for all-am'.
make[4]: Leaving directory /root/tpcc/sqlbench/src/dbc' make[3]: Leaving directory /root/tpcc/sqlbench/src/dbc'
Making all in simple
make[3]: Entering directory /root/tpcc/sqlbench/src/simple' make[3]: Nothing to be done for all'.
make[3]: Leaving directory /root/tpcc/sqlbench/src/simple' Making all in extended make[3]: Entering directory /root/tpcc/sqlbench/src/extended'
make[3]: Nothing to be done for all'. make[3]: Leaving directory /root/tpcc/sqlbench/src/extended'
Making all in storeproc
make[3]: Entering directory /root/tpcc/sqlbench/src/storeproc' Making all in mysql make[4]: Entering directory /root/tpcc/sqlbench/src/storeproc/mysql'
make[4]: Nothing to be done for all'. make[4]: Leaving directory /root/tpcc/sqlbench/src/storeproc/mysql'
make[4]: Entering directory /root/tpcc/sqlbench/src/storeproc' make[4]: Nothing to be done for all-am'.
make[4]: Leaving directory /root/tpcc/sqlbench/src/storeproc' make[3]: Leaving directory /root/tpcc/sqlbench/src/storeproc'
Making all in core
make[3]: Entering directory /root/tpcc/sqlbench/src/core' gcc -g -O2 -pthread -Wl,-rpath=/usr/local/mysql//lib -o datagen datagen.o libcore.a ../simple/libsimplesql.a ../extended/libextended.a ../dbc/mysql/libdbc_mysql.a -L/usr/local/mysql//lib -lmysqlclient -lm -lm gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -g -O2 -MT terminal_queue.o -MD -MP -MF .deps/terminal_queue.Tpo -c -o terminal_queue.o terminal_queue.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -g -O2 -MT transaction_test.o -MD -MP -MF .deps/transaction_test.Tpo -c -o transaction_test.o transaction_test.c ../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_open_loader_stream':
/root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:269: undefined reference to cli_safe_read' /root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:277: undefined reference to net_field_length'
/root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:286: undefined reference to my_net_write' /root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:287: undefined reference to net_flush'
../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_close_loader_stream': /root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:331: undefined reference to my_net_write'
/root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:339: undefined reference to my_net_write' /root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:339: undefined reference to net_flush'
../dbc/mysql/libdbc_mysql.a(libdbc_mysql_a-dbc_mysql.o): In function mysql_write_to_stream': /root/tpcc/sqlbench/src/dbc/mysql/dbc_mysql.c:311: undefined reference to my_net_write'
collect2: error: ld returned 1 exit status
make[3]: *** [datagen] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/transaction_test.Tpo .deps/transaction_test.Po
mv -f .deps/terminal_queue.Tpo .deps/terminal_queue.Po
make[3]: Leaving directory /root/tpcc/sqlbench/src/core' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory /root/tpcc/sqlbench/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/tpcc/sqlbench'
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants