I am tring to install MySQL on a raq2. There's already a version of MySQL
installed on the box -- I put it there a year and a half ago.
Here's what I've done:
(1) Configure like so:
./configure --with-low-memory --disable-assembler --disable-shared \
--with-mysqld-ldflags="-all-static"
--with-client-ldflags="-all-static" \
mipsel-unknown-linux-gnu
and it dies:
mini_client.cc: In function `struct st_mysql * mc_mysql_connect(struct
st_mysql *, const char *, const char *, const char *, const char *,
unsigned int, const char *, unsigned int)':
mini_client.cc:623: passing `int *' as argument 5 of
`gethostbyname_r(const char *, hostent *, char *, unsigned int, hostent
**, int *)'
(2) configure like so (this is rough, I didn't write it down):
./configure --with-low-memory
collect[2]: ld failed, blah blah blah
(3)
so I installed the newest binutils (2.11.2) from gnu.org, and did a make
clean. then configured like this:
./configure --with-low-memory --with-gnu-ld
and then set LD to /usr/local/bin/ld in the Makefile and rebuilt it.
The server appears to be fine, but all the command-line tools (mysqldump,
mysql, mysqladmin) segfault immediately.
$ strace mysqladmin ping
[snip]
sigaction(SIGINT, {0x4044c4, [], SA_RESTART}, {SIG_DFL}) = 0
sigaction(SIGTERM, {0x4044c4, [], SA_RESTART}, {SIG_DFL}) = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 3
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
connect(3, {sun_family=AF_UNIX, sun_path="/tmp/mysql.sock"}, 110) = 0
brk(0x1000d000) = 0x1000d000
setsockopt(3, IPPROTO_IP1, [8], 4) = -1 EOPNOTSUPP (Operation not
supported)
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
read(3, "\0\0\0\0", 4) = 4
read(3, "(\0\0\0003.44\0\5\0\0\0B6\'\\~&<"..., 40) = 40
open("", O_RDONLY) = 4
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
$ strace mysql
connect(3, {sa_family=4160, sa_data="/tmp/mysql.soc"}, 110) = 0
brk(0x1000c000) = 0x1000c000
setsockopt(3, IPPROTO_IP1, [8], 4) = -1 EOPNOTSUPP (Operation not
supported)
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 2147482016) = 0
read(3, "(\0\0\0", 4) = 4
read(3, "\n3.23.44\0\7\0\0\0cJ*/O|H.\0,\0"..., 40) = 40
open("", O_RDONLY) = 4
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
help, please.
Paul
shad 96c / uw cs 2001 / mac activist / eda / fumbler
fan of / jewel / sophie b. / sarah slean / steve poltz / emm gryner /
/ x-files / buffy / dawson's creek / habs / bills / 49ers /
t h i n k d i f f e r e n t.
"I'd rather see the world from another angle." -- Jewel Kilcher
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php