List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:July 30 1999 9:13pm
Subject:comilation problem - 3.23.1-alpha DU 4.0e
View as plain text  
>>>>> "Douglas" == Douglas B Jones <douglas@stripped>
> writes:

Douglas> Hi,

Douglas> Tried to comile 3.23.1-alpha on DU 4.0e with the following script:

Douglas> --------------------------------------------
Douglas> #!/bin/csh
Douglas> #cd mysql-3.22.25
Douglas> cd mysql-3.23.1-alpha
Douglas> setenv CC "cc -pthread"
Douglas> setenv CXX "cxx -pthread -O"
Douglas> ./configure --prefix=/usr/local/mysql\
Douglas>         --with-mysqld-ldflags=-all-static --disable-shared\
Douglas>         --with-named-thread-libs="-lmach -lexc -lc"
Douglas> #       --with-named-thread-libs="-lpthread -lmach -lexc -lc"
Douglas> make
Douglas> --------------------------------------------
Douglas> Here is a tail of the make output:
Douglas> --------------------------------------------
Douglas> creating libmysqlclient.la
Douglas> (cd .libs && rm -f libmysqlclient.la && ln -s
> ../libmysqlclient.la
Douglas> libmysqlclien
Douglas> t.la)
Douglas> cxx -pthread -O -DUNDEF_THREADS_HACK -I./../include -I../include
Douglas>                 -I./.. -I.. -I..    -O   -DDBUG_OFF -c mysql.cc
Douglas> cxx: Error: mysql.cc, line 286: too many arguments in function call
Douglas>       line=readline((char*) (buffer.is_empty() ? "mysql> " :
Douglas> --------------------^
Douglas> cxx: Error: mysql.cc, line 804: too many arguments in function call
Douglas>     return completion_matches(text, (CPFunction*) new_command_generator);
Douglas> ------------------------------^
Douglas> cxx: Info: 2 errors detected in the compilation of "mysql.cc".
Douglas> *** Exit 1
Douglas> Stop.
Douglas> *** Exit 1
Douglas> Stop.
Douglas> *** Exit 1
Douglas> Stop.
Douglas> --------------------------------------------
Douglas> As a note: this compilation script above has worked on
Douglas> all of the 3.22 realeases and I think the 3.21 gamma one....

Douglas> If you need any more information, please let me know.

Hi!

The problem is that we upgraded the use the newest readline library
with MySQL 3.23,  It looks like we have to patch the readline header
file for your compiler.

The problem is that your compiler doesn't define __STDC__

You can probely fix this by editing the readline/rlstdc.h file by
changeing:

#if defined (__STDC__)

to

#if defined (__STDC__) || defined(__cplusplus)

Mail me if this works!

Regards,
Monty
 
Thread
comilation problem - 3.23.1-alpha DU 4.0eDouglas B. Jones16 Jul
  • comilation problem - 3.23.1-alpha DU 4.0eMichael Widenius31 Jul