tokyo tyrant socket fix for snow leopard

3 views
Skip to first unread message

Flinn Mueller

unread,
Mar 13, 2010, 12:58:27 AM3/13/10
to tokyocabi...@googlegroups.com
On Mac OSX 10.6 (Snow Leopard) I receive this warning during make:

ttutil.c: In function ‘ttopenservsockunix’:
ttutil.c:190: warning: call to __builtin___snprintf_chk will always overflow destination buffer
ttutil.c: In function ‘ttopensockunix’:
ttutil.c:130: warning: call to __builtin___snprintf_chk will always overflow destination buffer

I then receive this error when attempting to start ttserver using a socket:

$ ttserver -host /tmp/ttserver.sock -port 0 worker.tct 
2010-03-13T00:46:42-05:00 SYSTEM --------- logging started [18312] --------
2010-03-13T00:46:42-05:00 SYSTEM server configuration: host=/tmp/ttserver.sock port=0
2010-03-13T00:46:42-05:00 SYSTEM maximum connection: 8191
2010-03-13T00:46:42-05:00 SYSTEM opening the database: worker.tct
Abort trap

The following path fixes the problem and passes tests.

I've also forwarded this to Mikio Hirabayashi.

macosx_snow_leopard_socket_fix.patch

John Mettraux

unread,
Mar 15, 2010, 3:52:18 AM3/15/10
to tokyocabi...@googlegroups.com
On Sat, Mar 13, 2010 at 2:58 PM, Flinn Mueller <thefli...@gmail.com> wrote:
>
> The following path fixes the problem and passes tests.

Many thanks for sharing !

--
John Mettraux - http://jmettraux.wordpress.com

Reply all
Reply to author
Forward
0 new messages