当前位置: 技术问答>linux和unix
交叉编译mysql5.1.63,make时的错误
来源: 互联网 发布时间:2017-02-25
本文导语: 本帖最后由 simba8781 于 2012-05-24 14:57:52 编辑 pc平台: red hat linux 9 交叉编译器:arm-linux-gcc4.3.2 mysql版本:mysql-5.1.63.tar.gz 目的:把MySQL移植到了FL2440的开发板上 ==================================================== mysql貌似没有很...
交叉编译器:arm-linux-gcc4.3.2
mysql版本:mysql-5.1.63.tar.gz
目的:把MySQL移植到了FL2440的开发板上
====================================================
mysql貌似没有很好支持交叉编译,修改了一下configure文件以后,./configure成功
#./configure --host=arm-linux -with-named-curses-libs=/usr/lib/libncurses.so.5 --prefix=/usr/local/mysql
-----------------------------------------------------
在mysql5.1.63文件夹中,make时的错误:
stacktrace.c: In function `safe_print_str':
stacktrace.c:85: `SYS_gettid' undeclared (first use in this function)
stacktrace.c:85: (Each undeclared identifier is reported only once
stacktrace.c:85: for each function it appears in.)
make[1]: *** [stacktrace.o] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-5.1.63/mysys'
make: *** [all-recursive] Error 1
-----------------------------------------------------
makefile中部分内容:
AWK = gawk
CC = arm-linux-gcc
CCAS = arm-linux-gcc
CCASDEPMODE = depmode=gcc
CCASFLAGS = -g -O2
CCDEPMODE = depmode=gcc
CC_VERSION = 2.95.3
CFLAGS = -g -O2 -DUNIV_LINUX -DUNIV_LINUX
CHECK_PID = /bin/kill -0 $$PID > /dev/null 2> /dev/null
CHMOD = /bin/chmod
CLIENT_EXTRA_LDFLAGS =
CLIENT_LIBS = -lcrypt -lnsl -lm $(top_builddir)/zlib/libzlt.la
CLIENT_THREAD_LIBS = -lpthread
CMP = /usr/bin/cmp
COMPILATION_COMMENT = Source distribution
CONF_COMMAND = ./configure '--host=arm-linux' '-with-named-curses-libs=/usr/lib/libncurses.so.5' '--prefix=/usr/local/mysql' 'host_alias=arm-linux'
CP = /bin/cp
CPP = arm-linux-gcc -E
CPPFLAGS =
CXX = arm-linux-g++
CXXCPP = arm-linux-g++ -E
CXXDEPMODE = depmode=gcc
CXXFLAGS = -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_PRAGMA_IMPLEMENTATION
CXXLDFLAGS =
CXX_VERSION = 2.95.3
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DIFF = /usr/bin/diff
DOT_FRM_VERSION = 6
DOXYGEN = /usr/bin/doxygen
DSYMUTIL =
DUMPBIN =
DVIS = manual.dvi
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
FGREP = /bin/grep -F
FIND_PROC = /bin/ps wwwp $$PID | grep -v " grep" | grep -v mysqld_safe | grep -- "$$MYSQLD" > /dev/null
GETCONF = getconf
GREP = /bin/grep
GXX = yes
HOSTNAME = /bin/hostname
INNODB_DYNAMIC_CFLAGS = -DMYSQL_DYNAMIC_PLUGIN
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
KILL = /bin/kill
LD = /usr/local/arm/2.95.3/arm-linux/bin/ld
LDFLAGS = -rdynamic
LD_VERSION_SCRIPT = -Wl,--version-script=$(top_builddir)/libmysql/libmysql.ver
LIBDL = -ldl
LIBEDIT_LOBJECTS = unvis.o vis.o strlcpy.o strlcat.o fgetln.o
LIBOBJS =
LIBS = -lpthread -lcrypt -lnsl -lm -lpthread
LIBTOOL = $(SHELL) $(top_builddir)/libtool --preserve-dup-deps
LIB_EXTRA_CCFLAGS =
LIPO =
LM_CFLAGS =
LN = /bin/ln
LN_CP_F = /bin/ln -s
LN_S = ln -s
LTLIBOBJS =
MACHINE_TYPE = arm
MAKEINDEX = /usr/bin/makeindex
MAKEINFO = ${SHELL} /usr/local/src/mysql-5.1.63/missing --run makeinfo
MAKE_BINARY_DISTRIBUTION_OPTIONS =
MAKE_SHELL = /bin/sh
MKDIR_P = /bin/mkdir -p
MV = /bin/mv
MYSQLD_DEFAULT_SWITCHES = --skip-external-locking
MYSQLD_EXTRA_LDFLAGS =
MYSQLD_EXTRA_LIBS =
MYSQLD_USER = mysql
MYSQL_BASE_VERSION = 5.1
MYSQL_COPYRIGHT_YEAR = 2012
MYSQL_NO_DASH_VERSION = 5.1.63
MYSQL_PREVIOUS_BASE_VERSION = 5.0
MYSQL_SERVER_SUFFIX =
MYSQL_TCP_PORT = 3306
MYSQL_TCP_PORT_DEFAULT = 0
MYSQL_UNIX_ADDR = /tmp/mysql.sock
MYSQL_U_SCORE_VERSION = 5.1.63
MYSQL_VERSION_ID = 50163
NDB_DEFS =
NDB_LD_VERSION_SCRIPT =
NDB_SCI_INCLUDES =
NDB_SCI_LIBS =
NDB_SHARED_LIB_MAJOR_VERSION = 3
NDB_SHARED_LIB_VERSION = 3:0:0
NDB_SIZEOF_CHAR =
NDB_SIZEOF_CHARP =
NDB_SIZEOF_INT =
NDB_SIZEOF_LONG =
NDB_SIZEOF_LONG_LONG =
NDB_SIZEOF_SHORT =
NDB_VERSION_BUILD = 63
NDB_VERSION_MAJOR = 5
NDB_VERSION_MINOR = 1
NDB_VERSION_STATUS =
NM = /usr/local/arm/2.95.3/bin/arm-linux-nm -B
NMEDIT =
NOINST_LDFLAGS = -static
NON_THREADED_LIBS = -lcrypt -lnsl -lm
OBJDUMP = arm-linux-objdump
OBJEXT = o
OTOOL =
OTOOL64 =
PACKAGE = mysql
PACKAGE_BUGREPORT =
PACKAGE_NAME = MySQL Server
PACKAGE_STRING = MySQL Server 5.1.63
PACKAGE_TARNAME = mysql
PACKAGE_VERSION = 5.1.63
PATH_SEPARATOR = :
PDFLATEX = /usr/bin/pdflatex
PDFMANUAL = manual.pdf
PERL = /usr/bin/perl
PERL5 = /usr/bin/perl
PROTOCOL_VERSION = 10
PS = /bin/ps
RANLIB = arm-linux-ranlib
RM = /bin/rm
SAVE_ASFLAGS =
SAVE_CC = arm-linux-gcc
SAVE_CFLAGS = -g -O2
SAVE_CXX =
SAVE_CXXFLAGS =
SAVE_CXXLDFLAGS =
SAVE_LDFLAGS =
SED = /bin/sed
SET_MAKE =
SHARED_LIB_MAJOR_VERSION = 16
SHARED_LIB_VERSION = 16:0:0
SHELL = /bin/sh
STATIC_NSS_FLAGS =
STRIP = arm-linux-strip
SYSTEM_TYPE = unknown-linux-gnu
TAR = gtar
TARGET_LINUX = true
TERMCAP_LIB = /usr/lib/libncurses.so.5
TEST_NDBCLUSTER =
THREAD_LOBJECTS = thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o
VERSION = 5.1.63
WRAPLIBS =
YACC = bison -y -p MYSQL
ZLIB_DEPS = -lz
ZLIB_INCLUDES = -I$(top_srcdir)/zlib
ZLIB_LIBS = $(top_builddir)/zlib/libzlt.la
abs_builddir = /usr/local/src/mysql-5.1.63
abs_srcdir = /usr/local/src/mysql-5.1.63
abs_top_builddir = /usr/local/src/mysql-5.1.63
abs_top_srcdir = /usr/local/src/mysql-5.1.63
ac_ct_CC =
ac_ct_CXX =
ac_ct_DUMPBIN =
am__include = include
am__leading_dot = .
am__quote =
am__tar = pax -L -x ustar -w "$$tardir"
am__untar = pax -r
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias =
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
builddir = .
condition_dependent_plugin_includes = -I$(top_srcdir)/storage/heap/ -I$(top_srcdir)/storage/myisam/ -I$(top_srcdir)/storage/myisammrg/
condition_dependent_plugin_links = storage/heap/ha_heap.cc storage/myisam/ha_myisam.cc storage/myisammrg/ha_myisammrg.cc
condition_dependent_plugin_modules = ha_heap.cc ha_myisam.cc ha_myisammrg.cc
condition_dependent_plugin_objects = ha_heap.o ha_myisam.o ha_myisammrg.o
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
docs_dirs = Docs
dvidir = ${docdir}
exec_prefix = ${prefix}
extra_docs =
host = arm-unknown-linux-gnu
host_alias = arm-linux
host_cpu = arm
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
innodb_system_libs = -lrt
install_sh = $(SHELL) /usr/local/src/mysql-5.1.63/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
libmysqld_dirs =
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
lt_ECHO = echo
求成功移植mysql的大侠指教!
|
个人觉得RH9太老是主要原因