Hi,

I must have a weird system, but i can't get transcode-cvs-head to compile at 
all.
There are currently three problems (I can't pass through the last one).
I'm using a gentoo system with gcc-3.4.6

1) configure
with no further options.
My buildsystem forgets to add '-lX11 -lXext' when compiling x11source in 
import/ directory.
Manually running the last 'gcc ...' command with the X libraries "solves" the 
problem

2) configure --without-x
x11source.c:394: error: conflicting types for 'tc_x11source_open'
x11source.h:142: error: previous declaration of 'tc_x11source_open' was here
x11source.c:394: error: conflicting types for 'tc_x11source_open'
x11source.h:142: error: previous declaration of 'tc_x11source_open' was here

This patch solves the problem
==========================
--- transcode-cvs/import/x11source.c    2006-09-15 22:42:50.000000000 +0200
+++ transcode/import/x11source.c        2006-09-26 17:52:26.000000000 +0200
@@ -390,7 +390,8 @@
 #else /* HAVE_X11 */


-int tc_x11source_open(TCX11Source *handle, const char *display, int mode)
+int tc_x11source_open(TCX11Source *handle, const char *display,
+                      int mode, uint32_t format)
 {
     tc_log_error(__FILE__, "X11 support unavalaible");
     return -1;
==========================

3)
Here everything stops. I have no clue how to solve this problem:
cmdline_def.h:202: warning: initializer element is not computable at load time
cmdline_def.h:202: error: initializer element is not constant
cmdline_def.h:202: error: (near initialization for `tc_options[2].has_arg')
cmdline_def.h:202: error: initializer element is not constant
cmdline_def.h:202: error: (near initialization for `tc_options[2]')
[...]
cmdline_def.h:1531: warning: initializer element is not computable at load 
time
cmdline_def.h:1531: error: initializer element is not constant
cmdline_def.h:1531: error: (near initialization for `tc_options[99].has_arg')
cmdline_def.h:1531: error: initializer element is not constant
cmdline_def.h:1531: error: (near initialization for `tc_options[99]')
cmdline_def.h:1577: error: initializer element is not constant
cmdline_def.h:1577: error: (near initialization for `tc_options[100]')
make[2]: *** [cmdline.o] Error 1
make[2]: Leaving directory `/home/user/Projekte/transcode.compile/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/Projekte/transcode.compile'
make: *** [all] Error 2

There are much more of these.
Every 'TC_OPTION(...)' in 'src/cmdline_def.h', except for the first two, gives 
these errors.

Any ideas?


Thanks
Thomas

Reply via email to