How to compile percona in osx?

397 views
Skip to first unread message

Jair Gaxiola

unread,
Feb 11, 2011, 2:10:02 AM2/11/11
to percona-d...@googlegroups.com
Hi,

I try compile percona with

CFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer"
CXXFLAGS="-arch i386 -arch x86_64 -O3 -fno-omit-frame-pointer
-felide-constructors -fno-exceptions -fno-rtti" ./configure
--prefix=/Applications/MEPP/Library/mysql
--disable-dependency-tracking --with-extra-charsets=complex
--enable-thread-safe-client --enable-local-infile
--with-unix-socket-path=/Applications/MEPP/tmp/mysql/mysql.sock
--with-charset=latin1 --with-collation=latin1_general_ci
--with-mysqld-user=_mysql --disable-shared --with-plugins=all


but retunrs this error

./lex.h:109: error: ‘CLIENT_STATS_SYM’ was not declared in this scope
./lex.h:249: error: ‘INDEX_STATS_SYM’ was not declared in this scope
./lex.h:370: error: ‘NOLOCK_SYM’ was not declared in this scope
./lex.h:398: error: ‘PATCHES’ was not declared in this scope
./lex.h:419: error: ‘QUERY_RESPONSE_TIME_SYM’ was not declared in this scope
./lex.h:485: error: ‘SLOW_SYM’ was not declared in this scope
./lex.h:504: error: ‘SQL_NO_FCACHE_SYM’ was not declared in this scope
./lex.h:536: error: ‘TABLE_STATS_SYM’ was not declared in this scope
./lex.h:543: error: ‘THREAD_STATS_SYM’ was not declared in this scope
./lex.h:579: error: ‘USER_STATS_SYM’ was not declared in this scope
In file included from ./lex_hash.h:25,
from sql_lex.cc:81:
./lex.h:109: error: ‘CLIENT_STATS_SYM’ was not declared in this scope
./lex.h:249: error: ‘INDEX_STATS_SYM’ was not declared in this scope
./lex.h:370: error: ‘NOLOCK_SYM’ was not declared in this scope
./lex.h:398: error: ‘PATCHES’ was not declared in this scope
./lex.h:419: error: ‘QUERY_RESPONSE_TIME_SYM’ was not declared in this scope
./lex.h:485: error: ‘SLOW_SYM’ was not declared in this scope
./lex.h:504: error: ‘SQL_NO_FCACHE_SYM’ was not declared in this scope
./lex.h:536: error: ‘TABLE_STATS_SYM’ was not declared in this scope
./lex.h:543: error: ‘THREAD_STATS_SYM’ was not declared in this scope
./lex.h:579: error: ‘USER_STATS_SYM’ was not declared in this scope
lipo: can't figure out the architecture type of:
/var/folders/vV/vVYXG0EWGXKFSdVsptlB+E+++TI/-Tmp-//cc1C3nHv.out
make[3]: *** [sql_lex.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any suggestions?

--
SIN ETIQUETAS.[ PUNTO ]
http://flavors.me/jyr
http://pythoncocoa.com
http://opentumblr.com

Oleg Tsarev

unread,
Feb 11, 2011, 2:25:54 AM2/11/11
to percona-d...@googlegroups.com
Hi,

Look like sql_yacc.h doesn't regenerate.
What the steps exactly before build?
What the exact version?

In any case, you can just remove sql/sql_yacc.h sql/sql_yacc.сс and try to build again.

Best regards, Oleg
-- 
Oleg Tsarev, Software Engineer, Percona Inc.

2011/2/11 Jair Gaxiola <jyr.g...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.




Jair Gaxiola

unread,
Feb 12, 2011, 12:03:09 AM2/12/11
to percona-d...@googlegroups.com
On Fri, Feb 11, 2011 at 1:25 AM, Oleg Tsarev <oleg....@percona.com> wrote:
> Hi,
> Look like sql_yacc.h doesn't regenerate.

How can i know that sql_yacc.h doesn't regenerate?

> What the steps exactly before build?

Just run configure with the options in the previous mail. Then run
make and return the error.

> What the exact version?
Percona-Server-5.1.54-rel12.5
Mac OSX 10.6.6

> In any case, you can just remove sql/sql_yacc.h sql/sql_yacc.сс and try to
> build again.

I removed sql/sql_yacc.h sql/sql_yacc.сс,after run make and perl
mysql-test-run.pl, returns the error


main.percona_log_connection_error [ fail ]
Test ended at 2011-02-11 22:28:03

CURRENT_TEST: main.percona_log_connection_error
--- /Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/r/percona_log_connection_error.result 2011-02-10
17:43:01.000000000 +0300
+++ /Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/r/percona_log_connection_error.reject 2011-02-12
07:28:02.000000000 +0300
@@ -12,4 +12,4 @@
ERROR HY000: Too many connections
SET GLOBAL max_connections = @old_max_connections;
SET GLOBAL log_warnings = @old_log_warnings;
-1
+ 1

mysqltest: Result length mismatch

- saving '/Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/var/log/main.percona_log_connection_error/'
to '/Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/var/log/main.percona_log_connection_error/'

Only 1057 of 1607 completed.
mysql-test-run: *** ERROR: Not all tests completed

Oleg Tsarev

unread,
Feb 12, 2011, 12:07:33 AM2/12/11
to percona-d...@googlegroups.com
Hi,

Ok, step by step.
Do you get Percona-Server from repository our from source-code archive?
Pleaes notice me exact way.

If repository,

bzr branch _branch_name_
(lp:percona-server for trunk, for example)
cd _branch_name_
make all && cd Percona-Server && BUILD/autorun.sh && ./configure ... && make && make install

WBR, Oleg

2011/2/12 Jair Gaxiola <jyr.g...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.

Jair Gaxiola

unread,
Feb 12, 2011, 12:16:41 AM2/12/11
to percona-d...@googlegroups.com
On Fri, Feb 11, 2011 at 11:07 PM, Oleg Tsarev <oleg....@percona.com> wrote:
> Hi,
> Ok, step by step.
> Do you get Percona-Server from repository our from source-code archive?

From source-code, I downloaded
http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.54-12.5/source/

> Pleaes notice me exact way.
> If repository,

can i to compile from source with ./configure ... && make && make
install ? or is necesary make all && cd Percona-Server &&
BUILD/autorun.sh


Valentine Gostev

unread,
Feb 12, 2011, 12:25:54 AM2/12/11
to percona-d...@googlegroups.com
yes, it is necessary to apply Percona's patches to community mysql's source

2011/2/12 Jair Gaxiola <jyr.g...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.




--
----------------
Best regards,
Valentine Gostev

MARK CALLAGHAN

unread,
Feb 12, 2011, 12:30:13 AM2/12/11
to percona-d...@googlegroups.com
Necessary, or just a good thing to do?

--
Mark Callaghan
mdca...@gmail.com

Jair Gaxiola

unread,
Feb 12, 2011, 12:33:07 AM2/12/11
to percona-d...@googlegroups.com
On Fri, Feb 11, 2011 at 11:25 PM, Valentine Gostev
<core.l...@gmail.com> wrote:
> yes, it is necessary to apply Percona's patches to community mysql's source

But, the file Percona-Server-5.1.54-rel12.5.tar.gz doesn't include the patches?

Valentine Gostev

unread,
Feb 12, 2011, 12:37:05 AM2/12/11
to percona-d...@googlegroups.com
If you retrieve bazaar branch, then it must be run, If you take source from  http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.54-12.5/source/ it is not necessary

2011/2/12 MARK CALLAGHAN <mdca...@gmail.com>

Oleg Tsarev

unread,
Feb 12, 2011, 12:47:12 AM2/12/11
to percona-d...@googlegroups.com


2011/2/12 Jair Gaxiola <jyr.g...@gmail.com>

On Fri, Feb 11, 2011 at 1:25 AM, Oleg Tsarev <oleg....@percona.com> wrote:
> Hi,
> Look like sql_yacc.h doesn't regenerate.

How can i know that sql_yacc.h doesn't regenerate?

> What the steps exactly before build?
Just run configure with the options in the previous mail. Then run
make and return the error.

> What the exact version?
Percona-Server-5.1.54-rel12.5
Mac OSX 10.6.6

> In any case, you can just remove sql/sql_yacc.h sql/sql_yacc.сс and try to
> build again.

I removed sql/sql_yacc.h sql/sql_yacc.сс,after run make and perl
mysql-test-run.pl, returns the error

1) Remove sql_sql_yacc.h sql/sql_yacc.cc
2) Run BUILD/autorun.sh
3) Run ./configure ...
4) Run make
 


main.percona_log_connection_error        [ fail ]
       Test ended at 2011-02-11 22:28:03

CURRENT_TEST: main.percona_log_connection_error
--- /Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/r/percona_log_connection_error.result        2011-02-10
17:43:01.000000000 +0300
+++ /Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/r/percona_log_connection_error.reject        2011-02-12
07:28:02.000000000 +0300
@@ -12,4 +12,4 @@
 ERROR HY000: Too many connections
 SET GLOBAL max_connections = @old_max_connections;
 SET GLOBAL log_warnings = @old_log_warnings;
-1
+       1

mysqltest: Result length mismatch

 - saving '/Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/var/log/main.percona_log_connection_error/'
to '/Users/jyr/Downloads/MEPP/src/Percona-Server-5.1.54-rel12.5/mysql-test/var/log/main.percona_log_connection_error/'

Only  1057  of 1607 completed.
mysql-test-run: *** ERROR: Not all tests completed


--
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.

Oleg Tsarev

unread,
Feb 12, 2011, 12:48:16 AM2/12/11
to percona-d...@googlegroups.com


2011/2/12 Valentine Gostev <core.l...@gmail.com>

If you retrieve bazaar branch, then it must be run, If you take source from  http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.54-12.5/source/ it is not necessary

This is depends from branch type.
Development branches require this (i.e. lp:percona-server, lp:~percona-dev/percona-server/5.5.8)
Release branch SHOULD NOT require this  



--

Jair Gaxiola

unread,
Feb 12, 2011, 2:11:37 AM2/12/11
to percona-d...@googlegroups.com
On Fri, Feb 11, 2011 at 11:47 PM, Oleg Tsarev <oleg....@percona.com> wrote:
>
>
> 2011/2/12 Jair Gaxiola <jyr.g...@gmail.com>
>>
>> On Fri, Feb 11, 2011 at 1:25 AM, Oleg Tsarev <oleg....@percona.com>
>> wrote:
>> > Hi,
>> > Look like sql_yacc.h doesn't regenerate.
>>
>> How can i know that sql_yacc.h doesn't regenerate?
>>
>> > What the steps exactly before build?
>> Just run configure with the options in the previous mail. Then run
>> make and return the error.
>>
>> > What the exact version?
>> Percona-Server-5.1.54-rel12.5
>> Mac OSX 10.6.6
>>
>> > In any case, you can just remove sql/sql_yacc.h sql/sql_yacc.сс and try
>> > to
>> > build again.
>>
>> I removed sql/sql_yacc.h sql/sql_yacc.сс,after run make and perl
>> mysql-test-run.pl, returns the error
>
> 1) Remove sql_sql_yacc.h sql/sql_yacc.cc
> 2) Run BUILD/autorun.sh
> 3) Run ./configure ...
> 4) Run make
>

Its works, thanks a lot.

Best Greatings

Oleg Tsarev

unread,
Feb 12, 2011, 2:22:11 AM2/12/11
to percona-d...@googlegroups.com
Jair,

Thank you for your feedback, we simplify building in nearest feature (./configure && make && make install)

WBR, Oleg

2011/2/12 Jair Gaxiola <jyr.g...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.

Jair Gaxiola

unread,
Feb 12, 2011, 2:36:02 AM2/12/11
to percona-d...@googlegroups.com
On Sat, Feb 12, 2011 at 1:22 AM, Oleg Tsarev <oleg....@percona.com> wrote:
> Jair,
> Thank you for your feedback, we simplify building in nearest feature

Your Welcome.

I write a desktop app for mac with nginx, php and of course percona,
this moment I compile all. When I have a beta I'll show. Now have
https://github.com/jyr/MEMP

Reply all
Reply to author
Forward
0 new messages