[chuck-dev] Porting ChucK to OpenBSD

Will Maier willmaier at ml1.net
Mon Sep 29 09:21:50 EDT 2008


Hello-

I'm an OpenBSD ports[0] developer and I'd like to add ChucK to our
ports tree. I've made a little progress this morning, but I've run
into a few compilation errors that I hoped you could help debug
(assuming this is the appropriate list for such inquiries).

First, I'm using GCC 3.3.5 on OpenBSD -current/i386 to build ChucK
version 1.2.1.2. For us, it seems to make the most sense to build
ChucK using OSS (since Jack seems to require ALSA -- which we do not
provide, though we have Jack in our tree -- in the end). When
building, then, with src/makefile.oss, I get:

    [...]
    g++ -D__LINUX_OSS__ -c -I/usr/local/include -D__CK_SNDFILE_NATIVE__ chuck_compile.cpp
    In file included from chuck_compile.cpp:41:
    ugen_stk.h:174: error: syntax error before `__extension__'
    ugen_stk.h:174: error: syntax error before `?' token
    ugen_stk.h:174: error: syntax error before `)' token
    ugen_stk.h:174: error: syntax error before `:' token
    ugen_stk.h:174: error: ISO C++ forbids declaration of `__swap16md_x' with no
       type
    ugen_stk.h:174: error: syntax error before `}' token
    In file included from chuck_compile.cpp:41:
    ugen_stk.h:71:1: unterminated #if
    ugen_stk.h:36:1: unterminated #ifndef
    gmake: *** [chuck_compile.o] Error 1

C++ isn't my strong suit, but the referenced lines in src/ugen_stk.h
seem entirely innocuous to me. Can you suggest any further steps to
debug this issue?

Thanks!

[0] http://www.openbsd.org/ports.html

-- 

[Will Maier]-----------------[willmaier at ml1.net|http://www.lfod.us/]


More information about the chuck-dev mailing list