Link to home
Start Free TrialLog in
Avatar of j2
j2Flag for Sweden

asked on

Compiling the IVTV X Driver under debian Etch?

I am trying to compile ivtv_xdriver_0.10.6 on etch (trying to get support
for xv), but I get the below. I have also tried the trunk SVN with the same
result.



mythbox:~/Download/IVTV/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/x
free86/drivers/ivtv# xmkmf /usr/src/xorg-server-1.0.2/
mv -f Makefile Makefile.bak
imake -I/usr/src/xorg-server-1.0.2//config/cf
-DTOPDIR=/usr/src/xorg-server-1.0.2/ -DCURDIR=.
Imakefile.c:39: error: Imake.tmpl: No such file or directory
imake: Exit code 1.
  Stop.
mythbox:~/Download/IVTV/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/x
free86/drivers/ivtv#


mythbox:~/Download/IVTV/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/x
free86/drivers/ivtv# xmkmf /usr/src/xorg-7.0.22/
mv -f Makefile Makefile.bak
imake -I/usr/src/xorg-7.0.22//config/cf -DTOPDIR=/usr/src/xorg-7.0.22/
-DCURDIR=.
Imakefile.c:39: error: Imake.tmpl: No such file or directory
imake: Exit code 1.
  Stop.
mythbox:~/Download/IVTV/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/x
free86/drivers/ivtv#

Avatar of manish_regmi
manish_regmi

Can u just try to

download the driver
unzip
make
make install

http://www.ivtvdriver.org/index.php/Howto

defines more.


regards
Manish Regmi
Avatar of j2

ASKER

Ive been through all the howto's with a fine tooth comb.

The initial makefile clearly states that

xmkmf /PATH_TO_X_SOURCE/

must be used.
Avatar of Duncan Roe
Try "cd /usr/src/xorg-server-1.0.2/;xmkmf"
Avatar of j2

ASKER

mythbox:/usr/src/xorg-server-1.0.2# xmkmf
imake -DUseInstalled -I/usr/lib/X11/config
imake: No such file or directory
imake: No description file.
  Stop.
mythbox:/usr/src/xorg-server-1.0.2#
/usr/lib/X11/config should be a directory with .cf, .tmpl & .rules files. Do you have it on your system? Maybe you need to install X11-devel
Avatar of j2

ASKER

mythbox:/usr/lib/X11/config# ls
Amoeba.cf        hp.cf         necLib.tmpl       sony.cf
apollo.cf        hpLib.rules   NetBSD.cf         sun.cf
bsd.cf           hpLib.tmpl    noop.rules        sunLib.rules
bsdi.cf          ibm.cf        nto.cf            sunLib.tmpl
bsdiLib.rules    ibmLib.rules  nto.rules         sv3Lib.rules
bsdiLib.tmpl     ibmLib.tmpl   Oki.cf            sv3Lib.tmpl
bsdLib.rules     Imake.cf      oldlib.rules      sv4Lib.rules
bsdLib.tmpl      Imake.rules   OpenBSD.cf        sv4Lib.tmpl
cde.rules        Imake.tmpl    OpenBSDLib.rules  svr3.cf
cde.tmpl         isc.cf        OpenBSDLib.tmpl   svr4.cf
convex.cf        Library.tmpl  os2.cf            Threads.tmpl
cray.cf          linux.cf      os2Lib.rules      ultrix.cf
cross.def        lnxdoc.rules  os2Lib.tmpl       usl.cf
cross.rules      lnxdoc.tmpl   os2.rules         version.def
cygwin.cf        lnxLib.rules  osf1.cf           Win32.cf
cygwin.rules     lnxLib.tmpl   osfLib.rules      Win32.rules
cygwin.tmpl      luna.cf       osfLib.tmpl       WinLib.tmpl
darwin.cf        lynx.cf       pegasus.cf        X11.rules
darwinLib.rules  mach.cf       QNX4.cf           X11.tmpl
darwinLib.tmpl   macII.cf      QNX4.rules        x386.cf
date.def         mingw.cf      sco5.cf           xf86.rules
DGUX.cf          mingw.rules   sco.cf            xf86site.def
dmx.cf           mingw.tmpl    scoLib.rules      xf86.tmpl
DragonFly.cf     minix.cf      sequent.cf        xfree86.cf
FreeBSD.cf       Mips.cf       sequentLib.rules  xorg.cf
fujitsu.cf       Motif.rules   ServerLib.tmpl    xorgsite.def
generic.cf       Motif.tmpl    Server.tmpl       xorg.tmpl
gnu.cf           moto.cf       sgi.cf            xorgversion.def
gnuLib.rules     ncr.cf        sgiLib.rules
gnuLib.tmpl      nec.cf        sgiLib.tmpl
host.def         necLib.rules  site.def
mythbox:/usr/lib/X11/config#
Looks Ok. We need to find out what file imake is complaining abot. To do this, type
  strace -f xmkmf
when cd'd to /usr/src/xorg-server-1.0.2
This will produce a lot of output, but near the end you'll se an unsuccessful attempt to open some file. That's the one you need.
Avatar of j2

ASKER

mythbox:/usr/src/xorg-server-1.0.2# strace -f xmkmf
execve("/usr/bin/xmkmf", ["xmkmf"], [/* 16 vars */]) = 0
uname({sys="Linux", node="mythbox", ...}) = 0
brk(0)                                  = 0x80f5000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f9a000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52836, ...}) = 0
mmap2(NULL, 52836, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\345"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=267104, ...}) = 0
mmap2(NULL, 268396, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f4b000
mmap2(0xb7f84000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x39) = 0xb7f84000
mmap2(0xb7f8c000, 2156, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f8c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libdl.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\f\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9592, ...}) = 0
mmap2(NULL, 12404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f47000
mmap2(0xb7f49000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7f49000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1270928, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f46000
mmap2(NULL, 1276892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e0e000
mmap2(0xb7f3c000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12e) = 0xb7f3c000
mmap2(0xb7f44000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f44000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e0d000
mprotect(0xb7f3c000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e0d6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f8d000, 52836)               = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3)                                = 0
brk(0)                                  = 0x80f5000
brk(0x80f6000)                          = 0x80f6000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1179120, ...}) = 0
mmap2(NULL, 1179120, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ced000
close(3)                                = 0
brk(0x80f7000)                          = 0x80f7000
brk(0x80f8000)                          = 0x80f8000
getuid32()                              = 0
getgid32()                              = 0
geteuid32()                             = 0
getegid32()                             = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
time(NULL)                              = 1153931744
brk(0x80f9000)                          = 0x80f9000
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=269, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f99000
read(3, "/dev/hda5 / ext3 rw,errors=remou"..., 4096) = 269
close(3)                                = 0
munmap(0xb7f99000, 4096)                = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f99000
read(3, "MemTotal:       191468 kB\nMemFre"..., 1024) = 598
close(3)                                = 0
munmap(0xb7f99000, 4096)                = 0
brk(0x80fa000)                          = 0x80fa000
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="mythbox", ...}) = 0
brk(0x80fb000)                          = 0x80fb000
stat64("/usr/src/xorg-server-1.0.2", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
getpid()                                = 4586
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gconv/gconv-modules", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=45660, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f99000
read(3, "# GNU libc iconv configuration.\n"..., 4096) = 4096
read(3, "lias\tJS//\t\t\tJUS_I.B1.002//\nalias"..., 4096) = 4096
brk(0x80fc000)                          = 0x80fc000
brk(0x80fd000)                          = 0x80fd000
brk(0x80fe000)                          = 0x80fe000
read(3, "ule\tINTERNAL\t\tISO-8859-3//\t\tISO8"..., 4096) = 4096
brk(0x80ff000)                          = 0x80ff000
brk(0x8100000)                          = 0x8100000
brk(0x8101000)                          = 0x8101000
read(3, "lias\tISO-IR-199//\t\tISO-8859-14//"..., 4096) = 4096
brk(0x8102000)                          = 0x8102000
brk(0x8103000)                          = 0x8103000
brk(0x8104000)                          = 0x8104000
read(3, "\t\tto\t\t\tmodule\t\tcost\nalias\tCSEBCD"..., 4096) = 4096
brk(0x8105000)                          = 0x8105000
brk(0x8106000)                          = 0x8106000
read(3, "ule\t\tcost\nalias\tCP284//\t\t\tIBM284"..., 4096) = 4096
brk(0x8107000)                          = 0x8107000
brk(0x8108000)                          = 0x8108000
brk(0x8109000)                          = 0x8109000
read(3, "lias\tCP864//\t\t\tIBM864//\nalias\t86"..., 4096) = 4096
brk(0x810a000)                          = 0x810a000
brk(0x810b000)                          = 0x810b000
brk(0x810c000)                          = 0x810c000
read(3, "module\tIBM937//\t\tINTERNAL\t\tIBM93"..., 4096) = 4096
brk(0x810d000)                          = 0x810d000
brk(0x810e000)                          = 0x810e000
brk(0x810f000)                          = 0x810f000
read(3, "\tEUC-JP//\nalias\tUJIS//\t\t\tEUC-JP/"..., 4096) = 4096
brk(0x8110000)                          = 0x8110000
brk(0x8111000)                          = 0x8111000
brk(0x8112000)                          = 0x8112000
read(3, "module\t\tcost\nalias\tISO-IR-143//\t"..., 4096) = 4096
brk(0x8113000)                          = 0x8113000
brk(0x8114000)                          = 0x8114000
read(3, "-BOX//\nmodule\tISO_10367-BOX//\t\tI"..., 4096) = 4096
brk(0x8115000)                          = 0x8115000
brk(0x8116000)                          = 0x8116000
brk(0x8117000)                          = 0x8117000
read(3, "module\tINTERNAL\t\tEUC-JISX0213//\t"..., 4096) = 604
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f99000, 4096)                = 0
brk(0x8118000)                          = 0x8118000
getppid()                               = 4585
brk(0x8119000)                          = 0x8119000
getpgrp()                               = 4585
rt_sigaction(SIGCHLD, {0x807b8b0, [], 0}, {SIG_DFL}, 8) = 0
brk(0x811a000)                          = 0x811a000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/usr/bin/xmkmf", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfdae848) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "#!/bin/sh\n\n# $XFree86: xc/config"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl64(255, F_SETFD, FD_CLOEXEC)       = 0
fcntl64(255, F_GETFL)                   = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=1247, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR)          = 0
brk(0x811b000)                          = 0x811b000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/sh\n\n# $XFree86: xc/config"..., 1247) = 1247
brk(0x811c000)                          = 0x811c000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat64("Makefile", 0xbfdae338)          = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
write(1, "imake -DUseInstalled -I/usr/lib/"..., 43imake -DUseInstalled -I/usr/lib/X11/config
) = 43
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
brk(0x811d000)                          = 0x811d000
brk(0x811e000)                          = 0x811e000
stat64(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat64("/usr/local/sbin/imake", 0xbfdae2a8) = -1 ENOENT (No such file or directory)
stat64("/usr/local/bin/imake", 0xbfdae2a8) = -1 ENOENT (No such file or directory)
stat64("/usr/sbin/imake", 0xbfdae2a8)   = -1 ENOENT (No such file or directory)
stat64("/usr/bin/imake", {st_mode=S_IFREG|0755, st_size=19376, ...}) = 0
stat64("/usr/bin/imake", {st_mode=S_IFREG|0755, st_size=19376, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(Process 4587 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e0d708) = 4587
[pid  4586] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  4586] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid  4586] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  4586] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
[pid  4586] rt_sigaction(SIGINT, {0x807a180, [], 0}, {SIG_DFL}, 8) = 0
[pid  4586] waitpid(-1, Process 4586 suspended
 <unfinished ...>
[pid  4587] close(255)                  = 0
[pid  4587] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  4587] rt_sigaction(SIGTSTP, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid  4587] rt_sigaction(SIGTTIN, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid  4587] rt_sigaction(SIGTTOU, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid  4587] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid  4587] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
[pid  4587] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x807b8b0, [], 0}, 8) = 0
[pid  4587] execve("/usr/bin/imake", ["imake", "-DUseInstalled", "-I/usr/lib/X11/config"], [/* 14 vars */]) = 0
[pid  4587] uname({sys="Linux", node="mythbox", ...}) = 0
[pid  4587] brk(0)                      = 0x804e000
[pid  4587] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  4587] mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fa5000
[pid  4587] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid  4587] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid  4587] fstat64(3, {st_mode=S_IFREG|0644, st_size=52836, ...}) = 0
[pid  4587] mmap2(NULL, 52836, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f98000
[pid  4587] close(3)                    = 0
[pid  4587] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid  4587] open("/lib/tls/libc.so.6", O_RDONLY) = 3
[pid  4587] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260O\1"..., 512) = 512
[pid  4587] fstat64(3, {st_mode=S_IFREG|0755, st_size=1270928, ...}) = 0
[pid  4587] mmap2(NULL, 1276892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e60000
[pid  4587] mmap2(0xb7f8e000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12e) = 0xb7f8e000
[pid  4587] mmap2(0xb7f96000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f96000
[pid  4587] close(3)                    = 0
[pid  4587] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e5f000
[pid  4587] mprotect(0xb7f8e000, 20480, PROT_READ) = 0
[pid  4587] set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e5f8e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
[pid  4587] munmap(0xb7f98000, 52836)   = 0
[pid  4587] rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
[pid  4587] rt_sigaction(SIGINT, {0x8048f40, [INT], SA_RESTART}, {SIG_IGN}, 8) = 0
[pid  4587] rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid  4587] access("Imakefile", R_OK)   = -1 ENOENT (No such file or directory)
[pid  4587] access("imakefile", R_OK)   = -1 ENOENT (No such file or directory)
[pid  4587] write(2, "imake: ", 7imake: )      = 7
[pid  4587] write(2, "No such file or directory\n", 26No such file or directory
) = 26
[pid  4587] write(2, "imake: ", 7imake: )      = 7
[pid  4587] write(2, "No description file.", 20No description file.) = 20
[pid  4587] write(2, "\n", 1
)           = 1
[pid  4587] write(2, "  Stop.\n", 8  Stop.
)    = 8
[pid  4587] unlink("/tmp/Imf.XXXXXX")   = -1 ENOENT (No such file or directory)
[pid  4587] exit_group(1)               = ?
Process 4586 resumed
Process 4587 detached
<... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 4587
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfdadfbc, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807a180, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "", 1247)                     = 0
exit_group(1)                           = ?
Process 4586 detached
mythbox:/usr/src/xorg-server-1.0.2#
There is no Imakefile. xmkmf cannot possible run without one. Is there an Imakefile in a subordinate directory? cd there and re-try if so.
You could actually try running make -f Makefile.bak - what harm can that do?
I think the instruction in it that you mentioned: xmkmf /PATH_TO_X_SOURCE/ refers to the entire X source tree
Avatar of j2

ASKER

Makefile.bak only contains

all:

echo "run xmkmf /PATH-TO-X-SOURCE/"
That looks like a topdir as mentioned if you type "man xmkmf". That implies building all of X. What was the URL where you obtained the driver?
Possibly you need to give one of the directories in your tree ~/Download/IVTV/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv - are there any Imakefiles in there anywhere?
Avatar of j2

ASKER

Here is the URL: http://ivtvdriver.org/index.php/Download#X_Driver

ANd no, i cant find any imake.tmpl files ...
Thanks for the URL - will look at it when I can find the time
I suggest you download it again.
I downloaded it and it did have an Imakefile. I ran xmkmf in /usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv and it created a Makefile.
Make was unsuccessful because I seem to be missing some header files, but that's another story.
Avatar of j2

ASKER

You mean something like below? Thats the expected result if you leave out the /PATCH_TO_X_SOURCES/, which unfortunately means the generated Makefile is way off.

mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# make
rm -f ivtvdev.o
gcc -m32 -g -O2 -fno-strict-aliasing   -fPIC  -I. -I./programs/Xserver/hw/xfree86/common -I./programs/Xserver/hw/xfree86/os-support            -I./programs/Xserver/mfb -I./programs/Xserver/mi            -I./programs/Xserver/fb -I./programs/Xserver/hw/xfree86/xaa     -I./programs/Xserver/hw/xfree86/fbdevhw -I./programs/Xserver/hw/xfree86/ramdac            -I./programs/Xserver/hw/xfree86/ddc -I./programs/Xserver/hw/xfree86/i2c            -I./programs/Xserver/hw/xfree86/rac            -I./programs/Xserver/Xext -I./programs/Xserver/hw/xfree86/xf24_32bpp           -I./include/fonts -I./programs/Xserver/include -I./exports/include/X11      -I./programs/Xserver/miext/shadow -I./include/extensions -I./programs/Xserver/render     -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                        -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP      -DXCSECURITY -DTOGCUP    -DXF86BIGFONT -DDPMSExtension   -DXPRINT -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                          -DXFreeXDGA -DXvExtension                               -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server                           -DXF86VIDMODE                          -DXvMCExtension                          -DSMART_SCHEDULE                       -DBUILDDEBUG -DXResExtension                             -DX_BYTE_ORDER=X_LITTLE_ENDIAN                          -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DUSE_AFB                          -DX_USE_REGION_NULL   -c ivtvdev.c
In file included from ivtvdev.c:8:
ivtvhw.h:5:21: error: xf86str.h: No such file or directory
ivtvhw.h:6:24: error: colormapst.h: No such file or directory
ivtvhw.h:17:20: error: fbpriv.h: No such file or directory
In file included from ivtvdev.c:8:
ivtvhw.h:30: error: field âfixâ has incomplete type
ivtvhw.h:31: error: field âvarâ has incomplete type
ivtvhw.h:34: error: field âsaved_varâ has incomplete type
ivtvhw.h:37: error: syntax error before âDisplayModeRecâ
ivtvhw.h:37: warning: no semicolon at end of struct or union
ivtvhw.h:39: warning: data definition has no type or storage class
ivtvhw.h:45: error: syntax error before âIVTVDGAInitâ
ivtvhw.h:45: error: syntax error before âpScreenâ
ivtvhw.h:45: warning: data definition has no type or storage class
ivtvhw.h:49: error: syntax error before âivtvHWGetRecâ
ivtvhw.h:49: error: syntax error before âpScrnâ
ivtvhw.h:49: warning: data definition has no type or storage class
ivtvhw.h:50: error: syntax error before âpScrnâ
ivtvhw.h:52: error: syntax error before âivtvHWProbeâ
ivtvhw.h:52: error: syntax error before âpPciâ
ivtvhw.h:52: warning: data definition has no type or storage class
ivtvhw.h:53: error: syntax error before âivtvHWInitâ
ivtvhw.h:53: error: syntax error before âpScrnâ
ivtvhw.h:53: warning: data definition has no type or storage class
ivtvhw.h:55: error: syntax error before âpScrnâ
ivtvhw.h:56: error: syntax error before âpScrnâ
ivtvhw.h:57: error: syntax error before âpScrnâ
ivtvhw.h:58: error: syntax error before âpScrnâ
ivtvhw.h:59: error: syntax error before âpScrnâ
ivtvhw.h:62: error: syntax error before âpScrnâ
ivtvhw.h:64: error: syntax error before âpScrnâ
ivtvhw.h:65: error: syntax error before âivtvHWGetBuildinModeâ
ivtvhw.h:65: error: syntax error before âpScrnâ
ivtvhw.h:65: warning: data definition has no type or storage class
ivtvhw.h:66: error: syntax error before âpScrnâ
ivtvhw.h:67: error: syntax error before âivtvHWModeInitâ
ivtvhw.h:67: error: syntax error before âpScrnâ
ivtvhw.h:67: warning: data definition has no type or storage class
ivtvhw.h:68: error: syntax error before âpScrnâ
ivtvhw.h:69: error: syntax error before âpScrnâ
ivtvhw.h:71: error: syntax error before âpScrnâ
ivtvhw.h:74: error: syntax error before âDisplayModePtrâ
ivtvhw.h:76: error: syntax error before âivtvHWSwitchModeâ
ivtvhw.h:76: error: syntax error before âDisplayModePtrâ
ivtvhw.h:76: warning: data definition has no type or storage class
ivtvhw.h:78: error: syntax error before âivtvHWEnterVTâ
ivtvhw.h:78: warning: data definition has no type or storage class
ivtvhw.h:80: error: syntax error before âpScrnâ
ivtvhw.h:82: error: syntax error before âivtvHWSaveScreenâ
ivtvhw.h:82: error: syntax error before âpScreenâ
ivtvhw.h:82: warning: data definition has no type or storage class
ivtvhw.h:83: error: syntax error before âivtvHWSendDMAâ
ivtvhw.h:83: error: syntax error before âpScrnâ
ivtvhw.h:84: warning: data definition has no type or storage class
In file included from ivtvdev.c:9:
ivtvdev.h:7: error: syntax error before âCloseScreenProcPtrâ
ivtvdev.h:7: warning: no semicolon at end of struct or union
ivtvdev.h:8: warning: data definition has no type or storage class
ivtvdev.h:11: error: syntax error before âpEntâ
ivtvdev.h:11: warning: data definition has no type or storage class
ivtvdev.h:12: error: syntax error before âOptionsâ
ivtvdev.h:12: warning: data definition has no type or storage class
ivtvdev.h:13: warning: data definition has no type or storage class
ivtvdev.h:17: error: syntax error before âIVTVDGAInitâ
ivtvdev.h:17: error: syntax error before âpScreenâ
ivtvdev.h:17: warning: data definition has no type or storage class
ivtvdev.c:11:18: error: xf86.h: No such file or directory
ivtvdev.c:12:25: error: xf86_OSproc.h: No such file or directory
ivtvdev.c:13:24: error: xf86_ansic.h: No such file or directory
ivtvdev.c:15:23: error: mipointer.h: No such file or directory
ivtvdev.c:16:22: error: mibstore.h: No such file or directory
ivtvdev.c:17:20: error: micmap.h: No such file or directory
ivtvdev.c:19:22: error: xf86cmap.h: No such file or directory
ivtvdev.c:23:16: error: fb.h: No such file or directory
ivtvdev.c:25:27: error: xf86Resources.h: No such file or directory
ivtvdev.c:26:21: error: xf86RAC.h: No such file or directory
ivtvdev.c:29:20: error: xf86xv.h: No such file or directory
ivtvdev.c:38: error: syntax error before âIVTVChipsetsâ
ivtvdev.c:39: warning: braces around scalar initializer
ivtvdev.c:39: warning: (near initialization for âIVTVChipsets[0]â)
ivtvdev.c:39: warning: excess elements in scalar initializer
ivtvdev.c:39: warning: (near initialization for âIVTVChipsets[0]â)
ivtvdev.c:40: warning: braces around scalar initializer
ivtvdev.c:40: warning: (near initialization for âIVTVChipsets[1]â)
ivtvdev.c:40: error: âNULLâ undeclared here (not in a function)
ivtvdev.c:40: warning: excess elements in scalar initializer
ivtvdev.c:40: warning: (near initialization for âIVTVChipsets[1]â)
ivtvdev.c:41: warning: data definition has no type or storage class
ivtvdev.c:44: error: syntax error before âIVTVPciChipsetsâ
ivtvdev.c:45: warning: braces around scalar initializer
ivtvdev.c:45: warning: (near initialization for âIVTVPciChipsets[0]â)
ivtvdev.c:45: warning: excess elements in scalar initializer
ivtvdev.c:45: warning: (near initialization for âIVTVPciChipsets[0]â)
ivtvdev.c:45: error: âRES_SHARED_VGAâ undeclared here (not in a function)
ivtvdev.c:45: warning: excess elements in scalar initializer
ivtvdev.c:45: warning: (near initialization for âIVTVPciChipsets[0]â)
ivtvdev.c:46: warning: braces around scalar initializer
ivtvdev.c:46: warning: (near initialization for âIVTVPciChipsets[1]â)
ivtvdev.c:46: warning: excess elements in scalar initializer
ivtvdev.c:46: warning: (near initialization for âIVTVPciChipsets[1]â)
ivtvdev.c:46: error: âRES_UNDEFINEDâ undeclared here (not in a function)
ivtvdev.c:46: warning: excess elements in scalar initializer
ivtvdev.c:46: warning: (near initialization for âIVTVPciChipsets[1]â)
ivtvdev.c:47: warning: data definition has no type or storage class
ivtvdev.c:64: error: syntax error before â*â token
ivtvdev.c:64: warning: data definition has no type or storage class
ivtvdev.c:66: error: syntax error before âIVTVDevProbeâ
ivtvdev.c:66: error: syntax error before âdrvâ
ivtvdev.c:66: warning: data definition has no type or storage class
ivtvdev.c:67: error: syntax error before âIVTVDevPreInitâ
ivtvdev.c:67: error: syntax error before âpScrnâ
ivtvdev.c:67: warning: data definition has no type or storage class
ivtvdev.c:68: error: syntax error before âIVTVDevScreenInitâ
ivtvdev.c:68: error: syntax error before âScreenPtrâ
ivtvdev.c:69: warning: data definition has no type or storage class
ivtvdev.c:70: error: syntax error before âIVTVDevCloseScreenâ
ivtvdev.c:70: error: syntax error before âScreenPtrâ
ivtvdev.c:70: warning: data definition has no type or storage class
ivtvdev.c:86: error: syntax error before âIVTVDEVâ
ivtvdev.c:88: warning: excess elements in scalar initializer
ivtvdev.c:88: warning: (near initialization for âIVTVDEVâ)
ivtvdev.c:92: warning: excess elements in scalar initializer
ivtvdev.c:92: warning: (near initialization for âIVTVDEVâ)
ivtvdev.c:93: warning: excess elements in scalar initializer
ivtvdev.c:93: warning: (near initialization for âIVTVDEVâ)
ivtvdev.c:94: warning: excess elements in scalar initializer
ivtvdev.c:94: warning: (near initialization for âIVTVDEVâ)
ivtvdev.c:95: warning: excess elements in scalar initializer
ivtvdev.c:95: warning: (near initialization for âIVTVDEVâ)
ivtvdev.c:97: warning: excess elements in scalar initializer
ivtvdev.c:97: warning: (near initialization for âIVTVDEVâ)
ivtvdev.c:97: warning: data definition has no type or storage class
ivtvdev.c:104: error: syntax error before âIVTVDevOptionsâ
ivtvdev.c:105: warning: braces around scalar initializer
ivtvdev.c:105: warning: (near initialization for âIVTVDevOptions[0]â)
ivtvdev.c:105: warning: excess elements in scalar initializer
ivtvdev.c:105: warning: (near initialization for âIVTVDevOptions[0]â)
ivtvdev.c:105: error: âOPTV_STRINGâ undeclared here (not in a function)
ivtvdev.c:105: warning: excess elements in scalar initializer
ivtvdev.c:105: warning: (near initialization for âIVTVDevOptions[0]â)
ivtvdev.c:105: warning: braces around scalar initializer
ivtvdev.c:105: warning: (near initialization for âIVTVDevOptions[0]â)
ivtvdev.c:105: warning: excess elements in scalar initializer
ivtvdev.c:105: warning: (near initialization for âIVTVDevOptions[0]â)
ivtvdev.c:105: error: âFALSEâ undeclared here (not in a function)
ivtvdev.c:105: warning: excess elements in scalar initializer
ivtvdev.c:105: warning: (near initialization for âIVTVDevOptions[0]â)
ivtvdev.c:106: warning: braces around scalar initializer
ivtvdev.c:106: warning: (near initialization for âIVTVDevOptions[1]â)
ivtvdev.c:106: warning: excess elements in scalar initializer
ivtvdev.c:106: warning: (near initialization for âIVTVDevOptions[1]â)
ivtvdev.c:106: error: âOPTV_NONEâ undeclared here (not in a function)
ivtvdev.c:106: warning: excess elements in scalar initializer
ivtvdev.c:106: warning: (near initialization for âIVTVDevOptions[1]â)
ivtvdev.c:106: warning: braces around scalar initializer
ivtvdev.c:106: warning: (near initialization for âIVTVDevOptions[1]â)
ivtvdev.c:106: warning: excess elements in scalar initializer
ivtvdev.c:106: warning: (near initialization for âIVTVDevOptions[1]â)
ivtvdev.c:106: warning: excess elements in scalar initializer
ivtvdev.c:106: warning: (near initialization for âIVTVDevOptions[1]â)
ivtvdev.c:107: warning: data definition has no type or storage class
ivtvdev.c:129: warning: parameter names (without types) in function declaration
ivtvdev.c:129: warning: data definition has no type or storage class
ivtvdev.c:131: error: syntax error before âIVTVDevVersRecâ
ivtvdev.c:132: warning: initialization makes integer from pointer without a cast
ivtvdev.c:133: error: âMODULEVENDORSTRINGâ undeclared here (not in a function)
ivtvdev.c:133: warning: excess elements in scalar initializer
ivtvdev.c:133: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:134: error: âMODINFOSTRING1â undeclared here (not in a function)
ivtvdev.c:134: warning: excess elements in scalar initializer
ivtvdev.c:134: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:135: error: âMODINFOSTRING2â undeclared here (not in a function)
ivtvdev.c:135: warning: excess elements in scalar initializer
ivtvdev.c:135: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:136: error: âXF86_VERSION_CURRENTâ undeclared here (not in a function)
ivtvdev.c:136: warning: excess elements in scalar initializer
ivtvdev.c:136: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:137: warning: excess elements in scalar initializer
ivtvdev.c:137: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:137: warning: excess elements in scalar initializer
ivtvdev.c:137: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:137: warning: excess elements in scalar initializer
ivtvdev.c:137: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:138: error: âABI_CLASS_VIDEODRVâ undeclared here (not in a function)
ivtvdev.c:138: warning: excess elements in scalar initializer
ivtvdev.c:138: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:139: error: âABI_VIDEODRV_VERSIONâ undeclared here (not in a function)
ivtvdev.c:139: warning: excess elements in scalar initializer
ivtvdev.c:139: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:140: warning: excess elements in scalar initializer
ivtvdev.c:140: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:141: warning: braces around scalar initializer
ivtvdev.c:141: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:141: warning: excess elements in scalar initializer
ivtvdev.c:141: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:141: warning: excess elements in scalar initializer
ivtvdev.c:141: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:141: warning: excess elements in scalar initializer
ivtvdev.c:141: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:141: warning: excess elements in scalar initializer
ivtvdev.c:141: warning: (near initialization for âIVTVDevVersRecâ)
ivtvdev.c:142: warning: data definition has no type or storage class
ivtvdev.c:144: error: syntax error before âivtvdevModuleDataâ
ivtvdev.c:144: warning: initialization makes integer from pointer without a cast
ivtvdev.c:144: error: âIVTVDevSetupâ undeclared here (not in a function)
ivtvdev.c:144: warning: excess elements in scalar initializer
ivtvdev.c:144: warning: (near initialization for âivtvdevModuleDataâ)
ivtvdev.c:144: warning: excess elements in scalar initializer
ivtvdev.c:144: warning: (near initialization for âivtvdevModuleDataâ)
ivtvdev.c:144: warning: data definition has no type or storage class
ivtvdev.c:146: error: syntax error before âIVTVDevSetupâ
ivtvdev.c:146: error: syntax error before âmoduleâ
ivtvdev.c: In function âIVTVDevSetupâ:
ivtvdev.c:148: error: syntax error before âsetupDoneâ
ivtvdev.c:150: error: âsetupDoneâ undeclared (first use in this function)
ivtvdev.c:150: error: (Each undeclared identifier is reported only once
ivtvdev.c:150: error: for each function it appears in.)
ivtvdev.c:151: error: âTRUEâ undeclared (first use in this function)
ivtvdev.c:152: error: âmoduleâ undeclared (first use in this function)
ivtvdev.c:154: error: âpointerâ undeclared (first use in this function)
ivtvdev.c:154: error: syntax error before numeric constant
ivtvdev.c:156: error: âerrmajâ undeclared (first use in this function)
ivtvdev.c:157: error: âLDR_ONCEONLYâ undeclared (first use in this function)
ivtvdev.c:158: warning: return makes integer from pointer without a cast
ivtvdev.c: At top level:
ivtvdev.c:164: error: syntax error before âpScreenâ
ivtvdev.c: In function âFBshadowUpdatePackedâ:
ivtvdev.c:167: error: âRegionPtrâ undeclared (first use in this function)
ivtvdev.c:167: error: syntax error before âdamageâ
ivtvdev.c:168: error: âdamageâ undeclared (first use in this function)
ivtvdev.c:169: error: âBoxPtrâ undeclared (first use in this function)
ivtvdev.c:169: error: syntax error before âpboxâ
ivtvdev.c:171: error: âScrnInfoPtrâ undeclared (first use in this function)
ivtvdev.c:173: error: âpScrnâ undeclared (first use in this function)
ivtvdev.c:173: error: request for member âvirtualXâ in something not a structure or union
ivtvdev.c:175: error: request for member âvirtualYâ in something not a structure or union
ivtvdev.c:178: error: âpboxâ undeclared (first use in this function)
ivtvdev.c:178: error: request for member âx1â in something not a structure or union
ivtvdev.c:178: warning: comparison between pointer and integer
ivtvdev.c:179: error: request for member âx1â in something not a structure or union
ivtvdev.c:180: error: request for member âx2â in something not a structure or union
ivtvdev.c:180: warning: comparison between pointer and integer
ivtvdev.c:181: error: request for member âx2â in something not a structure or union
ivtvdev.c:182: error: request for member ây1â in something not a structure or union
ivtvdev.c:182: warning: comparison between pointer and integer
ivtvdev.c:183: error: request for member ây1â in something not a structure or union
ivtvdev.c:184: error: request for member ây2â in something not a structure or union
ivtvdev.c:184: warning: comparison between pointer and integer
ivtvdev.c:185: error: request for member ây2â in something not a structure or union
ivtvdev.c:186: error: wrong type argument to increment
ivtvdev.c:189: error: âfPtrâ undeclared (first use in this function)
ivtvdev.c:189: error: request for member âshadowmemâ in something not a structure or union
ivtvdev.c: At top level:
ivtvdev.c:192: error: syntax error before âIVTVDevGetRecâ
ivtvdev.c:192: error: syntax error before âpScrnâ
ivtvdev.c: In function âIVTVDevGetRecâ:
ivtvdev.c:194: error: âpScrnâ undeclared (first use in this function)
ivtvdev.c:194: error: request for member âdriverPrivateâ in something not a structure or union
ivtvdev.c:195: error: âTRUEâ undeclared (first use in this function)
ivtvdev.c:195: warning: return makes integer from pointer without a cast
ivtvdev.c:197: error: request for member âdriverPrivateâ in something not a structure or union
ivtvdev.c:198: warning: return makes integer from pointer without a cast
ivtvdev.c: At top level:
ivtvdev.c:201: error: syntax error before âpScrnâ
ivtvdev.c: In function âIVTVDevFreeRecâ:
ivtvdev.c:203: error: âpScrnâ undeclared (first use in this function)
ivtvdev.c:203: error: request for member âdriverPrivateâ in something not a structure or union
ivtvdev.c:205: error: request for member âdriverPrivateâ in something not a structure or union
ivtvdev.c:206: error: request for member âdriverPrivateâ in something not a structure or union
ivtvdev.c: At top level:
ivtvdev.c:211: error: syntax error before â*â token
ivtvdev.c:221: error: syntax error before âIVTVDevProbeâ
ivtvdev.c:221: error: syntax error before âdrvâ
ivtvdev.c: In function âIVTVDevProbeâ:
ivtvdev.c:224: error: âScrnInfoPtrâ undeclared (first use in this function)
ivtvdev.c:224: error: syntax error before âpScrnâ
ivtvdev.c:225: error: âGDevPtrâ undeclared (first use in this function)
ivtvdev.c:225: error: âdevSectionsâ undeclared (first use in this function)
ivtvdev.c:225: error: invalid operands to binary *
ivtvdev.c:229: error: âBoolâ undeclared (first use in this function)
ivtvdev.c:229: error: syntax error before âfoundScreenâ
ivtvdev.c:235: error: âflagsâ undeclared (first use in this function)
ivtvdev.c:235: error: âPROBE_DETECTâ undeclared (first use in this function)
ivtvdev.c:235: error: invalid operands to binary &
ivtvdev.c:236: warning: return makes integer from pointer without a cast
ivtvdev.c:241: warning: return makes integer from pointer without a cast
ivtvdev.c:243: warning: comparison between pointer and integer
ivtvdev.c:244: warning: return makes integer from pointer without a cast
ivtvdev.c:251: error: âdrvâ undeclared (first use in this function)
ivtvdev.c:254: warning: return makes integer from pointer without a cast
ivtvdev.c:256: error: invalid operands to binary &
ivtvdev.c:257: error: âfoundScreenâ undeclared (first use in this function)
ivtvdev.c:257: error: âTRUEâ undeclared (first use in this function)
ivtvdev.c:260: error: syntax error before âpScrnâ
ivtvdev.c:261: error: âEntityInfoPtrâ undeclared (first use in this function)
ivtvdev.c:263: error: request for member âoptionsâ in something not a structure or union
ivtvdev.c:264: warning: assignment makes pointer from integer without a cast
ivtvdev.c:266: error: âpScrnâ undeclared (first use in this function)
ivtvdev.c:272: error: request for member âdriverNameâ in something not a structure or union
ivtvdev.c:273: error: request for member ânameâ in something not a structure or union
ivtvdev.c:278: error: request for member âdriverVersionâ in something not a structure or union
ivtvdev.c:279: error: request for member âdriverNameâ in something not a structure or union
ivtvdev.c:280: error: request for member ânameâ in something not a structure or union
ivtvdev.c:281: error: request for member âProbeâ in something not a structure or union
ivtvdev.c:282: error: request for member âPreInitâ in something not a structure or union
ivtvdev.c:283: error: request for member âScreenInitâ in something not a structure or union
ivtvdev.c:284: error: request for member âSwitchModeâ in something not a structure or union
ivtvdev.c:285: error: request for member âAdjustFrameâ in something not a structure or union
ivtvdev.c:286: error: request for member âEnterVTâ in something not a structure or union
ivtvdev.c:287: error: request for member âLeaveVTâ in something not a structure or union
ivtvdev.c:288: error: request for member âValidModeâ in something not a structure or union
ivtvdev.c:290: error: request for member âscrnIndexâ in something not a structure or union
ivtvdev.c:290: error: âX_INFOâ undeclared (first use in this function)
ivtvdev.c:300: warning: return makes integer from pointer without a cast
ivtvdev.c: At top level:
ivtvdev.c:303: error: syntax error before âIVTVDevPreInitâ
ivtvdev.c:303: error: syntax error before âpScrnâ
ivtvdev.c: In function âIVTVDevPreInitâ:
ivtvdev.c:305: error: syntax error before âfPtrâ
ivtvdev.c:310: error: âflagsâ undeclared (first use in this function)
ivtvdev.c:310: error: âPROBE_DETECTâ undeclared (first use in this function)
ivtvdev.c:310: error: invalid operands to binary &
ivtvdev.c:311: warning: return makes integer from pointer without a cast
ivtvdev.c:316: error: âpScrnâ undeclared (first use in this function)
ivtvdev.c:316: error: request for member ânumEntitiesâ in something not a structure or union
ivtvdev.c:316: warning: comparison between pointer and integer
ivtvdev.c:317: warning: return makes integer from pointer without a cast
ivtvdev.c:319: error: request for member âmonitorâ in something not a structure or union
ivtvdev.c:319: error: request for member âconfScreenâ in something not a structure or union
ivtvdev.c:319: error: request for member âmonitorâ in something not a structure or union
ivtvdev.c:322: error: âfPtrâ undeclared (first use in this function)
ivtvdev.c:322: error: request for member âdriverPrivateâ in something not a structure or union
ivtvdev.c:322: error: called object âIVTVDevPtrâ is not a function
ivtvdev.c:324: error: request for member âpEntâ in something not a structure or union
ivtvdev.c:324: error: request for member âentityListâ in something not a structure or union
ivtvdev.c:326: error: request for member âracMemFlagsâ in something not a structure or union
ivtvdev.c:326: error: âRAC_FBâ undeclared (first use in this function)
ivtvdev.c:326: error: âRAC_COLORMAPâ undeclared (first use in this function)
ivtvdev.c:326: error: invalid operands to binary |
ivtvdev.c:326: error: âRAC_CURSORâ undeclared (first use in this function)
ivtvdev.c:326: error: invalid operands to binary |
ivtvdev.c:326: error: âRAC_VIEWPORTâ undeclared (first use in this function)
ivtvdev.c:326: error: invalid operands to binary |
ivtvdev.c:328: error: request for member âracIoFlagsâ in something not a structure or union
ivtvdev.c:328: error: invalid operands to binary |
ivtvdev.c:328: error: invalid operands to binary |
ivtvdev.c:328: error: invalid operands to binary |
ivtvdev.c:330: error: request for member âpEntâ in something not a structure or union
ivtvdev.c:330: error: request for member âlocationâ in something not a structure or union
ivtvdev.c:330: error: request for member âtypeâ in something not a structure or union
ivtvdev.c:330: error: âBUS_PCIâ undeclared (first use in this function)
ivtvdev.c:331: error: request for member âpEntâ in something not a structure or union
ivtvdev.c:331: error: request for member âindexâ in something not a structure or union
ivtvdev.c:331: error: âResExclusiveâ undeclared (first use in this function)
ivtvdev.c:332: error: request for member âscrnIndexâ in something not a structure or union
ivtvdev.c:332: error: âX_ERRORâ undeclared (first use in this function)
ivtvdev.c:334: warning: return makes integer from pointer without a cast
ivtvdev.c:340: error: request for member âpEntâ in something not a structure or union
ivtvdev.c:340: error: request for member âdeviceâ in something not a structure or union
ivtvdev.c:340: error: request for member âoptionsâ in something not a structure or union
ivtvdev.c:341: warning: return makes integer from pointer without a cast
ivtvdev.c:344: warning: return makes integer from pointer without a cast
ivtvdev.c:348: error: request for member âdepthâ in something not a structure or union
ivtvdev.c:348: warning: comparison between pointer and integer
ivtvdev.c:352: error: request for member âdepthâ in something not a structure or union
ivtvdev.c:352: warning: comparison between pointer and integer
ivtvdev.c:353: error: ârgbâ undeclared (first use in this function)
ivtvdev.c:353: error: syntax error before âzerosâ
ivtvdev.c:354: error: âzerosâ undeclared (first use in this function)
ivtvdev.c:355: warning: return makes integer from pointer without a cast
ivtvdev.c: At top level:
ivtvdev.c:359: error: syntax error before âifâ
ivtvdev.c:384: error: syntax error before â->â token
ivtvdev.c:385: error: syntax error before â->â token
ivtvdev.c:388: warning: parameter names (without types) in function declaration
ivtvdev.c:388: warning: data definition has no type or storage class
ivtvdev.c:389: error: syntax error before âifâ
ivtvdev.c:391: error: syntax error before â->â token
ivtvdev.c:392: error: syntax error before â->â token
ivtvdev.c:393: warning: data definition has no type or storage class
ivtvdev.c:397: error: syntax error before â->â token
ivtvdev.c:398: warning: data definition has no type or storage class
ivtvdev.c:399: warning: parameter names (without types) in function declaration
ivtvdev.c:399: error: conflicting types for âivtvHWSetVideoModesâ
ivtvhw.h:64: error: previous declaration of âivtvHWSetVideoModesâ was here
ivtvdev.c:399: warning: data definition has no type or storage class
ivtvdev.c:401: error: syntax error before â->â token
ivtvdev.c:402: warning: data definition has no type or storage class
ivtvdev.c:411: error: invalid type argument of â->â
ivtvdev.c:411: error: request for member ânextâ in something not a structure or union
ivtvdev.c:411: warning: data definition has no type or storage class
ivtvdev.c:412: error: syntax error before â}â token
ivtvdev.c:414: warning: parameter names (without types) in function declaration
ivtvdev.c:414: warning: data definition has no type or storage class
ivtvdev.c:415: error: syntax error before â}â token
ivtvdev.c:423: warning: parameter names (without types) in function declaration
ivtvdev.c:423: warning: data definition has no type or storage class
ivtvdev.c:426: error: syntax error before numeric constant
ivtvdev.c:426: warning: data definition has no type or storage class
ivtvdev.c:429: warning: initialization makes integer from pointer without a cast
ivtvdev.c:429: warning: data definition has no type or storage class
ivtvdev.c:430: warning: initialization makes integer from pointer without a cast
ivtvdev.c:430: warning: data definition has no type or storage class
ivtvdev.c:432: error: syntax error before âifâ
ivtvdev.c:441: error: syntax error before â->â token
ivtvdev.c:442: warning: data definition has no type or storage class
ivtvdev.c:447: warning: parameter names (without types) in function declaration
ivtvdev.c:447: warning: data definition has no type or storage class
ivtvdev.c:450: error: syntax error before âreturnâ
ivtvdev.c:453: error: syntax error before âpScreenâ
ivtvdev.c:456: error: syntax error before âIVTVDevScreenInitâ
ivtvdev.c:456: error: syntax error before âScreenPtrâ
ivtvdev.c: In function âIVTVDevScreenInitâ:
ivtvdev.c:458: error: âScrnInfoPtrâ undeclared (first use in this function)
ivtvdev.c:458: error: syntax error before âpScrnâ
ivtvdev.c:460: error: âVisualPtrâ undeclared (first use in this function)
ivtvdev.c:468: error: invalid type argument of â->â
ivtvdev.c:468: error: request for member âbitsPerPixelâ in something not a structure or union
ivtvdev.c:469: error: invalid type argument of â->â
ivtvdev.c:469: error: request for member âdepthâ in something not a structure or union
ivtvdev.c:470: error: invalid type argument of â->â
ivtvdev.c:470: error: request for member âdefaultVisualâ in something not a structure or union
ivtvdev.c:471: error: invalid type argument of â->â
ivtvdev.c:471: error: request for member âmaskâ in something not a structure or union
ivtvdev.c:471: error: request for member âredâ in something not a structure or union
ivtvdev.c:471: error: invalid type argument of â->â
ivtvdev.c:471: error: request for member âmaskâ in something not a structure or union
ivtvdev.c:471: error: request for member âgreenâ in something not a structure or union
ivtvdev.c:471: error: invalid type argument of â->â
ivtvdev.c:471: error: request for member âmaskâ in something not a structure or union
ivtvdev.c:471: error: request for member âblueâ in something not a structure or union
ivtvdev.c:472: error: invalid type argument of â->â
ivtvdev.c:472: error: request for member âoffsetâ in something not a structure or union
ivtvdev.c:472: error: request for member âredâ in something not a structure or union
ivtvdev.c:472: error: invalid type argument of â->â
ivtvdev.c:472: error: request for member âoffsetâ in something not a structure or union
ivtvdev.c:472: error: request for member âgreenâ in something not a structure or union
ivtvdev.c:472: error: invalid type argument of â->â
ivtvdev.c:472: error: request for member âoffsetâ in something not a structure or union
ivtvdev.c:472: error: request for member âblueâ in something not a structure or union
ivtvdev.c:476: error: invalid type argument of â->â
ivtvdev.c:476: error: request for member âcurrentModeâ in something not a structure or union
ivtvdev.c:477: error: âscrnIndexâ undeclared (first use in this function)
ivtvdev.c:477: error: âX_ERRORâ undeclared (first use in this function)
ivtvdev.c:478: warning: return makes integer from pointer without a cast
ivtvdev.c:480: error: âpScreenâ undeclared (first use in this function)
ivtvdev.c:480: error: âSCREEN_SAVER_ONâ undeclared (first use in this function)
ivtvdev.c:481: warning: passing argument 1 of âivtvHWAdjustFrameâ makes integer from pointer without a cast
ivtvdev.c:485: error: invalid type argument of â->â
ivtvdev.c:485: error: request for member âbitsPerPixelâ in something not a structure or union
ivtvdev.c:485: warning: comparison between pointer and integer
ivtvdev.c:487: error: invalid type argument of â->â
ivtvdev.c:487: error: request for member âdepthâ in something not a structure or union
ivtvdev.c:487: error: âTrueColorMaskâ undeclared (first use in this function)
ivtvdev.c:487: error: invalid type argument of â->â
ivtvdev.c:487: error: request for member ârgbBitsâ in something not a structure or union
ivtvdev.c:487: error: âTrueColorâ undeclared (first use in this function)
ivtvdev.c:490: warning: return makes integer from pointer without a cast
ivtvdev.c:493: error: invalid type argument of â->â
ivtvdev.c:493: error: request for member âdepthâ in something not a structure or union
ivtvdev.c:494: error: invalid type argument of â->â
ivtvdev.c:494: error: request for member âdepthâ in something not a structure or union
ivtvdev.c:495: error: invalid type argument of â->â
ivtvdev.c:495: error: request for member ârgbBitsâ in something not a structure or union
ivtvdev.c:495: error: invalid type argument of â->â
ivtvdev.c:495: error: request for member âdefaultVisualâ in something not a structure or union
ivtvdev.c:498: warning: return makes integer from pointer without a cast
ivtvdev.c:503: warning: return makes integer from pointer without a cast
ivtvdev.c:506: error: invalid type argument of â->â
ivtvdev.c:506: error: request for member âvirtualYâ in something not a structure or union
ivtvdev.c:507: error: invalid type argument of â->â
ivtvdev.c:507: error: request for member âvirtualXâ in something not a structure or union
ivtvdev.c:510: error: âfPtrâ undeclared (first use in this function)
ivtvdev.c:510: error: request for member âshadowmemâ in something not a structure or union
ivtvdev.c:511: error: invalid type argument of â->â
ivtvdev.c:511: error: request for member âbitsPerPixelâ in something not a structure or union
ivtvdev.c:514: warning: return makes integer from pointer without a cast
ivtvdev.c:517: error: request for member âshadowmemâ in something not a structure or union
ivtvdev.c:518: error: invalid type argument of â->â
ivtvdev.c:518: error: request for member âxDpiâ in something not a structure or union
ivtvdev.c:518: error: invalid type argument of â->â
ivtvdev.c:518: error: request for member âyDpiâ in something not a structure or union
ivtvdev.c:518: error: invalid type argument of â->â
ivtvdev.c:518: error: request for member âdisplayWidthâ in something not a structure or union
ivtvdev.c:519: error: invalid type argument of â->â
ivtvdev.c:519: error: request for member âbitsPerPixelâ in something not a structure or union
ivtvdev.c:523: warning: return makes integer from pointer without a cast
ivtvdev.c:525: error: invalid type argument of â->â
ivtvdev.c:525: error: request for member âbitsPerPixelâ in something not a structure or union
ivtvdev.c:525: warning: comparison between pointer and integer
ivtvdev.c:527: error: âvisualâ undeclared (first use in this function)
ivtvdev.c:527: error: request for member âvisualsâ in something not a structure or union
ivtvdev.c:527: error: request for member ânumVisualsâ in something not a structure or union
ivtvdev.c:527: error: invalid operands to binary +
ivtvdev.c:528: error: wrong type argument to decrement
ivtvdev.c:528: error: request for member âvisualsâ in something not a structure or union
ivtvdev.c:529: error: request for member âclassâ in something not a structure or union
ivtvdev.c:529: error: âDynamicClassâ undeclared (first use in this function)
ivtvdev.c:529: error: invalid operands to binary |
ivtvdev.c:529: error: âDirectColorâ undeclared (first use in this function)
ivtvdev.c:530: error: request for member âoffsetRedâ in something not a structure or union
ivtvdev.c:530: error: invalid type argument of â->â
ivtvdev.c:530: error: request for member âoffsetâ in something not a structure or union
ivtvdev.c:530: error: request for member âredâ in something not a structure or union
ivtvdev.c:531: error: request for member âoffsetGreenâ in something not a structure or union
ivtvdev.c:531: error: invalid type argument of â->â
ivtvdev.c:531: error: request for member âoffsetâ in something not a structure or union
ivtvdev.c:531: error: request for member âgreenâ in something not a structure or union
ivtvdev.c:532: error: request for member âoffsetBlueâ in something not a structure or union
ivtvdev.c:532: error: invalid type argument of â->â
ivtvdev.c:532: error: request for member âoffsetâ in something not a structure or union
ivtvdev.c:532: error: request for member âblueâ in something not a structure or union
ivtvdev.c:533: error: request for member âredMaskâ in something not a structure or union
ivtvdev.c:533: error: invalid type argument of â->â
ivtvdev.c:533: error: request for member âmaskâ in something not a structure or union
ivtvdev.c:533: error: request for member âredâ in something not a structure or union
ivtvdev.c:534: error: request for member âgreenMaskâ in something not a structure or union
ivtvdev.c:534: error: invalid type argument of â->â
ivtvdev.c:534: error: request for member âmaskâ in something not a structure or union
ivtvdev.c:534: error: request for member âgreenâ in something not a structure or union
ivtvdev.c:535: error: request for member âblueMaskâ in something not a structure or union
ivtvdev.c:535: error: invalid type argument of â->â
ivtvdev.c:535: error: request for member âmaskâ in something not a structure or union
ivtvdev.c:535: error: request for member âblueâ in something not a structure or union
ivtvdev.c:542: error: invalid type argument of â->â
ivtvdev.c:542: error: request for member âscrnIndexâ in something not a structure or union
ivtvdev.c:542: error: âX_WARNINGâ undeclared (first use in this function)
ivtvdev.c:550: warning: return makes integer from pointer without a cast
ivtvdev.c:556: error: invalid type argument of â->â
ivtvdev.c:556: error: request for member âbitsPerPixelâ in something not a structure or union
ivtvdev.c:556: warning: comparison between pointer and integer
ivtvdev.c:569: warning: return makes integer from pointer without a cast
ivtvdev.c:571: error: âCMAP_PALETTED_TRUECOLORâ undeclared (first use in this function)
ivtvdev.c:574: warning: return makes integer from pointer without a cast
ivtvdev.c:578: error: request for member âSaveScreenâ in something not a structure or union
ivtvdev.c:581: error: request for member âCloseScreenâ in something not a structure or union
ivtvdev.c:581: error: request for member âCloseScreenâ in something not a structure or union
ivtvdev.c:582: error: request for member âCloseScreenâ in something not a structure or union
ivtvdev.c:591: error: âTRUEâ undeclared (first use in this function)
ivtvdev.c:591: warning: return makes integer from pointer without a cast
ivtvdev.c: At top level:
ivtvdev.c:594: error: syntax error before âIVTVDevCloseScreenâ
ivtvdev.c:594: error: syntax error before âScreenPtrâ
ivtvdev.c: In function âIVTVDevCloseScreenâ:
ivtvdev.c:596: error: âScrnInfoPtrâ undeclared (first use in this function)
ivtvdev.c:596: error: syntax error before âpScrnâ
ivtvdev.c:600: error: âfPtrâ undeclared (first use in this function)
ivtvdev.c:600: error: request for member âshadowmemâ in something not a structure or union
ivtvdev.c:601: error: invalid type argument of â->â
ivtvdev.c:601: error: request for member âvtSemaâ in something not a structure or union
ivtvdev.c:603: error: âpScreenâ undeclared (first use in this function)
ivtvdev.c:603: error: request for member âCloseScreenâ in something not a structure or union
ivtvdev.c:603: error: request for member âCloseScreenâ in something not a structure or union
ivtvdev.c:604: error: request for member âCloseScreenâ in something not a structure or union
ivtvdev.c:604: error: âscrnIndexâ undeclared (first use in this function)
ivtvdev.c:604: error: called object â*(&<erroneous-expression>)â is not a function
ivtvdev.c:604: warning: return makes integer from pointer without a cast
make: *** [ivtvdev.o] Error 1
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv#
It's not way off - it simply means you have to get the missing header files. You could download X source in its entirety to get them, for instance. You no longer have your original problem of no Imakefile, do you?
When you get output like the above, it is often the case that you just have to fix the first few errors and the rest will go away.
Google for xf86str.h turns up plenty.
You could fetch the missing headers and copy them to one of the directories already being searched rather than fetch the whole source tree - migt be an iterative process. I got similar output to you:
17:52:40$ make
rm -f ivtvdev.o
gcc -O2 -fno-strength-reduce -fno-strict-aliasing     -fno-merge-constants -I. -I./programs/Xserver/hw/xfree86/common -I./programs/Xserver/hw/xfree86/os-support            -I./programs/Xserver/mfb -I./programs/Xserver/mi            -I./programs/Xserver/fb -I./programs/Xserver/hw/xfree86/xaa        -I./programs/Xserver/hw/xfree86/fbdevhw -I./programs/Xserver/hw/xfree86/ramdac            -I./programs/Xserver/hw/xfree86/ddc -I./programs/Xserver/hw/xfree86/i2c            -I./programs/Xserver/hw/xfree86/rac            -I./programs/Xserver/Xext -I./programs/Xserver/hw/xfree86/xf24_32bpp           -I./include/fonts -I./programs/Xserver/include -I./exports/include/X11      -I./programs/Xserver/miext/shadow -I./include/extensions -I./programs/Xserver/render  -I/usr/X11R6/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                           -D_POSIX_SOURCE -D_XOPEN_SOURCE        -D_BSD_SOURCE -D_SVID_SOURCE                                                              -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension    -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                                 -DXFreeXDGA -DXvExtension                               -DXFree86LOADER  -DXFree86Server                                -DXF86VIDMODE                           -DXvMCExtension                                 -DSMART_SCHEDULE                                 -DXResExtension                                -DX_BYTE_ORDER=X_LITTLE_ENDIAN                 -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7) * 100000) + ((0) * 1000) + 0)" -D_XSERVER64 -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module                        -DX_USE_REGION_NULL  -DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'  -c ivtvdev.c
In file included from ivtvdev.c:8:
ivtvhw.h:5:21: xf86str.h: No such file or directory
ivtvhw.h:6:24: colormapst.h: No such file or directory
ivtvhw.h:10:24: linux/ivtv.h: No such file or directory
ivtvhw.h:17:20: fbpriv.h: No such file or directory
In file included from ivtvdev.c:8:
ivtvhw.h:30: error: field `fix' has incomplete type
ivtvhw.h:31: error: field `var' has incomplete type
ivtvhw.h:34: error: field `saved_var' has incomplete type
(and so on...)

You need to fetch the missing headers
Avatar of j2

ASKER

All those files are present tho,

mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# locate xf86str.h
/usr/include/xorg/xf86str.h
/usr/src/xorg-server-1.0.2/hw/xfree86/common/xf86str.h
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv#
You should be able to trick it into working:
  cd /usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv
  mkdir programs
  cd programs
  ln -s /usr/src/xorg-server-1.0.2 Xserver
  cd ..
  make

Alternativelyyou could try moving ivtv to /usr/src/xorg-server-1.0.2/hw/xfree86/drivers/ivtv then do xmkmf ../../../.. but I think the symlink should do it
Avatar of j2

ASKER

It still can't find the file.


mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# mkdir programs
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# cd programs/
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/programs# ln -s /usr/src/xorg-server-1.0.2 Xserver
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv/programs# cd ..
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# make
make: *** No targets.  Stop.
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv# make
rm -f ivtvdev.o
gcc -m32 -g -O2 -fno-strict-aliasing   -fPIC  -I. -I./programs/Xserver/hw/xfree86/common -I./programs/Xserver/hw/xfree86/os-support            -I./programs/Xserver/mfb -I./programs/Xserver/mi            -I./programs/Xserver/fb -I./programs/Xserver/hw/xfree86/xaa     -I./programs/Xserver/hw/xfree86/fbdevhw -I./programs/Xserver/hw/xfree86/ramdac            -I./programs/Xserver/hw/xfree86/ddc -I./programs/Xserver/hw/xfree86/i2c            -I./programs/Xserver/hw/xfree86/rac            -I./programs/Xserver/Xext -I./programs/Xserver/hw/xfree86/xf24_32bpp           -I./include/fonts -I./programs/Xserver/include -I./exports/include/X11      -I./programs/Xserver/miext/shadow -I./include/extensions -I./programs/Xserver/render     -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                        -D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP      -DXCSECURITY -DTOGCUP    -DXF86BIGFONT -DDPMSExtension   -DXPRINT -DPIXPRIV -DPANORAMIX   -DRENDER -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE    -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                          -DXFreeXDGA -DXvExtension                               -DXFree86LOADER -DDLOPEN_HACK -DXFree86Server                           -DXF86VIDMODE                          -DXvMCExtension                          -DSMART_SCHEDULE                       -DBUILDDEBUG -DXResExtension                             -DX_BYTE_ORDER=X_LITTLE_ENDIAN                          -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DUSE_AFB                          -DX_USE_REGION_NULL   -c ivtvdev.c
In file included from ivtvhw.h:5,
                 from ivtvdev.c:8:
./programs/Xserver/hw/xfree86/common/xf86str.h:45:21: error: xf86Pci.h: No such file or directory
In file included from ivtvhw.h:5,
                 from ivtvdev.c:8:
./programs/Xserver/hw/xfree86/common/xf86str.h:932: error: syntax error before âIOADDRESSâ
./programs/Xserver/hw/xfree86/common/xf86str.h:932: warning: no semicolon at end of struct or union
./programs/Xserver/hw/xfree86/common/xf86str.h:1000: error: syntax error before â}â token
./programs/Xserver/hw/xfree86/common/xf86str.h:1000: warning: data definition has no type or storage class
In file included from ivtvdev.c:11:
./programs/Xserver/hw/xfree86/common/xf86.h:109: error: syntax error before â*â token
./programs/Xserver/hw/xfree86/common/xf86.h:109: warning: data definition has no type or storage class
./programs/Xserver/hw/xfree86/common/xf86.h:277: error: syntax error before âIOADDRESSâ
ivtvdev.c: In function âFBshadowUpdatePackedâ:
ivtvdev.c:172: error: dereferencing pointer to incomplete type
ivtvdev.c:173: error: dereferencing pointer to incomplete type
ivtvdev.c:175: error: dereferencing pointer to incomplete type
ivtvdev.c: In function âIVTVDevGetRecâ:
ivtvdev.c:194: error: dereferencing pointer to incomplete type
ivtvdev.c:197: error: dereferencing pointer to incomplete type
ivtvdev.c: In function âIVTVDevFreeRecâ:
ivtvdev.c:203: error: dereferencing pointer to incomplete type
ivtvdev.c:205: error: dereferencing pointer to incomplete type
ivtvdev.c:206: error: dereferencing pointer to incomplete type
ivtvdev.c: In function âIVTVDevProbeâ:
ivtvdev.c:272: error: dereferencing pointer to incomplete type
ivtvdev.c:273: error: dereferencing pointer to incomplete type
ivtvdev.c:278: error: dereferencing pointer to incomplete type
ivtvdev.c:279: error: dereferencing pointer to incomplete type
ivtvdev.c:280: error: dereferencing pointer to incomplete type
ivtvdev.c:281: error: dereferencing pointer to incomplete type
ivtvdev.c:282: error: dereferencing pointer to incomplete type
ivtvdev.c:283: error: dereferencing pointer to incomplete type
ivtvdev.c:284: error: dereferencing pointer to incomplete type
ivtvdev.c:285: error: dereferencing pointer to incomplete type
ivtvdev.c:286: error: dereferencing pointer to incomplete type
ivtvdev.c:287: error: dereferencing pointer to incomplete type
ivtvdev.c:288: error: dereferencing pointer to incomplete type
ivtvdev.c:290: error: dereferencing pointer to incomplete type
ivtvdev.c: In function âIVTVDevPreInitâ:
ivtvdev.c:316: error: dereferencing pointer to incomplete type
ivtvdev.c:319: error: dereferencing pointer to incomplete type
ivtvdev.c:319: error: dereferencing pointer to incomplete type
ivtvdev.c:322: error: dereferencing pointer to incomplete type
ivtvdev.c:324: error: dereferencing pointer to incomplete type
ivtvdev.c:326: error: dereferencing pointer to incomplete type
ivtvdev.c:328: error: dereferencing pointer to incomplete type
ivtvdev.c:332: error: dereferencing pointer to incomplete type
ivtvdev.c:348: error: dereferencing pointer to incomplete type
ivtvdev.c:352: error: dereferencing pointer to incomplete type
ivtvdev.c:363: error: dereferencing pointer to incomplete type
ivtvdev.c:363: error: dereferencing pointer to incomplete type
ivtvdev.c:364: error: dereferencing pointer to incomplete type
ivtvdev.c:366: error: dereferencing pointer to incomplete type
ivtvdev.c:367: error: dereferencing pointer to incomplete type
ivtvdev.c:379: error: dereferencing pointer to incomplete type
ivtvdev.c:380: error: dereferencing pointer to incomplete type
ivtvdev.c:381: error: dereferencing pointer to incomplete type
ivtvdev.c:382: error: dereferencing pointer to incomplete type
ivtvdev.c:384: error: dereferencing pointer to incomplete type
ivtvdev.c:385: error: dereferencing pointer to incomplete type
ivtvdev.c:392: error: dereferencing pointer to incomplete type
ivtvdev.c:397: error: dereferencing pointer to incomplete type
ivtvdev.c:401: error: dereferencing pointer to incomplete type
ivtvdev.c:404: error: dereferencing pointer to incomplete type
ivtvdev.c:410: error: dereferencing pointer to incomplete type
ivtvdev.c:417: error: dereferencing pointer to incomplete type
ivtvdev.c:419: error: dereferencing pointer to incomplete type
ivtvdev.c:419: error: dereferencing pointer to incomplete type
ivtvdev.c:421: error: dereferencing pointer to incomplete type
ivtvdev.c:421: error: dereferencing pointer to incomplete type
ivtvdev.c:441: error: dereferencing pointer to incomplete type
ivtvdev.c: In function âIVTVDevScreenInitâ:
ivtvdev.c:459: error: dereferencing pointer to incomplete type
ivtvdev.c:468: error: dereferencing pointer to incomplete type
ivtvdev.c:469: error: dereferencing pointer to incomplete type
ivtvdev.c:470: error: dereferencing pointer to incomplete type
ivtvdev.c:471: error: dereferencing pointer to incomplete type
ivtvdev.c:471: error: dereferencing pointer to incomplete type
ivtvdev.c:471: error: dereferencing pointer to incomplete type
ivtvdev.c:472: error: dereferencing pointer to incomplete type
ivtvdev.c:472: error: dereferencing pointer to incomplete type
ivtvdev.c:472: error: dereferencing pointer to incomplete type
ivtvdev.c:476: error: dereferencing pointer to incomplete type
ivtvdev.c:485: error: dereferencing pointer to incomplete type
ivtvdev.c:487: error: dereferencing pointer to incomplete type
ivtvdev.c:487: error: dereferencing pointer to incomplete type
ivtvdev.c:493: error: dereferencing pointer to incomplete type
ivtvdev.c:494: error: dereferencing pointer to incomplete type
ivtvdev.c:495: error: dereferencing pointer to incomplete type
ivtvdev.c:495: error: dereferencing pointer to incomplete type
ivtvdev.c:506: error: dereferencing pointer to incomplete type
ivtvdev.c:507: error: dereferencing pointer to incomplete type
ivtvdev.c:511: error: dereferencing pointer to incomplete type
ivtvdev.c:518: error: dereferencing pointer to incomplete type
ivtvdev.c:518: error: dereferencing pointer to incomplete type
ivtvdev.c:518: error: dereferencing pointer to incomplete type
ivtvdev.c:519: error: dereferencing pointer to incomplete type
ivtvdev.c:525: error: dereferencing pointer to incomplete type
ivtvdev.c:530: error: dereferencing pointer to incomplete type
ivtvdev.c:531: error: dereferencing pointer to incomplete type
ivtvdev.c:532: error: dereferencing pointer to incomplete type
ivtvdev.c:533: error: dereferencing pointer to incomplete type
ivtvdev.c:534: error: dereferencing pointer to incomplete type
ivtvdev.c:535: error: dereferencing pointer to incomplete type
ivtvdev.c:542: error: dereferencing pointer to incomplete type
ivtvdev.c:556: error: dereferencing pointer to incomplete type
ivtvdev.c: In function âIVTVDevCloseScreenâ:
ivtvdev.c:597: error: dereferencing pointer to incomplete type
ivtvdev.c:601: error: dereferencing pointer to incomplete type
make: *** [ivtvdev.o] Error 1
mythbox:/usr/src/ivtv_xdriver_0.10.6/ivtvdrv/xc/programs/Xserver/hw/xfree86/drivers/ivtv#
That's a *different* file. You did make some progress therefore. But it was always going to be a kludge, making the symlink. Ok, make sure you have the file somewhere as you did before:
  locate xf86Pci.h
Also, if you haven't yet done so, type:
  man xmkmf
From my reading of that man page, it seems to me you should locate the driver in the xorg source tree as I mentioned as an alternative in my previous post. So you might wat to try that.
The symlink would not have catered for: -I./include/fonts -I./exports/include/X11 -I./include/extensions
To continue on the current path, you likely need to make symlinks for exports & includes
Avatar of j2

ASKER

They seem to be at the same place?

mythtv@mythbox:/etc/gdm$ locate xf86Pci.h
/usr/include/xorg/xf86Pci.h
/usr/src/xorg-server-1.0.2/hw/xfree86/os-support/bus/xf86Pci.h
mythtv@mythbox:/etc/gdm$


Wait, you mean that if i copy the files into the "Matching path" of the X-source, it could work?
ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of j2

ASKER

Hm, i can't get the make to work, and i can't figure out what to symlink where... Care to give me a hint on the symnlinking?
First of all, I'd stay clear of using files from /usr/include/xorg because that's the installed version which may be different from the source (unless you installed from source).
As I mentioned, the Makefile you are running references -I./include/fonts -I./exports/include/X11 -I./include/extensions
Let's say we make one of those directories, include/extensions say, and copy /usr/src/xorg-server-1.0.2/hw/xfree86/os-support/bus/xf86Pci.h to it.
Now try again and see what's missing now.
If you find there's a dir with lots of missing headers, you could symlink it to one of the other two (include/fonts / exports/include/X11).
E.g. supposing /usr/src/xorg-server-1.0.2/hw/xfree86/os-support/bus contains lots of wanted files:
mkdir exports/include
cd exports/include
ln -s /usr/src/xorg-server-1.0.2/hw/xfree86/os-support/bus X11
Avatar of j2

ASKER

Sorry, i never received a mail notification that the question had been updated.

I have a general question here: In the time i was waiting for an update, the solution was presented to me in the mythusers mailing list.

Even though duncan_roe did not manage to copmplete the compile, i feel he has been _more_ then helpful.

Therefore i will when i am back home post the link to the complete solution as a comment here so others can find it, and then i will award the points to duncan_roe.

I hope that is not a violation of any policies?

Duncan_roe: Sorry for not updating the case, but i never got the notification, sorry.
Avatar of j2

ASKER

Here is the thread that helped me eventuelly.

But, i will rate this thread as accepted, because the help i got was first rate, and if i had received the notification, i am sure the dialog would have led to success

http://www.ivtvdriver.org/pipermail/ivtv-users/2006-August/003742.html