Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xf86-input-evdev fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
steelerguy
n00b
n00b


Joined: 03 Feb 2003
Posts: 29

PostPosted: Thu Apr 19, 2007 4:29 pm    Post subject: xf86-input-evdev fails to compile Reply with quote

I am trying to build a LiveCD using spec files that worked a couple months ago. The compile is failing on x11-drivers/xf86-input-evdev-1.1.2-r2 with this error:

Code:
evdev.c: In function 'EvdevSwitchMode':
evdev.c:235: error: 'SendCoreEvents' undeclared (first use in this function)
evdev.c:235: error: (Each undeclared identifier is reported only once
evdev.c:235: error: for each function it appears in.)
evdev.c:236: error: 'DontSendCoreEvents' undeclared (first use in this function)
make[2]: *** [evdev_drv_la-evdev.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-input-evdev-1.1.2-r2/work/xf86-input-evdev-1.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-input-evdev-1.1.2-r2/work/xf86-input-evdev-1.1.2'
make: *** [all] Error 2

!!! ERROR: x11-drivers/xf86-input-evdev-1.1.2-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3861:   Called src_compile
  ebuild.sh, line 1304:   Called x-modular_src_compile
  x-modular.eclass, line 333:   Called x-modular_src_make
  x-modular.eclass, line 328:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/x11-drivers/xf86-input-evdev-1.1.2-r2/temp/build.log'.


After digging around I have found that /usr/include/X11/extensions/XI.h on my system contains this:

Code:
#define Absolute                1
/* Merged from Metrolink tree for XINPUT stuff  */
#define TS_Raw                                  57
#define TS_Scaled                               58
#define SendCoreEvents                  59
#define DontSendCoreEvents              60
/* End of merged section        */

#define ProximityState          (1L << 1)


While the XI.h in the build environment, /var/tmp/catalyst/tmp/default/livecd-stage1-i686-20070418/usr/include/X11/extensions/XI.h, does not have this. It just looks like this:

Code:
#define Absolute                1

#define ProximityState          (1L << 1)


Where did this Metrolink tree stuff come from and how do I get it merged into my XI.h in my build environment? I know I could cheat and just add those lines to the file and continue on, but I would really like to get this fixed so six months from now when I need to do this again I don't have to remember my kludge.
Back to top
View user's profile Send private message
cybermc75
n00b
n00b


Joined: 19 Apr 2007
Posts: 74

PostPosted: Thu Apr 19, 2007 6:30 pm    Post subject: Same Problem Reply with quote

I'm experiencing exactly the same problem, but I'm a stupid newbie.

emerge --update --deep --newuse world done succesfully yesterday
emerge --depclean has nothing to do
revdep-rebuild done succesfully (now reports nothing to do)
using 2.6.20-r6 kernel (genkernel built)

I fell into the problem trying to emerge xorg-x11, that was not installed before.
I read somewhere that I need evdev enabled in the kernel. I had it linked-in.
Trying now enabling like a module, since I read in the help that this will create an evdev module, but I really don't know what I'm doing.
I really don't know what evdev is, in fact, and if/why I need it. It seems to me that it's something about Input devices: I'm using just a PS/2 mouse and a PS/2 keyboard.
Maybe I have to change something in the xorg.conf ?

-Please- help.

[... a couple of hour later] Now emerge doesn't need xf86-input-evdev anymore. Maybe the change in the kernel did something ... mumble mumble ...

P.S.
How I can access this forum without X installed? (now using another PC)
I need that to paste on my posts info about my system.
Back to top
View user's profile Send private message
steelerguy
n00b
n00b


Joined: 03 Feb 2003
Posts: 29

PostPosted: Thu Apr 19, 2007 9:54 pm    Post subject: Reply with quote

I am actually a little curious why more people are not having this problem. It appears to me that anyone running x86 should have it unless they use ~x86 for x11-proto/inputproto. The ebuild for inputproto-1.4 does not have x86 masked. This means you get a "bad" version of XI.h that does not include SendCoreEvents and DontSendCoreEvents. If you get inputproto-1.4 I think you will then not be able to build xf86-input-evdev-1.1.4-r2 because it needs those defined.

This explains why I not having problems on my computer which is amd64 which is using inputproto-1.3.2 because 1.4 is still masked for amd64. If you were to limit your version of x11-proto/inputproto to 1.3.2 I think it will work.
Back to top
View user's profile Send private message
cybermc75
n00b
n00b


Joined: 19 Apr 2007
Posts: 74

PostPosted: Fri Apr 20, 2007 5:00 am    Post subject: Reply with quote

Thanks steelerguy!

I made

emerge -C x11-proto/inputproto
emerge =x11-proto/inputproto-1.3.2

and then

emerege --resume

to resume emerging of xorg-server. Now works.
How can I mask inputproto-1.4 to prevent emerge --update to update it?
Should we open a bug in Bugzilla?
Thank you again.
Back to top
View user's profile Send private message
steelerguy
n00b
n00b


Joined: 03 Feb 2003
Posts: 29

PostPosted: Fri Apr 20, 2007 2:06 pm    Post subject: Reply with quote

cybermc75 wrote:
Thanks steelerguy!

I made

emerge -C x11-proto/inputproto
emerge =x11-proto/inputproto-1.3.2

and then

emerege --resume

to resume emerging of xorg-server. Now works.
How can I mask inputproto-1.4 to prevent emerge --update to update it?
Should we open a bug in Bugzilla?
Thank you again.


You should be able to put:
=x11-proto/inputproto-1.3.2 in your /etc/portage/package.mask

I was going to open a bug yesterday night and searched bugzilla first and found one that seemed to cover this issue. If you wouldn't mind, give it a look yourself and see if you agree.

No problem...now I just wish they would put out some new ebuilds so I could build my LiveCD without hacking things up! :)
Back to top
View user's profile Send private message
THuLiuM
n00b
n00b


