LinuxQuestions.org
Visit Jeremy's Blog.
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 10-01-2004, 03:31 PM   #1
oracleofmist
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Rep: Reputation: 0
can't compile/configure/make anything


i know it sounds like a bad case of no gcc or something to that effect but i have versions coming back from gcc --version and make --version. i'll just cut to the chase and show you.

root@localhost acx100-0.2.0pre8_plus_fixes_33 # ./Configure

WARNING: kernel build/output directory not found!
You probably need to install the kernel development/header file package! (whichmatches your currently running kernel)

Kernel version file: /lib/modules/2.6.8.1-3/build/include/linux/version.h
Kernel configuration file: /lib/modules/2.6.8.1-3/build/.config
Make damn sure these really match your currently running kernel!!

grep: /lib/modules/2.6.8.1-3/build/include/linux/version.h: No such file or directory
WARNING: Unable to find kernel configuration file (/lib/modules/2.6.8.1-3/build/.config) -> unable to perform sanity checks
Make sure your kernel has the required options enabled, see README

*** Potential problems found above, waiting 5 seconds to let you know about it.***

------------------------------------------

root@localhost acx100-0.2.0pre8_plus_fixes_33 # make
make -C src
make[1]: Entering directory `/root/acx100-0.2.0pre8_plus_fixes_33/src'
gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=4 -march=i586 -DACX_DEBUG=1 -DACX_IO_WIDTH=32 -D__KERNEL__ -DMODULE -DWLAN_HOSTIF=WLAN_PCI -I/lib/modules/2.6.8.1-3/build/include -I../include -c -o acx100.o acx100.c
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:12,
from acx100.c:70:
/usr/include/asm/processor.h:56: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:56: error: requested alignment is not a constant
In file included from /usr/include/linux/if_arp.h:26,
from acx100.c:76:
/usr/include/linux/netdevice.h:171: error: requested alignment is not a constant
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:52,
from /usr/include/linux/netdevice.h:469,
from /usr/include/linux/if_arp.h:26,
from acx100.c:76:
/usr/include/linux/irq.h:65: error: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:52,
from /usr/include/linux/netdevice.h:469,
from /usr/include/linux/if_arp.h:26,
from acx100.c:76:
/usr/include/asm/hardirq.h:16: error: requested alignment is not a constant
In file included from /usr/include/linux/netdevice.h:469,
from /usr/include/linux/if_arp.h:26,
from acx100.c:76:
/usr/include/linux/interrupt.h:135: error: requested alignment is not a constant
In file included from /usr/include/linux/if_arp.h:26,
from acx100.c:76:
/usr/include/linux/netdevice.h:525: error: requested alignment is not a constant
acx100.c:80:28: net/iw_handler.h: No such file or directory
In file included from acx100.c:102:
../include/acx100.h:1310: error: field `spy_data' has incomplete type
../include/acx100.h:1420: warning: `packed' attribute ignored
acx100.c: In function `acx_rx':
acx100.c:2106: warning: passing arg 1 of `__builtin_expect' makes integer from pointer without a cast
make[1]: *** [acx100.o] Error 1
make[1]: Leaving directory `/root/acx100-0.2.0pre8_plus_fixes_33/src'
make: *** [driver] Error 2


it seems to be some problem relating to the kernel. i have Yoper v2.1 with a 2.6.8 kernel. when i go to /usr/src all i see is the kernel rpm file and this is more than likely the problem. could someone help me out here. thanks
 
Old 10-01-2004, 03:34 PM   #2
oracleofmist
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Original Poster
Rep: Reputation: 0
i forgot to add this:

root@localhost acx100-0.2.0pre8_plus_fixes_33 # cd /usr/src
root@localhost src # ls
config pcmcia-cs-3.2.7-1.6.i686.rpm yoper_boot.bmp
kernel-2.6.8.1-3.i686.rpm terminal.tgz
makesys yoper
root@localhost src #
 
Old 10-03-2004, 06:57 PM   #3
oracleofmist
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Original Poster
Rep: Reputation: 0
maybe here is a simpler answer i can get: when i goto ./configure something it complains about not being able to read /lib/modules/<kernel version>/build.... when i goto the directory containing build and list its contents i have 'build' listed but it is blinking with a red background. i have tried cd'ing into it and opening it with a text editor... no avail on either...is it a permissions thing? keep in mind i am in as root. thanks
 
Old 10-03-2004, 09:46 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you need to install the kernel sources. There should be a package with the kernel sources for your distro.
 
Old 10-26-2004, 02:30 PM   #5
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
Quote:
Originally posted by quatsch
you need to install the kernel sources. There should be a package with the kernel sources for your distro.
I have this very same problem with SUSE 9.1. Do you know where I can get the kernel sources and what I do with them once I get them? It's running Kernel 2.6.4 something....

Thanks!

Jon
 
Old 10-27-2004, 03:01 PM   #6
ozonedman
LQ Newbie
 
Registered: Oct 2004
Distribution: suse 9.1
Posts: 2

Rep: Reputation: 0
Exact same problem with 9.1 for me also, and looking for answers in these forums. Unfortunately, some of these answers are NOT for beginners, the pros need to remember they were new at this once too.
 
Old 10-28-2004, 08:26 AM   #7
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
Quote:
Originally posted by ozonedman
Exact same problem with 9.1 for me also, and looking for answers in these forums. Unfortunately, some of these answers are NOT for beginners, the pros need to remember they were new at this once too.
I managed to solve this one by throwing SUSE in the garbage. I gave it an honest try - I spent 3 days trying to get it configured for my machine. In the end, their decision to not include any of the development tools in the personal edition was the deciding factor. I needed them to get my network card working and since they weren't there I wasn't able to do that.

I then tried a few more distros that all had some problem or other with my screen or dev tools again until I landed on Fedora Core 2. It comes on 4 CDs and has everything I needed. I installed it once, adjusted the screen refresh, made and installed my wireless network card drivers and was done. What I never accomplished in 3 days with SUSE took me 3 hours with FC2.

SUSE Pro might be OK, it's on multiple CDs and therefore (I assume) comes with the dev tools, but SUSE personal is just a broken, incomplete distro IMHO.

So that's my recommendation - ditch SUSE personal and try something else. I'm running Debian on my server, but it didn't fare well with my laptop. FC2 handled everything perfectly.

Jon
 
Old 10-28-2004, 09:55 AM   #8
ozonedman
LQ Newbie
 
Registered: Oct 2004
Distribution: suse 9.1
Posts: 2

Rep: Reputation: 0
Fortunately I had the pro version, after some (hours) experimenting, I found how to install the development tools in yast. Once the source and everything was installed, compiling was easy. Well, kinda. I tried 4 different modems (winmodems) because I don't have any older PCI ones laying around. Mostly the compiling went bad, even after revising the makefile. Finally found a recent driver on a manuf website that DID compile. (a netodragon, of all things) and got things working.
I actually don't mind the command line, but I need to go back 12 or 15 years to remember my DOS training. Then it becomes more comfortable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 09:11 AM
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
Installed using ./configure, make, make install, how to remove? EnVoy Mandriva 4 03-10-2004 07:05 PM
./configure , make and make install does not work mobassir Linux - Software 7 07-30-2003 09:20 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM

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

All times are GMT -5. The time now is 05:44 AM.

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