Export to GitHub

linuxgenius - issue #1

wizardpen sources can't be compiled for Xorg 1.6 (Fedora 11)


Posted on Mar 7, 2009 by Swift Camel

When I try to compile the wizardpen (./configure and then make), make fails with the following error:

wizardpen.c:648: error: too many arguments to function ‘InitValuatorClassDeviceStruct’ make[2]: * [wizardpen.lo] Error 1 make[2]: Leaving directory /home/user1/Downloads/wizardpen-0.6.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/panormitis/Downloads/wizardpen-0.6.0.2' make: * [all] Error 2

Comment #1

Posted on Mar 22, 2009 by Helpful Hippo

Hi, I've solved that error ;-)

You have to delete parameter 'xf86GetMotionEvents' in file 'src/wizardpen.c' on line 648: if (InitValuatorClassDeviceStruct(dev,3,xf86GetMotionEvents,local->history_size,((priv->flags & ABSOLUTE_FLAG)? Absolute: Relative)|OutOfProximity)== FALSE)

The line will look like this:

if (InitValuatorClassDeviceStruct(dev,3,local->history_size,((priv->flags & ABSOLUTE_FLAG)? Absolute: Relative)|OutOfProximity)== FALSE)

Good luck ;-)

Comment #2

Posted on Apr 21, 2009 by Happy Rhino

Is this issue fixed in 0.7-alpha2?

Comment #3

Posted on Apr 22, 2009 by Grumpy Panda

I personally had made the fix, but still haven't had a 8.10 machine to confirm whether it will compile correctly there :). Would benefit from some testing before closing that.

Comment #4

Posted on Jun 17, 2009 by Massive Horse

Comment deleted

Comment #5

Posted on Jun 17, 2009 by Massive Horse

Hi, With Fedora 11, I compile wizardpen-0.6.1rc2 without any error applying "Comment 1". wizardpen-0.7.0-alpha2 compiles correctly without any change and works fine too.

Great job.

Thanks

Comment #6

Posted on Aug 10, 2009 by Happy Dog

Yeah, I made an RPM for wizardpen 0.7.0-alpha2, and managed to configure my tablet succesfully.

I'll gladly share for it to be submitted on the page.

I had to modify the tar filename for it to work, mainly because I suck at making specfiles from packages that use "-" on them, other than that, nothing else was modified.

Attachments

Comment #7

Posted on Aug 22, 2009 by Grumpy Elephant

Just upgraded my (not working) 6.0.2-4 to this 0.7.0.0 on my FC11 with a Genius MousePen 5x4 and it works 100% including pressure sensitivity in Gimp. Nice one guys. -Nixon

Comment #8

Posted on Dec 16, 2009 by Grumpy Camel

hi,

I just came across this.

On a Fedora 12 x86_64 system, I get errors on building the alpha2, even building an rpm from nushios srpm gives the same error:

  • make make all-recursive make[1]: Entering directory /home/Package/rpmbuild/BUILD/wizardpen-0.7.0' Making all in src make[2]: Entering directory/home/Package/rpmbuild/BUILD/wizardpen-0.7.0/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp- buffer-size=4 -m64 -mtune=generic -fvisibility=hidden -I/usr/include/xorg - I/usr/include/pixman-1 -I../src -MT wizardpen.lo -MD -MP -MF .deps/wizardpen.Tpo -c -o wizardpen.lo wizardpen.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 - fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic - fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -I../src -MT wizardpen.lo -MD -MP -MF .deps/wizardpen.Tpo -c wizardpen.c -fPIC -DPIC -o .libs/wizardpen.o wizardpen.c: In function 'WizardPenPreInit': wizardpen.c:410: warning: unused variable 'rotate' wizardpen.c:300: warning: unused variable 'speed' wizardpen.c: In function 'DeviceInit': wizardpen.c:636: warning: passing argument 3 of 'InitButtonClassDeviceStruct' from incompatible pointer type /usr/include/xorg/input.h:274: note: expected 'Atom *' but argument is of type 'unsigned char *' wizardpen.c:636: error: too few arguments to function 'InitButtonClassDeviceStruct' wizardpen.c:662: warning: passing argument 3 of 'InitValuatorClassDeviceStruct' makes pointer from integer without a cast /usr/include/xorg/input.h:280: note: expected 'Atom ' but argument is of type 'unsigned int' wizardpen.c:662: error: too few arguments to function 'InitValuatorClassDeviceStruct' wizardpen.c:677: error: too few arguments to function 'InitValuatorAxisStruct' wizardpen.c:685: error: too few arguments to function 'InitValuatorAxisStruct' wizardpen.c:693: error: too few arguments to function 'InitValuatorAxisStruct' wizardpen.c: In function 'QueryHardware': wizardpen.c:1151: warning: implicit declaration of function 'xf86usleep' make[2]: [wizardpen.lo] Error 1 make[2]: Leaving directory /home/Package/rpmbuild/BUILD/wizardpen-0.7.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/Package/rpmbuild/BUILD/wizardpen-0.7.0' make: * [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.oEFfRR (%build)

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.oEFfRR (%build)

regards, Ankur

Comment #9

Posted on Dec 18, 2009 by Happy Kangaroo

for those trying to use this module on f-12, I have created patch that compiles successfully but I don't have tablet device to test this patch. So you can check this patch but I don't know what will be end result as I just blindly corrected functions as per new API's.

Attachments

Comment #10

Posted on Jan 7, 2010 by Helpful Kangaroo

Im using opensuse 12. installed driver but I applied .spec file content by hand fdi definition goes sudo nano -w /usr/share/hal/fdi/policy/20thirdparty/99-x11-wizardpen.fdi and udev rules goes /lib/udev/rules.d but in my setup mouse take over the control before wizardpen thus I moved priority of wizardpen driver.

sudo mv 60-wizardpen.rules 59-wizardpen.rules

Comment #11

Posted on Jan 17, 2010 by Helpful Camel

I use patch from panemade for Fedora 12 x64 and for me it works

Status: New

Labels:
Type-Defect Priority-Medium