Hi Ronald,

Got zoran_driver to compile after patching the source like you said.

Some other modules wouldn't compile either so I (unhindered by any
knowledge of the matter as the dutch would say) modified the other files
similarly

(notice the dates)

[EMAIL PROTECTED] driver-zoran-0.9.4-mod]# ls -lt *.c
-rw-r--r--    1 beheer   root        17215 Sep  1 21:29 vpx3220.c
-rw-r--r--    1 beheer   root         9715 Sep  1 21:27 bt856.c
-rw-r--r--    1 beheer   root        15703 Sep  1 21:27 bt819.c
-rw-r--r--    1 beheer   root        13003 Sep  1 21:26 adv7170.c
-rw-r--r--    1 beheer   root        13635 Sep  1 21:25 adv7175.c
-rw-r--r--    1 beheer   root        32815 Sep  1 21:25 saa7114.c
-rw-r--r--    1 beheer   root        12377 Sep  1 21:24 saa7185.c
-rw-r--r--    1 beheer   root        15769 Sep  1 21:23 saa7110.c
-rw-r--r--    1 beheer   root        13596 Sep  1 21:22 saa7111.c
-rw-r--r--    1 beheer   root       116546 Sep  1 21:19 zoran_driver.c

-rw-r--r--    1 beheer   root        12179 Mar 27 00:03 videocodec.c
-rw-r--r--    1 beheer   root        40104 Mar 27 00:03 zoran_card.c
-rw-r--r--    1 beheer   root        44933 Mar 27 00:03 zoran_device.c
-rw-r--r--    1 beheer   root         6047 Mar 27 00:03 zoran_procfs.c
-rw-r--r--    1 beheer   root        14131 Mar 27 00:03 zr36016.c
-rw-r--r--    1 beheer   root        26186 Mar 27 00:03 zr36050.c
-rw-r--r--    1 beheer   root        30493 Mar 27 00:03 zr36060.c

After the modification everything compiles ok 
...
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-19.23.rh9.at/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-19.23.rh9.at/include/linux/modversions.h
-DEXPORT_SYMTAB  -nostdinc -iwithprefix include
-DKBUILD_BASENAME=videocodec  -c -o videocodec.o videocodec.c
make[2]: Leaving directory `/opt/install/driver-zoran-0.9.4-mod'
make[1]: Leaving directory `/usr/src/linux-2.4.20-19.23.rh9.at'

but I get the following errors when loading the modules:

[EMAIL PROTECTED] driver-zoran-0.9.4-mod]# ./update dc10plus PAL
./videocodec.o: unresolved symbol create_proc_entry
./videocodec.o: unresolved symbol remove_proc_entry
./saa7110.o: unresolved symbol i2c_transfer
./saa7110.o: unresolved symbol i2c_probe
./saa7110.o: unresolved symbol i2c_detach_client
./saa7110.o: unresolved symbol i2c_check_functionality
./saa7110.o: unresolved symbol i2c_del_driver
./saa7110.o: unresolved symbol sleep_on_timeout
./saa7110.o: unresolved symbol i2c_smbus_write_byte_data
./saa7110.o: unresolved symbol i2c_smbus_read_byte
./saa7110.o: unresolved symbol i2c_attach_client
./saa7110.o: unresolved symbol i2c_add_driver
./adv7175.o: unresolved symbol i2c_transfer
./adv7175.o: unresolved symbol i2c_probe
./adv7175.o: unresolved symbol i2c_detach_client
./adv7175.o: unresolved symbol i2c_check_functionality
./adv7175.o: unresolved symbol i2c_del_driver
./adv7175.o: unresolved symbol i2c_smbus_read_byte_data
./adv7175.o: unresolved symbol i2c_smbus_write_byte_data
./adv7175.o: unresolved symbol i2c_attach_client
./adv7175.o: unresolved symbol i2c_add_driver
./zr36060.o: unresolved symbol videocodec_unregister
./zr36060.o: unresolved symbol videocodec_register
./zoran.o: unresolved symbol remap_page_range
./zoran.o: unresolved symbol __wake_up
./zoran.o: unresolved symbol videocodec_attach
./zoran.o: unresolved symbol create_proc_entry
./zoran.o: unresolved symbol i2c_bit_del_bus
./zoran.o: unresolved symbol videocodec_detach
./zoran.o: unresolved symbol no_llseek
./zoran.o: unresolved symbol video_register_device
./zoran.o: unresolved symbol video_unregister_device
./zoran.o: unresolved symbol i2c_bit_add_bus
./zoran.o: unresolved symbol video_usercopy
./zoran.o: unresolved symbol interruptible_sleep_on_timeout
./zoran.o: unresolved symbol request_module
./zoran.o: unresolved symbol interruptible_sleep_on
./zoran.o: unresolved symbol __pollwait
./zoran.o: unresolved symbol remove_proc_entry
./zoran.o: unresolved symbol i2c_inc_use_client
./zoran.o: unresolved symbol mem_map
./zoran.o: unresolved symbol i2c_dec_use_client
Drivers for ' dc10plus' with norm 'PAL' loaded
[EMAIL PROTECTED] driver-zoran-0.9.4-mod]# lsmod | more
Module                  Size  Used by    Tainted: PF
i2c-algo-bit            9000   0  (unused)
i2c-core               21124   0  [i2c-algo-bit]
videodev                8288   0  (unused)
es1371                 30856   0  (autoclean)
gameport                3380   0  (autoclean) [es1371]
ac97_codec             14568   0  (autoclean) [es1371]
soundcore               6436   4  (autoclean) [es1371]
agpgart                48128   3  (autoclean)
nvidia               1764992  11  (autoclean)
ip_conntrack_tftp       2640   0  (unused)
ip_conntrack_irc        4112   0  (unused)
ip_conntrack_amanda     2848   0  (unused)
binfmt_misc             7432   1
vmnet                  25664   6
parport_pc             19076   0
parport                37056   0  [parport_pc]
vmmon                  35324   0  (unused)
autofs                 13364   0  (autoclean) (unused)
tulip                  43840   1
ipt_state               1080  30  (autoclean)
ipt_REJECT              3992   0  (autoclean)
ipt_LOG                 4184   0  (autoclean)
ip_conntrack_ftp        5296   0  (unused)
ip_conntrack           27272   5  [ip_conntrack_tftp ip_conntrack_irc
ip_conntrack_amanda ipt_state ip_conntrack_ftp]
iptable_filter          2444   1  (autoclean)
ip_tables              15096   4  [ipt_state ipt_REJECT ipt_LOG
iptable_filter]
sg                     36524   0  (autoclean)
sr_mod                 18168   0  (autoclean)
serial                 55300   0  (autoclean)
microcode               4668   0  (autoclean)
ide-scsi               12208   0
scsi_mod              107576   3  [sg sr_mod ide-scsi]
ide-cd                 35712   0
cdrom                  33728   0  [sr_mod ide-cd]
ohci1394               20200   0  (unused)
ieee1394               48780   0  [ohci1394]
nls_iso8859-1           3516   3  (autoclean)
nls_cp437               5148   3  (autoclean)
vfat                   13036   3  (autoclean)
fat                    38840   0  (autoclean) [vfat]
loop                   12152   0  (autoclean)
lvm-mod                64032   0
keybdev                 2976   0  (unused)
mousedev                5556   0  (unused)
hid                    22276   0  (unused)
input                   5888   0  [keybdev mousedev hid]
usb-uhci               26412   0  (unused)
usbcore                79360   1  [hid usb-uhci]
ext3                   70976   1
jbd                    51924   1  [ext3]


Any advice?

t.i.a 
Johan
-


On Mon, 2003-09-01 at 21:04, Johan Hoeke wrote:
> Excellent. Thanks very much Ronald.
> I'll give it a go right away.
> 
> On Mon, 2003-09-01 at 12:04, Ronald Bultje wrote:
> > Hi Johan,
> > 
> > On Fri, 2003-08-29 at 18:16, Johan Hoeke wrote:
> > > What about non-kernel.org kernels like RedHat kernels?
> > > The project that I want to use (mythtv) has lots of rpm goodies 
> > > centered around the 2.4.20-19 RedHat kernel.
> > > Anyone have experience getting the zoran driver to compile w/ the redhat
> > > kernels?
> > 
> > I'm both maintainer and RedHat user, so I sometimes notice these things
> > on a new RedHat installation, too. I'm primarily developping on
> > "vanilla" kernels, though, so expect the driver to run solely on these.
> > 
> > Now, on RedHat: they use modified kernel headers that are incompatible
> > (ABI/API wise) with the vanilla sources on 2.4.x, and I'm not going to
> > "improperize" our sources to handle that. I can tell you how to fix it
> > manually, though. In zoran_driver.c, line 4475, you'll see these lines:
> > 
> > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> > #define zr_remap_page_range(a,b,c,d,e) remap_page_range(b,c,d,e)
> > #else
> > #define zr_remap_page_range(a,b,c,d,e) remap_page_range(a,b,c,d,e)
> > #endif
> > 
> > Change that to:
> > 
> > #if 0
> > #define zr_remap_page_range(a,b,c,d,e) remap_page_range(b,c,d,e)
> > #else
> > #define zr_remap_page_range(a,b,c,d,e) remap_page_range(a,b,c,d,e)
> > #endif
> > 
> > And it'll compile just fine.
> > 
> > HTH,
> > Ronald
-- 
Johan Hoeke <[EMAIL PROTECTED]>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to