You are not logged in.

#1 2005-08-26 09:32:37

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

xorg 6.8.99-16 and evdev driver

I am wondering if I could tap the brains of the knowledgeable and ask how I would go about compiling xorg-6.8.99.16. 

I have a logitech mxduo 3100 set which includes an mx1000 mouse and mx3100 keyboard.  For these to work really really well, I need the evdev driver.  Well not really, but I want them badly.

From my 'googling' regarding the evdev driver, the patches currently in the xorg abs are from gentoo.  These are not the best.  Xorg devel's have now incorporated an evdev driver- apparently in the next xorg release. I am not sure when that is.


the evdev driver is now in the snapshot versions

http://xorg.freedesktop.org/snapshots/

I have tried to compile this using an adapted xorg-6.8.2 pkgbuild, but to no avail.  Any ideas?

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#2 2005-08-27 05:06:33

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: xorg 6.8.99-16 and evdev driver

No need to worry.  Xorg has some huge changes in the wind.  I am happy to wait for these to occur.  From the xorg website

Below are the major release checkpoints followed by a list of tasks that need to be completed for the next checkpoint. For checkpoints that have been completed, the date that we completed them has been filled in. For future checkpoints, estimates are given (e.g., XX Sep 2005). As the set of tasks are completed for each checkpoint, one of the release managers will fill in the actual date.

Note that the sooner we complete the tasks, the sooner we get the release out.

    *

      4 Jul 2005: Feature freeze for the monolithic source tree
    *

      1 Aug 2005: RC0 (Release Candidate 0)
    *

      XX Aug 2005: RC1 (Full release candidate)
    *

      XX Sep 2005: RC2 (Code Freeze)
    *

      XX Sep 2005: RCfinal
    *

      XX Oct 2005: X11R6.9/X11R7 Release


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#3 2005-08-27 12:15:43

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: xorg 6.8.99-16 and evdev driver

I'm running a snapshot of the upcoming xorg 6.9 and have had no issues so far. As a matter of fact, it resolves some issues I have had with 6.8.2 and feels somewhat snappier. I used the PKGBUILD here, which is just a remake of the official xorg 6.8.2 PKGBUILD. Good luck.

Offline

#4 2005-08-27 23:28:23

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: xorg 6.8.99-16 and evdev driver

G'Day nightfrost,

I will give it a go now.  Thankyou.  Let you know how it goes  big_smile

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#5 2005-08-27 23:51:09

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: xorg 6.8.99-16 and evdev driver

I get this error every time whether 6.8.2 or 6.8.X.X

gcc -m32 -c -march=i686 -O2 -pipe -Wl,-O1 -fno-strength-reduce -fno-strict-aliasing  -ansi -Wall -Wpointer-arith -Wstrict-prototypes                      -Wmissing-prototypes -Wmissing-declarations                         -Wredundant-decls -Wnested-externs -Wundef    -I../.. -I../../exports/include   -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                                  -D_GNU_SOURCE       -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API    -DMALLOC_0_RETURNS_NULL      -fPIC XF86DGA2.c
XF86DGA2.c: In function 'DGAMapPhysical':
XF86DGA2.c:935: warning: cast from pointer to integer of different size
gcc: -O1: linker input file unused because linking not done
rm -f libXxf86dga.so.1.0~
+ cd .
+ gcc -m32 -o ./libXxf86dga.so.1.0~ -shared -Wl,-soname,libXxf86dga.so.1 XF86DGA.o XF86DGA2.o -L../../exports/lib -lXext -lX11 -lc
/usr/lib/libc_nonshared.a(atexit.oS)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first defined here
collect2: ld returned 1 exit status
make[4]: *** [libXxf86dga.so.1.0] Error 1
make[4]: Leaving directory `/var/abs/local/xorg-6.9.R0/src/xc/lib/Xxf86dga'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/abs/local/xorg-6.9.R0/src/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/abs/local/xorg-6.9.R0/src/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/abs/local/xorg-6.9.R0/src/xc'
make: *** [World] Error 2
==> ERROR: Build Failed.  Aborting...

I have a fresh install of arch, so I am not sure what I am missing.  If you have any thoughts, i would be happy to hear them, but troubleshooting Xorg is not an easy task.

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#6 2005-08-28 07:31:53

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: xorg 6.8.99-16 and evdev driver

I'm not very good at this sort of trouble shooting either, but perhaps there's something in your /etc/makepkg.conf that's not alright. Post it here, maybe we can figure something out together.

Offline

#7 2005-08-28 08:54:58

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: xorg 6.8.99-16 and evdev driver

Excellent!!

I wanted to tweak this to make it for 'P4' and smp.  I can not remember what I did when I had Gentoo installed.


Makepkg.conf

#
# /etc/makepkg.conf
#

# The FTP/HTTP download utility that makepkg should use to acquire sources
export FTPAGENT="/usr/bin/wget --continue --passive-ftp --tries=3 --waitretry=3"
#export FTPAGENT="/usr/bin/snarf"
#export FTPAGENT="/usr/bin/lftpget -c"

export CARCH="i686"
export CHOST="i686-pc-linux-gnu"

# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
# will use the P6 instruction set and only run on P6+ systems)
export CFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
export CXXFLAGS="-march=i686 -O2 -pipe -Wl,-O1"
# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon optimized (but binaries
# will run on any x86 system)
#export CFLAGS="-mcpu=i686 -O2 -pipe"
#export CXXFLAGS="-mcpu=i686 -O2 -pipe"

# SMP Systems
#export MAKEFLAGS="-j 2"

# Enable fakeroot for building packages as a non-root user
export USE_FAKEROOT="y"

# Enable colorized output messages
export USE_COLOR="y"

# Specify a fixed directory where all packages will be placed
#export PKGDEST=/home/packages

# If you want your name to show up in the packages you build, set this.
#export PACKAGER="John Doe <john@doe.com>"

Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#8 2005-08-28 09:15:40

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: xorg 6.8.99-16 and evdev driver

Hmm... it looks pretty alright to me. This is probably not the issue but since you're already at it now, you could tweak stuff a bit smile

Firstly, you should take care of this I guess

# Specify a fixed directory where all packages will be placed
#export PKGDEST=/home/packages 

ucomment it and create the dir. I have mine set to /var/abs/local/pkg-pentium-m

for reference, here's my compile flags:

export CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
export LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -s"

What makes most of the difference here I think is -march=$your_arch for certain applications. e.g. I always recompile xorg with these optimizations (well I'm using a CVS-snapshot now, but I'd do it even if it would be in the official repos).

But that doesn't help you with your xorg compilation... You're not using gcc 4.X are you?

Offline

#9 2005-08-28 09:43:18

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: xorg 6.8.99-16 and evdev driver

Hey thankyou nightfrost  big_smile

That is exactly what I was after.  I am using  gcc 4.X!  Is that the problem?  One of the PKGBUILDs I found for xorg-6.8.99-16 had it as a dependency.  I cant find it now, but I am sure that this was the case!


Do I just uninstall it?

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#10 2005-08-28 10:29:52

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: xorg 6.8.99-16 and evdev driver

I'm not completely sure it's that, but I know there are still some issues with GCC4 so there's a fair chance that's the culprit. (Maybe someone else can confirm?). I guess you could just downgrade to the gcc in the official arch repo (3.4.3). That is, if you don't have a lot of packages compiled with gcc4 which might be a problem. Tell me how it goes.

Offline

#11 2005-08-28 12:38:51

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: xorg 6.8.99-16 and evdev driver

Xorg in testing has a patch for gcc4, which makes it compile fine on gcc 4.0.2. Actually, the gcc 4.0.2 snapshot I committed to testing last week was because of Xorg getting optimized in a bad state with the official 4.0.1 release.

Offline

#12 2005-08-28 21:57:10

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: xorg 6.8.99-16 and evdev driver

Is that the xorg 6.8.2-5 with evdev patch?  What I am after is the xorg with the evdev driver.  The reason to test out the new driver is to learn the new xorg.conf entries, mouse and keyboard setups.

Apparently, with a tweak of the udev rules, you can create a simple xorg entry like
 

Section "InputDevice"
    Identifier    "Logitech MX1000"
    Driver        "evdev"
    Option        "Device" "/dev/input/mx1000"
EndSection

This is a major step for linux in my view and I am keen to get on the bandwagon.


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

Board footer

Powered by FluxBB