Bug #3631 slave.cc:3534: error: assignment of read-only location
Submitted: 3 May 2004 1:19 Modified: 3 May 2004 10:11
Reporter: Ian Holsman Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:mysql-4.1 BK version OS:MacOS (OS/X)
Assigned to: Sergei Golubchik CPU Architecture:Any

[3 May 2004 1:19] Ian Holsman
Description:
Hi.
first.. let me say that this is the BK-bits version I pulled and not an offical release or anything.

this is the error I get
make[4]: Nothing to be done for `all'.
if g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql-4.1\"" -DDATADIR="\"/usr/local/mysql-4.1/var\"" -DSHAREDIR="\"/usr/local/mysql-4.1/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../ndb/include -I../ndb/include/ndbapi -I../include -I../regex -I.   -I/sw/include  -O3 -DDBUG_OFF   -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -MT slave.o -MD -MP -MF ".deps/slave.Tpo" \
  -c -o slave.o `test -f 'slave.cc' || echo './'`slave.cc; \
then mv -f ".deps/slave.Tpo" ".deps/slave.Po"; \
else rm -f ".deps/slave.Tpo"; exit 1; \
fi
slave.cc: In function `int queue_old_event(MASTER_INFO*, const char*, long 
   unsigned int)':
slave.cc:3534: error: assignment of read-only location
slave.cc:3534: error: assignment of read-only location
slave.cc:3534: error: assignment of read-only location
slave.cc:3534: error: assignment of read-only location
make[4]: *** [slave.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ianh:/src/mysql-4.1 ianh$ 

this is my configure line
./configure --with-ndbcluster --with-isam --with-vio --with-openssl --prefix=/usr/local/mysql-4.1 --enable-thread-safe-client

This has been going on for a week or so (which is when I first started trying to compile it)

How to repeat:
$ make

Suggested fix:
sorry.. I don't know your code well enough
[3 May 2004 10:11] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

fixed and pushed.