----------------------------------
>Description:
I get errors when I try to compile the distribution.  The first one happens
in the gemini tree and is caused by a prototype mismatch between the bzero()
defined in <strings.h> and the one defined in the mysql source. Apparently,
the one on my system takes a void* for the first argument and the mysql
source expects char*. I got around this by lying in config.h and saying I
don't have string_h or strings_h and that I don't have bzero. Now gemini
compiles fine.
But, the problems continue. The next problem occurs in the client tree. I
guess since I said previously that I don' t have the strings.h file, I'm
leaving strlen undeclared and client/sql_string.cc balks at this.
>How-To-Repeat:
I'm not sure what to put here because this happened even the first time I
tried to compile. I'm running RedHat and it came with mysql rpm's but I want
to set the localstatedir to be something else and it didn't seem possible
with a binary distribution unless I use symlinks.  So actually if you know
how to do this please enlighten me and I won't need to compile.
>Fix:
BTW I used mysqlbug but I can't send mail from the machine where it's
installed so I have to paste things here. Sorry if the format isn't exactly
right.  I'm not on the mysql list so if you happen to know how to solve my
problem please cc to me at [EMAIL PROTECTED]
>Submitter-Id:
>Originator:  Jonathan [EMAIL PROTECTED]
>Organization:
>MySQL support: none
>Synopsis:  multiple errors involving string functions when compiling
mysql+gemini 3.23.39 on Athlon running Linux 2.4.3-12
>Severity:  critical (for me)
>Priority:  medium (I'd really rather not settle for the default location of
localstatedir)
>Category:      mysql
>Class: sw-bug or configuration problem
>Release:       mysql-3.23.39 (Source distribution)      (according to
mysqlbug)
>Environment:
Ok, I'm pasting here the output of mysqlbug but I have some beef with this:
#1, in "Compilation info" it does NOT show the vars that I set when I
compiled.
#2, in "Configure command" it does NOT show the settings that I specified
I know that what I specified was used because I could see it in make's
output. I don't know why mysqlbug didn't detect the right stuff. So, after
mysqlbug's output I put a little line of === and then pasted what I used.

System: Linux beer 2.4.3-12 #7 Thu Jul 5 15:07:25 EDT 2001 i686 unknown
Architecture: i686
Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
Compilation info: CC='gcc'  CFLAGS=''  CXX='gcc'  CXXFLAGS=''  LDFLAGS=''
LIBC:
lrwxrwxrwx    1 root     root           13 Jun 23  2000 /lib/libc.so.6 ->
libc-2.2.2.so
-rwxr-xr-x    1 root     root      1236396 Apr  6 17:58 /lib/libc-2.2.2.so
-rw-r--r--    1 root     root     26350254 Apr  6 15:27 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Apr  6 15:27 /usr/lib/libc.so
Configure command:
./configure  --with-unix-socket-path=/var/tmp/mysql.sock --with-low-memory\
 --with-mit-threads=yes --without-perl --enable-thread-safe-client --with-be
rkeley-db --with-\
innodb
========
Compilation info:   CC=gcc CFLAGS="-O3 -DDBUG_OFF" CXX=gcc
CXXFLAGS="-O3 -DDBUG_OFF -fno-implicit-templates -felide-constructors -fno-e
xceptions -fno-rtti"

Configure command:

./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --localstated
ir=/system4/database/mysql/data --with-gemini=gemini --enable-assembler --wi
th-mysqld-ldflags=-all-static --enable-thread-safe-client

>Additional info:
In file included from mysql.cc:49:
sql_string.h: In method `String::String (const char *)':
sql_string.h:39: `strlen' undeclared (first use this function)
sql_string.h:39: (Each undeclared identifier is reported only once for
each function it appears in.)
In file included from ../readline/chardefs.h:37,
                 from ../readline/keymaps.h:31,
                 from ../readline/readline.h:36,
                 from mysql.cc:83:
/usr/include/string.h: At top level:
/usr/include/string.h:218: `size_t strlen (const char *)' used prior to
declaration
/usr/include/string.h:242: parse error before `)'
/usr/include/string.h:242: parse error before `)'
/usr/include/string.h:242: parse error before `)'
/usr/include/string.h:242: warning: `memcpy' initialized and declared
`extern'
/usr/include/string.h:242: variable or field `memcpy' declared void
/usr/include/string.h:242: `int memcpy' redeclared as different kind of
symbol
/usr/include/string.h:38: previous declaration of `void *memcpy (void
*, const void *, unsigned int)'
/usr/include/string.h:242: initializer list being treated as compound
expression
make: *** [mysql.o] Error 1


----------------------------------
By the way if I have done something wrong in reporting this and it's about
to be ignored, please let me know so I can fix whatever and get some help.
I've been using the binaries on another machine for over a year and things
have been just peachy until this weird thing came up with needing to put the
database files in a different location.
Thanks,
Jonathan Buhacoff
[EMAIL PROTECTED]


---------------------------------------------------------------------
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

Reply via email to