LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2004, 10:24 AM   #1
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Rep: Reputation: 21
"make" errors compiling new driver


Hi. I've recently installed Fedora Core 2 and am having problems with the touchpad on my laptop. I've downloaded the synaptec touchpad driver files, but can't get them working properly.

According to the install file, I just need to type "make" and the copy the resulting driver to the relevant location.

Unfortunately, when I run "make", I get this:

L -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 -DSINGL EDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -DFUNCPRO TO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DVERSION="\"0.13.3\"" synaptic s.c
In file included from synaptics.c:65:
xf86Xinput.h:36:27: extensions/XI.h: No such file or directory
xf86Xinput.h:37:32: extensions/XIproto.h: No such file or directory
In file included from xf86Xinput.h:38,
from synaptics.c:65:
XIstubs.h:97: error: syntax error before "xDeviceCtl"
In file included from synaptics.c:65:
xf86Xinput.h:99: error: syntax error before "xDeviceCtl"
synaptics.c:113: error: syntax error before "xDeviceCtl"
synaptics.c: In function `SynapticsPreInit':
synaptics.c:235: error: `XI_MOUSE' undeclared (first use in this function)
synaptics.c:235: error: (Each undeclared identifier is reported only once
synaptics.c:235: error: for each function it appears in.)
synaptics.c: At top level:
synaptics.c:1406: error: syntax error before "xDeviceCtl"
make: *** [synaptics.o] Error 1

I've installed all the development libraries, but being fairly new to linux, don't know where to go with this.
 
Old 06-21-2004, 10:39 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Does the INSTALL or README file mention any of the following?:

Is kernel-source installed?
Are the proper symlinks there? How to find out:
Code:
Mon Jun 21 11:37 AM fancy@uilleann ~ $ su -
Password:
Mon Jun 21 11:37 AM root@uilleann ~ # cd /usr/src
Mon Jun 21 11:37 AM root@uilleann /usr/src # ls -al
total 16
drwxr-xr-x   4 root root 4096 Jun 21 11:36 .
drwxr-xr-x  15 root root 4096 Apr 24 18:12 ..
lrwxrwxrwx   1 root root   24 Jun 21 11:36 linux -> linux-2.4.22-1.2115.nptl
lrwxrwxrwx   1 root root   24 Apr 24 18:23 linux-2.4 -> linux-2.4.22-1.2115.nptldrwxr-xr-x  16 root root 4096 Apr 24 18:23 linux-2.4.22-1.2115.nptl
drwxr-xr-x   7 root root 4096 Apr 24 18:20 redhat
I have a win<something> or some other kernel module driver I have to install.
# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7
I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy compiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.
 
Old 06-22-2004, 09:11 AM   #3
mikemrh9
Member
 
Registered: Nov 2003
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 21
Many thanks for your clear, educational help. I didn't have the symbolic link present, but everything else was there. Unfortunately, the problem remains exactly the same.

I noticed that the errors were referencing xf86Xinput. Apparently, Fedora Core 2 uses XOrg instead of xf86. I know this is for video drivers, but does it also get used for the touchpad? If so, will I need to edit the Makefile?
 
Old 06-22-2004, 09:36 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Most likely, or make some symbolic link to point to whatever xorg uses that the install file is looking for. I am waiting until it is released in the "stable" Gentoo as I am rather tied up tying up reeds for my pipes just now to learn another x rendering system. I just changed over from Red Hat 7.3 a few months ago. I avoided releases 8 and 9 because of following this bbs.

I usually stay a couple of releases back in any binary distributions for the stability and ease of use for the couple of oddball drivers that I need.

I would re-check the download site for their instructions for using it with xorg.

Last edited by fancypiper; 06-22-2004 at 09:39 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
wLan driver "make" errors theplop Linux - Software 1 11-05-2004 04:17 PM
Problem with "make" for rt8180" driver tdopko Linux - Wireless Networking 5 09-20-2004 01:17 AM
compiling tar.bz2... "./configure make make install" doesn't work dodo1983 Linux - Newbie 7 08-17-2004 12:34 AM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration