LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-20-2006, 10:07 PM   #1
Fabiogump
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
Compiling from source, what am I missing?


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?
 
Old 01-20-2006, 10:10 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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,
 
Old 01-21-2006, 05:01 AM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Yes, you're missing one vital tool needed to compile: a compiler
 
Old 01-21-2006, 04:44 PM   #4
Fabiogump
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
okay after getting a bit of a headache trying to get suse Yast to install something correctly, I got it to compile a makefile.

now the next problem...

Code:
linux:/usr/src/linuxwacom-0.7.2 # make
bash: make: command not found

you would figure this would be an easy thing to do?
 
Old 01-21-2006, 04:59 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 01-22-2006, 09:53 PM   #6
Fabiogump
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 01-23-2006, 06:08 AM   #7
bibh_lnxq
Member
 
Registered: Nov 2004
Location: Leiden, Netherlands
Distribution: SuSE; Fedora;Slackware
Posts: 58

Rep: Reputation: 15
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.
 
Old 01-23-2006, 07:20 AM   #8
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
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...
 
Old 01-23-2006, 08:39 AM   #9
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
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...
 
  


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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
Any debian tool to help download missing dependencies when compiling from source? Akhran Debian 2 08-18-2005 04:26 PM
missing source edgefield Linux - Newbie 3 08-17-2004 02:56 PM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM
/usr/source/ missing source tree swingert Linux - Newbie 2 07-19-2003 08:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 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