-
Notifications
You must be signed in to change notification settings - Fork 11
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
Comments
我也是编译报错,环境:RHEL/CentOS 7.x |
failed again |
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
The text was updated successfully, but these errors were encountered: