[chuck-users] New error message appears in 64 bit

John Ellinger info at mibac.com
Fri Sep 14 12:18:03 EDT 2012


Hi,

I'm using the latest ChucK 1.3.1.1 64bit on Mac 10.7.4.

I've been getting this error message whenever running ChucK in the Terminal:

[chuck]: cannot bind to tcp port 8888…

ChucK programs continue to run fine, it's the first time I've seen this error message.

I've been compiling the ChucK svn source code in Xcode for several months. The newest version compiles cleanly with no errors or warnings on Xcode 4.3.3. I've modified the Xcode project settings specifically to x86_64 and OS 10.7.

This error string appears only once in chuck_main.cpp line 946.
#ifndef __DISABLE_OTF_SERVER__
        // log
        EM_log( CK_LOG_SYSTEM, "starting listener on port: %d...", g_port );

        // start tcp server
        g_sock = ck_tcp_create( 1 );
        if( !g_sock || !ck_bind( g_sock, g_port ) || !ck_listen( g_sock, 10 ) )
        {
>>>>            fprintf( stderr, "[chuck]: cannot bind to tcp port %li...\n", g_port );
            ck_close( g_sock );
            g_sock = NULL;
        }
        else
        {
         ...
        }
#endif // __DISABLE_OTF_SERVER__

In chuck_def.h "#define __DISABLE_OTF_SERVER__" is only defined if  __CHIP_MODE__ is defined. I could not find "#define __CHIP_MODE__" anywhere in the 1.3.1.1 branch. If __CHIP_MODE__ is not defined, __DISABLE_OTF_SERVER__ is not defined, hence the error.

John


John Ellinger                           email: info at mibac.com
MiBAC Music Software                    1019 College St.
Music Instruction By A Computer         Northfield MN 55057
http://www.mibac.com



More information about the chuck-users mailing list