- From: Charles-Edouard Ruault <ce_at_idtect.com>
- Date: Thu, 12 Jun 2003 14:04:20 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
root wrote:
>I compile comedi-0.7.66 under redhat9.0 with gcc-3.2.2, get the
>following error message:
>
>comedi_fops.c: In function `comedi_mmap_v22':
>comedi_fops.c:1269: warning: passing arg 1 of `remap_page_range' makes
>pointer from integer without a cast
>comedi_fops.c:1269: incompatible type for argument 4 of
>`remap_page_range'
>comedi_fops.c:1269: too few arguments to function `remap_page_range'
>make[1]: *** [comedi_fops.o] Error 1
>make[1]: Leaving directory `/root/work/comedi/comedi-0.7.66/comedi'
>
>How to solve it? thanks!
>
>
>
>_______________________________________________
>comedi mailing list
>comedi_at_comedi.org
>https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>
>
Hi,
this is the exact same problem i reported earlier to the list.
So far no answer ... my analysis is a linker problem since this problem
does not appear with other versions of ld.
The cause is that during the link phase, the symbols without the version
are removed from the library, causing the errors you see there.
The quick & dirty fix is to change the macro EXPORT_SYMBOL to do nothing.
in lib/libinternal.h replace
#define EXPORT_SYMBOL(a,b) __asm__(".symver " #a "," #a "_at_v" #b )
with
#define EXPORT_SYMBOL(a,b)
that will do the trick.
- --
Charles-Edouard Ruault
Idtect SA
http://www.idtect.com
+33-1-42-81-81-84
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+6GxEq8GOfVwbE7sRAripAKCQCCxJqYymByTf3jchoVOquxNJZwCgn0kL
n5pmXX73w/CiJXLsaaFUhrw=
=UHEb
-----END PGP SIGNATURE-----
Received on 2003-06-12Z11:04:20