Results 1 to 4 of 4

Thread: Compiling s3tots

  1. #1
    Join Date
    Oct 2009
    Posts
    10

    Compiling s3tots

    Hi,
    I'm new here and all and was hoping to get through extracting TS's from my tivo without bugging you all but I've finally hit a road block. I have been trying to compile for a couple days now, s3tots. I am on a Mac, running OS X 10.6. I have XCode installed so have standard gcc and everything, so it shouldn't be an issue with the OS/tools. Anyways, when I attempt a compile, I get the following errors:

    Code:
    MacBook-Pro:src jeff$ make
    cc -c -Wall -m32 -O3 -Wuninitialized s3tots.c
    In file included from s3tots.c:44:
    defs.h:59:1: warning: "NBBY" redefined
    In file included from s3tots.c:29:
    /usr/include/sys/types.h:262:1: warning: this is the location of the previous definition
    cc -c -Wall -m32 -O3 -Wuninitialized debug.c
    In file included from debug.c:36:
    defs.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘boolean’
    In file included from debug.c:36:
    defs.h:72: error: expected specifier-qualifier-list before ‘u_int’
    defs.h:87: error: expected specifier-qualifier-list before ‘u_char’
    defs.h:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘debugflags’
    defs.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbg’
    defs.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dbgflag’
    defs.h:146: error: expected specifier-qualifier-list before ‘u_int’
    In file included from debug.c:37:
    externs.h:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘get32’
    externs.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘getshort’
    externs.h:45: error: expected declaration specifiers or ‘...’ before ‘u_short’
    externs.h:46: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:48: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘time_validate’
    externs.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rewrite_master’
    externs.h:56: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:56: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:57: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:58: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:59: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:63: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chunk_parse_rechdr’
    externs.h:64: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:64: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parse_config’
    externs.h:68: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:69: error: expected declaration specifiers or ‘...’ before ‘boolean’
    externs.h:70: error: expected declaration specifiers or ‘...’ before ‘u_int’
    externs.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chunk_hdr_len’
    externs.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chunk_seek_soft’
    debug.c: In function ‘parse_debug_flags’:
    debug.c:44: error: ‘debugflags’ undeclared (first use in this function)
    debug.c:44: error: (Each undeclared identifier is reported only once
    debug.c:44: error: for each function it appears in.)
    make: *** [debug.o] Error 1
    MacBook-Pro:src jeff$
    As you can see there's quite a bit going wrong. Since I'm no programmer and don't claim to be, I don't even know where to begin. This is the last hurdle I'm hitting, I socketed my TiVo prom, read, edited and flashed the prom code, did the kernel mod, edited tivoapp, got mfs_ftp running at ~2.5MB/s and got everything working great with a bit of help on IRC, and it comes down to a piece of software holding me back! Any input would be greatly appreciated since I have no idea what to do unfortunately.

    Also, it's probably useful to know that I'm using s3tots 1.3, OS X 10.6.2, and have installed XCode 3.2.1 to get the compiler and all otherr tools that may be needed. Unfortunately there's no binary for OS X provided in the zip file, so I have to compile. Again any input is greatly appreciated as I'd love to get this working as soon as possible!

    Thanks,
    Jeff

  2. #2
    Join Date
    Oct 2009
    Posts
    10
    Also I figured I'd add in a new post that I'm not even sure what language this is, heh. I assume C, but in case it's C+ I changed filename extensions to .cpp and get the following error output instead. Hopefully someone here knows where to start, and which is the proper language.

    Code:
    MacBook-Pro:src jeff$ make
    g++    -c -o s3tots.o s3tots.cpp
    In file included from s3tots.cpp:44:
    defs.h:59:1: warning: "NBBY" redefined
    In file included from s3tots.cpp:29:
    /usr/include/sys/types.h:262:1: warning: this is the location of the previous definition
    s3tots.cpp: In function ‘void write_stream(stream_status_t*, char*, u_int)’:
    s3tots.cpp:142: warning: deprecated conversion from string constant to ‘char*’
    s3tots.cpp: In function ‘void stream_buffer(stream_status_t*, char*, u_int)’:
    s3tots.cpp:174: warning: deprecated conversion from string constant to ‘char*’
    s3tots.cpp: In function ‘void ty3_init_ts_buffer()’:
    s3tots.cpp:1147: warning: deprecated conversion from string constant to ‘char*’
    s3tots.cpp:1149: error: invalid conversion from ‘void*’ to ‘char*’
    s3tots.cpp: In function ‘boolean process_main(int, char**, config_state_t*)’:
    s3tots.cpp:1162: error: invalid conversion from ‘void*’ to ‘char*’
    s3tots.cpp:1164: warning: deprecated conversion from string constant to ‘char*’
    s3tots.cpp:1188: warning: deprecated conversion from string constant to ‘char*’
    s3tots.cpp: In function ‘void process(config_state_t*)’:
    s3tots.cpp:1232: warning: deprecated conversion from string constant to ‘char*’
    s3tots.cpp: In function ‘void badarg(char*)’:
    s3tots.cpp:1263: warning: deprecated conversion from string constant to ‘char*’
    make: *** [s3tots.o] Error 1
    MacBook-Pro:src jeff$

  3. #3
    Join Date
    Nov 2002
    Posts
    1,076
    I've fixed the source so that it cleanly compiles with current xcode.
    See version 1.4.

  4. #4
    Join Date
    Oct 2009
    Posts
    10
    Awesome thanks for the quick help. I had to edit the Makefile a tiny bit, but I suspect that was due to my system config. Got it all working now though.
    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •