List:Internals« Previous MessageNext Message »
From:Mats Kindahl Date:November 13 2009 8:19am
Subject:Re: Error compiling MySQL
View as plain text  
Hi Amila,

I know it is poor style to reply to yourself, but just one additional comment so
that you can get started:

I use the following configuration command to get it to work:

./configure --prefix=/usr/local/mysql --enable-assembler
--with-extra-charsets=complex --enable-thread-safe-client --with-big-tables
--with-readline --with-debug=full --with-ssl --with-plugins=max
--with-embedded-server --with-error-inject --with-experimental-collations
--enable-local-infile

This is because I need to ensure that changes work with all code. You may be
able to remove some of the options, but I have not tried to see what works.

Best wishes,
Mats Kindahl

Mats Kindahl wrote:
> 
> Amila Liyanaarachchi wrote:
>> Hi Mats,
>>
>> I'm a beginer in this area. What I want is to do a modification on
>> query cache, so I'm just compiling the downloaded source to see
>> whether it get compiled on my pc without any problem before the
>> modification.
>> For this purpose I don't know the most suitable configuration for me.
>> Could you please advice me?
> 
> Hi Amila,
> 
> Something like
> 
> 	./configure
> 	make
> 
> should work.
> 
> Interestingly enough, I did just that on a local clone, and got the error you
> describe. :)
> 
> It is a bug, so I reported it as BUG#48750
> (http://bugs.mysql.com/bug.php?id=48750). Thank you for pointing this bug out.
> 
> Best wishes,
> Mats Kindahl
> 
> 
>> Thanks,
>> Amila
>>
>> On Wed, Nov 11, 2009 at 10:09 PM, Mats Kindahl <mats@stripped> wrote:
>>> Hi Amila,
>>>
>>> I'm building all servers all the time and have specifically done so using
>>> Kubuntu 9.10. I have no problems (except what I have introduced myself when
>>> changing the code).
>>>
>>> What configuration options are you using?
>>>
>>> Best wishes,
>>> Mats Kindahl
>>>
>>> Amila Liyanaarachchi wrote:
>>>> Hi,
>>>>
>>>> I'm getting the following error while trying to build the MySQL server
>>>> 5.1.38 source on Kubuntu 9.10.
>>>>
>>>>
> -------------------------------------------------------------------------------------------------------------------------------
>>>> + for file in include/mysql/plugin.h include/mysql.h
>>>> + gcc -E -nostdinc -dI -I./include -I./include/mysql -I./sql
>>>> -I./include -I./include/mysql -I./sql include/mysql/plugin.h
>>>> + /bin/sed -e '/^# /d' -e '/^[  ]*$/d' -e '/^#pragma GCC
>>>> set_debug_pwd/d' -e '/^#ident/d'
>>>> + /usr/bin/diff -w include/mysql/plugin.h.pp ./abi_check.out
>>>> + /bin/rm ./abi_check.out
>>>> + for file in include/mysql/plugin.h include/mysql.h
>>>> + gcc -E -nostdinc -dI -I./include -I./include/mysql -I./sql
>>>> -I./include -I./include/mysql -I./sql include/mysql.h
>>>> + /bin/sed -e '/^# /d' -e '/^[  ]*$/d' -e '/^#pragma GCC
>>>> set_debug_pwd/d' -e '/^#ident/d'
>>>> + /usr/bin/diff -w include/mysql.h.pp ./abi_check.out
>>>> + /bin/rm ./abi_check.out
>>>> ../mysys/libmysys.a(my_thr_init.o): In function `my_thread_end':
>>>> /home/amila/mysql-5.1.38/mysql-5.1.38/mysys/my_thr_init.c:335:
>>>> undefined reference to `_db_pop_'
>>>> collect2: ld returned 1 exit status
>>>> make[1]: *** [factorial] Error 1
>>>> make: *** [all-recursive] Error 1
>>>>
> -------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>>
>>>> Any ideas ??
>>>>
>>> --
>>> Mats Kindahl
>>> Senior Software Engineer
>>> Database Technology Group
>>> Sun Microsystems
>>>
> 

-- 
Mats Kindahl
Senior Software Engineer
Database Technology Group
Sun Microsystems
Thread
Error compiling MySQLAmila Liyanaarachchi11 Nov
  • RE: Error compiling MySQLThomas Jones-Low11 Nov
  • Re: Error compiling MySQLDavi Arnaut11 Nov
  • Re: Error compiling MySQLMats Kindahl11 Nov
    • Re: Error compiling MySQLAmila Liyanaarachchi12 Nov
      • Re: Error compiling MySQLMats Kindahl13 Nov
        • Re: Error compiling MySQLMats Kindahl13 Nov
  • Re: Error compiling MySQLPaul McCullagh11 Nov