On Friday 30 July 2010 03:25:46 Sebastian Reitenbach wrote:
> Hi,
>
> at least when using MODULE = gcc3 it compiles, see appended patch, is it Ok
> to check in?

No. Using the gcc3 module is not an option. That just introduces ABI issues
with the mix of compilers and C++.

> Sebastian
>
> On Thursday 29 July 2010 09:11:20 am Sebastian Reitenbach wrote:
> > Hi,
> >
> > David gave me some ideas for things to try to get it to compile, so first
> > I removed the static in front of the declarations of is_linux_threads and
> > get_thread_registry in the header file. But then I ran into this error
> >
> > source='instance.cc' object='mysqlmanager-instance.o' libtool=no
> > DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp  cc
> > -DMYSQL_INSTANCE_MANAGER -DMYSQL_SERVER -I. -I../../include
> > -I../../include  -I../../include    -O2 -pipe -g -O0 -
> > felide-constructors -fno-exceptions -fno-rtti
> > -fno-implicit-templates -fno- exceptions -fno-rtti
> > -DUSE_PRAGMA_IMPLEMENTATION -c -o mysqlmanager-instance.o `test -f
> > 'instance.cc' || echo './'`instance.cc
> > instance.cc: In function `int wait_process(My_process_info *)':
> > instance.cc:82: cannot call member function `Manager::is_linux_threads()'
> > without object
> > instance.cc: In method `void
> > Instance_monitor::start_and_monitor_instance()': instance.cc:318: cannot
> > call member function `Manager::get_thread_registry()' without object
> > *** Error code 1
> >
> > Afterwards I moved the declaration to the instance.cc file, somewhere at
> > the top. But then got a different error. Unfortunately I did not saved
> > the output, but IIRC it was sth. like a "implicit declaration of ..."
> >
> > Right now its recompiling. I told it to use gcc3 module, will see how
> > that works.
> >
> > cheers,
> > Sebastian
> >
> > On Wednesday 28 July 2010 09:24:42 am Sebastian Reitenbach wrote:
> > > Hi,
> > > trying to link mysql 5.1.48 fails on a more or less -current sparc.
> > >
> > > Haven't found anything related in the mysql bug tracker, only found
> > > this here:
> > > http://www.fukuoka-edu.ac.jp/~kanamitu/install/sol9/mysql-5.1.43.txt
> > > but don't know whether they have a proposed solution there ;)
> > >
> > > cheers,
> > > Sebastian
> > >
> > > Making all in instance-manager
> > > /usr/local/bin/libtool  --tag=CXX    --mode=link cc   -O2 -pipe -g -O0
> > > - felide-constructors -fno-exceptions -fno-rtti  
> > > -fno-implicit-templates -fno- exceptions -fno-rtti
> > > -DUSE_PRAGMA_IMPLEMENTATION   -o mysqlmanager mysqlmanager-command.o 
> > > mysqlmanager-mysqlmanager.o
> > > mysqlmanager-manager.o mysqlmanager-log.o 
> > > mysqlmanager-thread_registry.o mysqlmanager-listener.o
> > > mysqlmanager-protocol.o
> > > mysqlmanager-mysql_connection.o  mysqlmanager- user_map.o
> > > mysqlmanager-messages.o  mysqlmanager-commands.o  mysqlmanager-
> > > instance.o  mysqlmanager-instance_map.o 
> > > mysqlmanager-instance_options.o mysqlmanager-buffer.o
> > > mysqlmanager-parse.o  mysqlmanager-guardian.o
> > > mysqlmanager-parse_output.o  mysqlmanager-user_management_commands.o
> > > mysqlmanager-angel.o liboptions.la  libnet.a  ../../vio/libvio.a
> > > ../../mysys/libmysys.a  ../../strings/libmystrings.a
> > > ../../dbug/libdbug.a - lssl -lcrypto  -lz -lm  -lpthread
> > > cc -O2 -pipe -g -O0 -felide-constructors -fno-exceptions -fno-rtti
> > > -fno- implicit-templates -fno-exceptions -fno-rtti
> > > -DUSE_PRAGMA_IMPLEMENTATION -o mysqlmanager mysqlmanager-command.o
> > > mysqlmanager-mysqlmanager.o mysqlmanager- manager.o mysqlmanager-log.o
> > > mysqlmanager-thread_registry.o mysqlmanager- listener.o
> > > mysqlmanager-protocol.o
> > > mysqlmanager-mysql_connection.o mysqlmanager-user_map.o
> > > mysqlmanager-messages.o mysqlmanager-commands.o mysqlmanager-instance.o
> > > mysqlmanager-instance_map.o mysqlmanager-
> > > instance_options.o mysqlmanager-buffer.o mysqlmanager-parse.o
> > > mysqlmanager- guardian.o mysqlmanager-parse_output.o
> > > mysqlmanager-user_management_commands.o mysqlmanager-angel.o
> > > ./.libs/liboptions.a libnet.a ../../vio/libvio.a ../../mysys/libmysys.a
> > > ../../strings/libmystrings.a ../../dbug/libdbug.a -lssl -lcrypto -lz
> > > -lm -lpthread
> > > ./.libs/liboptions.a(liboptions_la-options.o)(.text+0x744): In function
> > > `Options::load(int, char **)':
> > > /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/server-tools/instance-
> > > manager/options.cc:477: warning: strcpy() is almost always misused,
> > > please use strlcpy()
> > > ./.libs/liboptions.a(liboptions_la-options.o)
> > > (.text+0x7bc):/usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/server-tools/in
> > >st an ce- manager/options.cc:488: warning: strcat() is almost always
> > > misused, please use strlcat()
> > > mysqlmanager-log.o(.text+0xbc): In function `log(__sFILE *, char const
> > > *, char const *, char *)':
> > > /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/server-tools/instance-
> > > manager/log.cc:65: warning: sprintf() is often misused, please use
> > > snprintf() mysqlmanager-instance.o(.text+0x28): In function
> > > `wait_process(int *)':
> > > /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/server-tools/instance-
> > > manager/instance.cc:82: undefined reference to
> > > `Manager::is_linux_threads(void)'
> > > mysqlmanager-instance.o(.text+0x190): In function
> > > `Instance_monitor::start_and_monitor_instance(void)':
> > > /usr/ports/pobj/mysql-5.1.48/mysql-5.1.48/server-tools/instance-
> > > manager/instance.cc:318: undefined reference to
> > > `Manager::get_thread_registry(void)'
> > > collect2: ld returned 1 exit status
> > > *** Error code 1



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to