Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Pretty much everytime I try to compile from source I get pretty much the same error
for example the tablet driver I'd like to install...
Code:
configure:1567: checking for a BSD-compatible install
configure:1622: result: /usr/bin/install -c
configure:1633: checking whether build environment is sane
configure:1676: result: yes
configure:1741: checking for gawk
configure:1757: found /bin/gawk
configure:1767: result: gawk
configure:1777: checking whether make sets $(MAKE)
configure:1801: result: no
configure:1965: checking whether to enable maintainer-specific portions of Makefiles
configure:1974: result: no
configure:2035: checking for gcc
configure:2064: result: no
configure:2115: checking for cc
configure:2144: result: no
configure:2157: checking for cc
configure:2203: result: no
configure:2256: checking for cl
configure:2285: result: no
configure:2299: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
It appears something is wrong with make and I'm missing gcc, cc and cl....correct? so how do I fix it?
Install gcc. There should be a binary package on your install media or downloadable from a software repository for your distro. As you haven't given any clue as to what distro you're using, I can't help any more than that,
It is an easy thing to do, you just don't have the right tools installed. I'm guessing you did what I did the very first time I installed linux (many years ago) and forgot to install the development packages. Go back to yast and install the development packages.
okay I install make and I'm still getting errors, here's what happened in my last shell session.
Code:
linux:/usr/src/linuxwacom-0.7.2 # make
make all-recursive
make[1]: Entering directory `/usr/src/linuxwacom-0.7.2'
Making all in src
make[2]: Entering directory `/usr/src/linuxwacom-0.7.2/src'
Making all in .
make[3]: Entering directory `/usr/src/linuxwacom-0.7.2/src'
source='wacomcfg.c' object='wacomcfg.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. -
Wall -pedantic -g -O2 -c -o wacomcfg.lo wacomcfg.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pedantic -g -O2 -c wacomcfg.c -fPIC -D
PIC -o .libs/wacomcfg.o
In file included from wacomcfg.c:30:
wacomcfg.h:26:22: X11/Xlib.h: No such file or directory
wacomcfg.h:27:35: X11/extensions/XInput.h: No such file or directory
wacomcfg.h:28:36: X11/extensions/XIproto.h: No such file or directory
In file included from wacomcfg.c:30:
wacomcfg.h:57: error: parse error before "Display"
wacomcfg.h:57: warning: no semicolon at end of struct or union
wacomcfg.h:59: error: parse error before '*' token
wacomcfg.h:59: warning: type defaults to `int' in declaration of `pDevs'
wacomcfg.h:59: error: ISO C forbids data definition with no type or storage clas
s
wacomcfg.h:61: error: parse error before '}' token
wacomcfg.h:61: warning: ISO C does not allow extra `;' outside of a function
wacomcfg.h:66: error: parse error before "XDevice"
wacomcfg.h:66: warning: no semicolon at end of struct or union
wacomcfg.h:67: warning: ISO C does not allow extra `;' outside of a function
wacomcfg.h:74: error: parse error before '*' token
wacomcfg.c: In function `CfgError':
wacomcfg.c:59: error: dereferencing pointer to incomplete type
wacomcfg.c:60: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `CfgGetDevs':
wacomcfg.c:70: error: dereferencing pointer to incomplete type
wacomcfg.c:70: warning: implicit declaration of function `XListInputDevices'
wacomcfg.c:70: error: dereferencing pointer to incomplete type
wacomcfg.c:71: error: dereferencing pointer to incomplete type
wacomcfg.c:73: error: dereferencing pointer to incomplete type
wacomcfg.c: At top level:
wacomcfg.c:83: error: parse error before '*' token
wacomcfg.c: In function `WacomConfigInit':
wacomcfg.c:89: warning: implicit declaration of function `XQueryExtension'
wacomcfg.c:89: error: `pDisplay' undeclared (first use in this function)
wacomcfg.c:89: error: (Each undeclared identifier is reported only once
wacomcfg.c:89: error: for each function it appears in.)
wacomcfg.c:89: error: `INAME' undeclared (first use in this function)
wacomcfg.c:91: error: `pfnErrorHandler' undeclared (first use in this function)
wacomcfg.c:97: error: invalid application of `sizeof' to an incomplete type
wacomcfg.c:105: error: dereferencing pointer to incomplete type
wacomcfg.c:105: error: dereferencing pointer to incomplete type
wacomcfg.c:105: error: dereferencing pointer to incomplete type
wacomcfg.c:105: error: dereferencing pointer to incomplete type
wacomcfg.c:105: error: dereferencing pointer to incomplete type
wacomcfg.c:105: error: dereferencing pointer to incomplete type
wacomcfg.c:106: error: dereferencing pointer to incomplete type
wacomcfg.c:107: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigListDevices':
wacomcfg.c:123: error: `XDeviceInfo' undeclared (first use in this function)
wacomcfg.c:123: error: `info' undeclared (first use in this function)
wacomcfg.c:124: warning: ISO C89 forbids mixed declarations and code
wacomcfg.c:130: error: dereferencing pointer to incomplete type
wacomcfg.c:135: error: dereferencing pointer to incomplete type
wacomcfg.c:137: error: dereferencing pointer to incomplete type
wacomcfg.c:138: error: `IsXExtensionDevice' undeclared (first use in this functi
on)
wacomcfg.c:154: error: dereferencing pointer to incomplete type
wacomcfg.c:156: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigOpenDevice':
wacomcfg.c:200: error: `XDevice' undeclared (first use in this function)
wacomcfg.c:200: error: `pDev' undeclared (first use in this function)
wacomcfg.c:201: error: `XDeviceInfo' undeclared (first use in this function)
wacomcfg.c:201: error: `pDevInfo' undeclared (first use in this function)
wacomcfg.c:201: error: `info' undeclared (first use in this function)
wacomcfg.c:201: warning: left-hand operand of comma expression has no effect
wacomcfg.c:207: error: dereferencing pointer to incomplete type
wacomcfg.c:211: error: dereferencing pointer to incomplete type
wacomcfg.c:213: error: dereferencing pointer to incomplete type
wacomcfg.c:226: warning: implicit declaration of function `XOpenDevice'
wacomcfg.c:226: error: dereferencing pointer to incomplete type
wacomcfg.c:235: error: invalid application of `sizeof' to an incomplete type
wacomcfg.c:236: error: dereferencing pointer to incomplete type
wacomcfg.c:236: error: dereferencing pointer to incomplete type
wacomcfg.c:236: error: dereferencing pointer to incomplete type
wacomcfg.c:236: error: dereferencing pointer to incomplete type
wacomcfg.c:236: error: dereferencing pointer to incomplete type
wacomcfg.c:236: error: dereferencing pointer to incomplete type
wacomcfg.c:237: error: dereferencing pointer to incomplete type
wacomcfg.c:238: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigCloseDevice':
wacomcfg.c:247: warning: implicit declaration of function `XCloseDevice'
wacomcfg.c:247: error: dereferencing pointer to incomplete type
wacomcfg.c:247: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigSetRawParam':
wacomcfg.c:256: error: `XDeviceResolutionControl' undeclared (first use in this
function)
wacomcfg.c:256: error: parse error before "c"
wacomcfg.c:257: error: `cp' undeclared (first use in this function)
wacomcfg.c:257: error: `c' undeclared (first use in this function)
wacomcfg.c:258: error: `XDeviceControl' undeclared (first use in this function)
wacomcfg.c:258: error: `dc' undeclared (first use in this function)
wacomcfg.c:258: error: parse error before ')' token
wacomcfg.c:264: error: `DEVICE_RESOLUTION' undeclared (first use in this functio n)
wacomcfg.c:272: warning: implicit declaration of function `XChangeDeviceControl'
wacomcfg.c:273: error: dereferencing pointer to incomplete type
wacomcfg.c:274: error: dereferencing pointer to incomplete type
wacomcfg.c:279: error: `BadValue' undeclared (first use in this function)
wacomcfg.c:280: error: dereferencing pointer to incomplete type
wacomcfg.c:285: warning: implicit declaration of function `XSetDeviceMode'
wacomcfg.c:285: error: dereferencing pointer to incomplete type
wacomcfg.c:285: error: dereferencing pointer to incomplete type
wacomcfg.c: In function `WacomConfigOpenDevice':
wacomcfg.c:201: warning: statement with no effect
make[3]: *** [wacomcfg.lo] Error 1
make[3]: Leaving directory `/usr/src/linuxwacom-0.7.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/linuxwacom-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/linuxwacom-0.7.2'
make: *** [all] Error 2
I got a feeling I'm still missing some tools. What should I have to make this work right?
Altough Komakino's suggestion should have taken care of this, here is just a practical tip: on a new SuSE I always tell Yast to install gcc, gcc+ (search for gcc-gcc+), make and automake. Yast will then pick up the dependencies (e.g. devel libraries) and install those too.
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282
Rep:
From the looks of it, your problem stems from the lines that say
Code:
wacomcfg.h:26:22: X11/Xlib.h: No such file or directory
wacomcfg.h:27:35: X11/extensions/XInput.h: No such file or directory
wacomcfg.h:28:36: X11/extensions/XIproto.h: No such file or directory
They mean that one of the source code files tried to include another source code (header) file (well, three) and couldn't find them. The error messages after that are likely a result of these files not being found and read.
At a guess, you need to install some X development libraries. Hopefully the application developer noted the dependencies that this app has; check that you have all the relevant parts installed. Usually, dependencies are checked in the configure stage, which makes wonder what's happened here...
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282
Rep:
After looking around a bit, it seems the xorg-devel package is the one you need (presuming that you're running X.org as opposed to XFree86). Check that you have this installed and up-to-date - and if you do, let me know and we'll see what else it could be...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.