Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229919 - x11-drivers/synaptics fails to compile against >=x11-base/xorg-server-1.4.99.902
Summary: x11-drivers/synaptics fails to compile against >=x11-base/xorg-server-1.4.99.902
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 235657 236853 245611 (view as bug list)
Depends on:
Blocks: 277521
  Show dependency tree
 
Reported: 2008-06-28 17:08 UTC by Thomas Frenzel
Modified: 2009-08-13 13:41 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against x11-drivers/synaptics-0.14.6-r2 to compile against x11-base/xorg-server-1.4.99.902 (synaptics-fix-xf86_ansic.h.patch,57.91 KB, patch)
2008-06-28 17:10 UTC, Thomas Frenzel
Details | Diff
patch against x11-drivers/synaptics-0.14.6-r2 to compile against x11-base/xorg-server-1.4.99.902 (synaptics-fix-xf86_ansic.h.patch,3.84 KB, patch)
2008-06-28 17:15 UTC, Thomas Frenzel
Details | Diff
ebuild with "epatch" line (synaptics-0.14.6-r2.ebuild,2.66 KB, text/plain)
2008-07-10 07:15 UTC, Sergio Bevilacqua
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Frenzel 2008-06-28 17:08:05 UTC
xorg-server-1.4.99.902 does not provide xf86_ansic.h any more. Drivers dependig on that have to be modified to use standard system headers und symbols. So x11-drivers/synaptics-0.14.6-r2 will fail to build without patching.

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-base/xorg-server-1.4.99.902
2. emerge =x11-drivers/synaptics-0.14.6-r2
Comment 1 Thomas Frenzel 2008-06-28 17:10:35 UTC
Created attachment 158781 [details, diff]
patch against x11-drivers/synaptics-0.14.6-r2 to compile against x11-base/xorg-server-1.4.99.902
Comment 2 Thomas Frenzel 2008-06-28 17:15:06 UTC
Created attachment 158783 [details, diff]
patch against x11-drivers/synaptics-0.14.6-r2 to compile against x11-base/xorg-server-1.4.99.902

removed backup file from patch
Comment 3 Alexey Charkov 2008-07-01 12:10:31 UTC
This also helped me to compile against x11-base/xorg-server-1.4.99.905. Thank you, Thomas!
Comment 4 Sergio Bevilacqua 2008-07-10 07:15:06 UTC
Created attachment 160016 [details]
ebuild with "epatch" line
Comment 5 Hong Hao 2008-07-28 07:19:21 UTC
(In reply to comment #4)
> Created an attachment (id=160016) [edit]
> ebuild with "epatch" line
> 

We should check the version number of xorg-server? 
Comment 6 Matt 2008-08-23 12:21:36 UTC
this also works with 1.4.99.906, thanks ! :)

*bump*
Comment 7 emil karlson 2008-08-25 07:35:16 UTC
see #235657
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-25 17:47:31 UTC
*** Bug 235657 has been marked as a duplicate of this bug. ***
Comment 9 emil karlson 2008-08-25 18:11:41 UTC
(In reply to comment #8)
> *** Bug 235657 has been marked as a duplicate of this bug. ***
> 

Please do note that xf86-input-synaptics is totally different ebuild from synaptics and the bug #235657 was about incorrect xorg-server dependencies, not synaptics

said that just fix it please thanks

this bug is obsoleted by a newer upstream version x11-drivers/xf86-input-synaptics-0.15.0
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-09-06 11:12:11 UTC
*** Bug 236853 has been marked as a duplicate of this bug. ***
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2008-09-07 15:13:50 UTC
This should be fixed now:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.5.0.ebuild?r1=1.1&r2=1.2
Comment 12 Martin Mokrejš 2008-09-25 13:53:40 UTC
>>> Emerging (1 of 1) x11-drivers/synaptics-0.14.6_p20070706-r1
 * synaptics-0.14.6_p20070706.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                  [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.24.7/build
 * Found sources for kernel version:
 *     2.6.24.7
 * Checking kernel config for event device support ...                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking synaptics-0.14.6_p20070706.tar.bz2 to /var/tmp/portage/x11-drivers/synaptics-0.14.6_p20070706-r1/work
 * Applying synaptics-0.14.6_p20070706-fixeventgrab.patch ...                                                                                                                                            [ ok ]
 * Applying synaptics-0.14.6_p20070706-input_api.patch ...                                                                                                                                               [ ok ]
 * Applying synaptics-install-so-exec.patch ...                                                                                                                                                          [ ok ]
 * Applying synaptics-fix-xinerama.patch ...                                                                                                                                                             [ ok ]
 * Applying synaptics-0.14.6-configurable_polling_interval.patch ...                                                                                                                                     [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/synaptics-0.14.6_p20070706-r1/work/synaptics-0.14.6_p20070706 ...
rm -f synaptics.o
i686-pc-linux-gnu-gcc -O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe  -c -pedantic -Wall -Wpointer-arith -fno-merge-constants -fPIC -I. -I/usr/include/X11 -I/usr/include/X11/extensions `pkg-config xorg-server --cflags` -Dlinux -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP   -DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server -DXF86VIDMODE  -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -D__i386__ -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DVERSION="\"0.14.6\"" -DVERSION_ID="(0*10000+14*100+6)"  synaptics.c
In file included from /usr/include/xorg/misc.h:108,
                 from synaptics.c:70:
/usr/include/xorg/os.h:519:16: warning: anonymous variadic macros were introduced in C99
synaptics.c:73:24: error: xf86_ansic.h: No such file or directory
synaptics.c: In function ‘SetDeviceAndProtocol’:
synaptics.c:195: warning: implicit declaration of function ‘strcmp’
synaptics.c: In function ‘alloc_param_data’:
synaptics.c:239: warning: implicit declaration of function ‘xf86shmget’
synaptics.c:240: warning: implicit declaration of function ‘xf86shmctl’
synaptics.c:240: error: ‘XF86IPC_RMID’ undeclared (first use in this function)
synaptics.c:240: error: (Each undeclared identifier is reported only once
synaptics.c:240: error: for each function it appears in.)
synaptics.c:242: error: ‘XF86IPC_CREAT’ undeclared (first use in this function)
synaptics.c:246: warning: implicit declaration of function ‘xf86shmat’
synaptics.c: In function ‘free_param_data’:
synaptics.c:273: error: ‘XF86IPC_RMID’ undeclared (first use in this function)
synaptics.c: In function ‘synSetFloatOption’:
synaptics.c:287: warning: implicit declaration of function ‘xf86sscanf’
synaptics.c: In function ‘SynapticsPreInit’:
synaptics.c:494: warning: implicit declaration of function ‘xf86mknod’
synaptics.c:494: error: ‘XF86_S_IFIFO’ undeclared (first use in this function)
synaptics.c:495: error: ‘xf86errno’ undeclared (first use in this function)
synaptics.c:495: error: ‘xf86_EEXIST’ undeclared (first use in this function)
synaptics.c:504: warning: implicit declaration of function ‘xf86free’
synaptics.c: In function ‘move_distance’:
synaptics.c:698: warning: implicit declaration of function ‘xf86sqrt’
synaptics.c: In function ‘angle’:
synaptics.c:733: warning: implicit declaration of function ‘xf86atan2’
synaptics.c: In function ‘diffa’:
synaptics.c:740: warning: implicit declaration of function ‘xf86fmod’
synaptics.c: In function ‘SynapticsGetHwState’:
synaptics.c:848: warning: implicit declaration of function ‘xf86write’
synaptics.c: In function ‘ComputeDeltas’:
synaptics.c:1406: warning: implicit declaration of function ‘xf86modf’
make: *** [synaptics.o] Error 1
 * 
 * ERROR: x11-drivers/synaptics-0.14.6_p20070706-r1 failed.


It can be compiled against xorg-server-1.4.2 while not against 1.5.0.
The newer x11-drivers/xf86-input-synaptics-0.15.2-r2 can be compiled agaisnt xorg-serv-1.5.0 on ~x86.
Comment 13 emil karlson 2008-09-25 14:41:03 UTC
AFAIK this bug has been fixed

Are you claiming that xorg-server depends on x11-drivers/synaptics

cat /usr/portage/x11-base/xorg-server/xorg-server-1.5.0.ebuild
...
input_devices_synaptics? ( x11-drivers/xf86-input-synaptics )
...

(In reply to comment #12)
> >>> Emerging (1 of 1) x11-drivers/synaptics-0.14.6_p20070706-r1
>  * synaptics-0.14.6_p20070706.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...          
>                                                                                
>                                         [ ok ]
>  * checking ebuild checksums ;-) ...                                           
>                                                                                
>                                         [ ok ]
>  * checking auxfile checksums ;-) ...                                          
>                                                                                
>                                         [ ok ]
>  * checking miscfile checksums ;-) ...                                         
>                                                                                
>                                         [ ok ]
>  * Determining the location of the kernel source code
>  * Found kernel source directory:
>  *     /usr/src/linux
>  * Found kernel object directory:
>  *     /lib/modules/2.6.24.7/build
>  * Found sources for kernel version:
>  *     2.6.24.7
>  * Checking kernel config for event device support ...                         
>                                                                                
>                                          [ ok ]
> >>> Unpacking source...
> >>> Unpacking synaptics-0.14.6_p20070706.tar.bz2 to /var/tmp/portage/x11-drivers/synaptics-0.14.6_p20070706-r1/work
>  * Applying synaptics-0.14.6_p20070706-fixeventgrab.patch ...                  
>                                                                                
>                                          [ ok ]
>  * Applying synaptics-0.14.6_p20070706-input_api.patch ...                     
>                                                                                
>                                          [ ok ]
>  * Applying synaptics-install-so-exec.patch ...                                
>                                                                                
>                                          [ ok ]
>  * Applying synaptics-fix-xinerama.patch ...                                   
>                                                                                
>                                          [ ok ]
>  * Applying synaptics-0.14.6-configurable_polling_interval.patch ...           
>                                                                                
>                                          [ ok ]
> >>> Source unpacked.
> >>> Compiling source in /var/tmp/portage/x11-drivers/synaptics-0.14.6_p20070706-r1/work/synaptics-0.14.6_p20070706 ...
> rm -f synaptics.o
> i686-pc-linux-gnu-gcc -O2 -march=pentium4 -mmmx -msse -msse2
> -fomit-frame-pointer -pipe  -c -pedantic -Wall -Wpointer-arith
> -fno-merge-constants -fPIC -I. -I/usr/include/X11 -I/usr/include/X11/extensions
> `pkg-config xorg-server --cflags` -Dlinux -D_POSIX_C_SOURCE=199309L
> -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE 
> -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP  
> -DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT
> -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER 
> -DXFree86Server -DXF86VIDMODE  -DSMART_SCHEDULE -DBUILDDEBUG
> -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -D__i386__ -DFUNCPROTO=15 -DNARROWPROTO
> -DIN_MODULE -DXFree86Module -DVERSION="\"0.14.6\""
> -DVERSION_ID="(0*10000+14*100+6)"  synaptics.c
> In file included from /usr/include/xorg/misc.h:108,
>                  from synaptics.c:70:
> /usr/include/xorg/os.h:519:16: warning: anonymous variadic macros were
> introduced in C99
> synaptics.c:73:24: error: xf86_ansic.h: No such file or directory
> synaptics.c: In function ‘SetDeviceAndProtocol’:
> synaptics.c:195: warning: implicit declaration of function ‘strcmp’
> synaptics.c: In function ‘alloc_param_data’:
> synaptics.c:239: warning: implicit declaration of function ‘xf86shmget’
> synaptics.c:240: warning: implicit declaration of function ‘xf86shmctl’
> synaptics.c:240: error: ‘XF86IPC_RMID’ undeclared (first use in this
> function)
> synaptics.c:240: error: (Each undeclared identifier is reported only once
> synaptics.c:240: error: for each function it appears in.)
> synaptics.c:242: error: ‘XF86IPC_CREAT’ undeclared (first use in this
> function)
> synaptics.c:246: warning: implicit declaration of function ‘xf86shmat’
> synaptics.c: In function ‘free_param_data’:
> synaptics.c:273: error: ‘XF86IPC_RMID’ undeclared (first use in this
> function)
> synaptics.c: In function ‘synSetFloatOption’:
> synaptics.c:287: warning: implicit declaration of function ‘xf86sscanf’
> synaptics.c: In function ‘SynapticsPreInit’:
> synaptics.c:494: warning: implicit declaration of function ‘xf86mknod’
> synaptics.c:494: error: ‘XF86_S_IFIFO’ undeclared (first use in this
> function)
> synaptics.c:495: error: ‘xf86errno’ undeclared (first use in this function)
> synaptics.c:495: error: ‘xf86_EEXIST’ undeclared (first use in this
> function)
> synaptics.c:504: warning: implicit declaration of function ‘xf86free’
> synaptics.c: In function ‘move_distance’:
> synaptics.c:698: warning: implicit declaration of function ‘xf86sqrt’
> synaptics.c: In function ‘angle’:
> synaptics.c:733: warning: implicit declaration of function ‘xf86atan2’
> synaptics.c: In function ‘diffa’:
> synaptics.c:740: warning: implicit declaration of function ‘xf86fmod’
> synaptics.c: In function ‘SynapticsGetHwState’:
> synaptics.c:848: warning: implicit declaration of function ‘xf86write’
> synaptics.c: In function ‘ComputeDeltas’:
> synaptics.c:1406: warning: implicit declaration of function ‘xf86modf’
> make: *** [synaptics.o] Error 1
>  * 
>  * ERROR: x11-drivers/synaptics-0.14.6_p20070706-r1 failed.
> 
> 
> It can be compiled against xorg-server-1.4.2 while not against 1.5.0.
> The newer x11-drivers/xf86-input-synaptics-0.15.2-r2 can be compiled agaisnt
> xorg-serv-1.5.0 on ~x86.
> 

Comment 14 Martin Mokrejš 2008-09-25 14:53:58 UTC
(In reply to comment #13)
> AFAIK this bug has been fixed
> 
> Are you claiming that xorg-server depends on x11-drivers/synaptics
> 
> cat /usr/portage/x11-base/xorg-server/xorg-server-1.5.0.ebuild
> ...
> input_devices_synaptics? ( x11-drivers/xf86-input-synaptics )
> ...

No, it does not. Probably a change to the description lines of both package ebuilds clarifying that x11-drivers/synaptics is for xorg-server =< 1.4.99 and the other for 1.5.0 >= would be great.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-05 04:45:17 UTC
*** Bug 245611 has been marked as a duplicate of this bug. ***
Comment 16 Lubomir Christov 2009-01-31 17:00:43 UTC
Thanks Thomas,
also helped me to compile against x11-base/xorg-server-1.5.3-r1
Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2009-07-26 18:32:55 UTC
This driver will be removed from portage now that xf86-input-synatics is stable on all supported arches.

Thanks
Comment 18 Rémi Cardona (RETIRED) gentoo-dev 2009-08-13 13:41:49 UTC
Package is gone from portage.

Closing. Thanks