Joined: 13 Apr 2005
Posts: 19

PostPosted: Fri Apr 20, 2007 6:32 pm    Post subject: Reply with quote

I had the same problem yesterday after inputproto update , kernel ... evdev didn't want to work and the rebuild failed.
Since i was too lazy i choosed to put my mouse mx610 to "mouse" driver back instead of evdev.

Just have to wait a patch or newer versions of some packages i guess 8)
Back to top
View user's profile Send private message
steelerguy
n00b
n00b


Joined: 03 Feb 2003
Posts: 29

PostPosted: Fri Apr 20, 2007 7:02 pm    Post subject: Reply with quote

They are going to mark the newer version of evdev as stable probably later today which will also fix the problem.

So as it stands now, there appears to be two work arounds...downgrade inputproto to 1.3.2 or use the testing version of xf86-input-evdev which is 1.1.5-r1.
Back to top
View user's profile Send private message
cybermc75
n00b
n00b


Joined: 19 Apr 2007
Posts: 74

PostPosted: Fri Apr 20, 2007 9:07 pm    Post subject: Reply with quote

steelerguy wrote:
cybermc75 wrote:
Thanks steelerguy!

I made

emerge -C x11-proto/inputproto
emerge =x11-proto/inputproto-1.3.2

and then

emerege --resume

to resume emerging of xorg-server. Now works.
How can I mask inputproto-1.4 to prevent emerge --update to update it?
Should we open a bug in Bugzilla?
Thank you again.


You should be able to put:
=x11-proto/inputproto-1.3.2 in your /etc/portage/package.mask

I was going to open a bug yesterday night and searched bugzilla first and found one that seemed to cover this issue. If you wouldn't mind, give it a look yourself and see if you agree.

No problem...now I just wish they would put out some new ebuilds so I could build my LiveCD without hacking things up! :)


Ok. I put

=x11-proto/inputproto-1.4

in /etc/portage/package.mask, since it's the 1.4 version to be masked. (1.3.2 works)

Now my world is again up-to-date. But probably it's time for a new --sync ... :wink:
Thank you so much for your effective support.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Mon Apr 23, 2007 4:57 pm    Post subject: Reply with quote

I solved this error this way:

Code:
# echo "x11-drivers/xf86-input-evdev ~x86" >> /etc/portage/package.keywords

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
Killerchronic
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2007
Posts: 91
Location: UK

PostPosted: Tue Apr 24, 2007 3:22 pm    Post subject: Reply with quote

Aniruddha wrote:
I solved this error this way:

Code:
# echo "x11-drivers/xf86-input-evdev ~x86" >> /etc/portage/package.keywords


Wow! Thank you so much, that solved it completely for me.
Been stuck for the last 3 days trying to figure that one out, first happened when i emerged xorg, then again when i was compiling gnome lol

Thought i wud post that it works as others may have the same problem as me and this may solve it for them too.

Thanks again!
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Tue Apr 24, 2007 3:47 pm    Post subject: Reply with quote

Killerchronic wrote:
Aniruddha wrote:
I solved this error this way:

Code:
# echo "x11-drivers/xf86-input-evdev ~x86" >> /etc/portage/package.keywords


Wow! Thank you so much, that solved it completely for me.
Been stuck for the last 3 days trying to figure that one out, first happened when i emerged xorg, then again when i was compiling gnome lol

Thought i wud post that it works as others may have the same problem as me and this may solve it for them too.

Thanks again!


Glad to hear it worked :).
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
stoejer
n00b
n00b


Joined: 22 Apr 2005
Posts: 4

PostPosted: Sun Apr 29, 2007 5:51 pm    Post subject: Reply with quote

The problem still exist in amd64 with an absolutely clean install using the 2007.0 profile. Masking 1.4.1 and emerging 1.3.2 seems to make things all dandy again.
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Wed May 02, 2007 1:20 am    Post subject: Reply with quote

Code:
echo "x11-drivers/xf86-input-evdev ~amd64" >> /etc/portage/package.keywords
worked for me.

Thanks everyone! :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum