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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-09-2009, 06:13 PM
|
#1
|
LQ Newbie
Registered: Dec 2008
Posts: 25
Rep:
|
"Make" command
Hi,,,
i have installed kubuntu intrepid live usb persistence in usb hdd,
when i try to install program like madwifi and aircrack, i got and eror when typing "make"...
How do i fix it......
|
|
|
01-09-2009, 08:22 PM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
Quote:
Originally Posted by hallve_revera
Hi,,,
i have installed kubuntu intrepid live usb persistence in usb hdd,
when i try to install program like madwifi and aircrack, i got and eror when typing "make"...
How do i fix it......
|
https://help.ubuntu.com/community/CompilingSoftware read hear
|
|
|
01-09-2009, 09:06 PM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Madwifi is in the package manager / repo :
linux-restricted-drivers
Or use : sudo apt-get install linux-restricted-drivers
Aircrack : sudo apt-get install aircrack-ng
If you some day find an app not amongst the 28000
packages in the package manager, and cannot compile,
please tell, which error you get.
....
|
|
|
01-09-2009, 09:31 PM
|
#4
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
Quote:
Originally Posted by hallve_revera
...i got and eror when typing "make"...
How do i fix it......
|
Any PARTICULAR make error you're trying to diagnose?! There are only about 15 gadzillion ones you could potentially stumble into. Posting the output of your make command would certainly help...
|
|
|
01-09-2009, 09:33 PM
|
#5
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
Quote:
Originally Posted by knudfl
Madwifi is in the package manager / repo :
linux-restricted-drivers
Or use : sudo apt-get install linux-restricted-drivers
Aircrack : sudo apt-get install aircrack-ng
If you some day find an app not amongst the 28000
packages in the package manager, and cannot compile,
please tell, which error you get.
....
|
some times you need to compile. apt-get me a beer. lol
|
|
|
01-10-2009, 06:20 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Drakeo # 5
Of course, I do it all the time, but using as many packages
as possible ( if they work ), is a good fundament, I believe.
|
|
|
01-11-2009, 09:53 PM
|
#7
|
LQ Newbie
Registered: Dec 2008
Posts: 25
Original Poster
Rep:
|
hii...
this is the error thai i got when installing aircrack-ng
----------------------------------------------------------------------------------------------------------------------------make -C src all
make[1]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src'
make -C osdep
make[2]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
cc1: warnings being treated as errors
linux.c: In function ‘is_ndiswrapper’:
linux.c:164: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_rate’:
linux.c:355: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_channel’:
linux.c:729: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:751: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:767: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_freq’:
linux.c:820: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘set_monitor’:
linux.c:941: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:961: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:980: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:997: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1035: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1043: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1051: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘do_linux_open’:
linux.c:1425: error: ignoring return value of ‘system’, declared with attributewarn_unused_result
linux.c:1474: error: ignoring return value of ‘system’, declared with attributewarn_unused_result
linux.c:1495: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1521: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1539: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1553: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1598: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1627: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src'
make: *** [all] Error 2make -C src all
make[1]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src'
make -C osdep make -C src all
make[1]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src'
make -C osdep
make[2]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
cc1: warnings being treated as errors
linux.c: In function ‘is_ndiswrapper’:
linux.c:164: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_rate’:
linux.c:355: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_channel’:
linux.c:729: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:751: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:767: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_freq’:
linux.c:820: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘set_monitor’:
linux.c:941: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:961: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:980: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:997: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1035: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1043: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1051: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘do_linux_open’:
linux.c:1425: error: ignoring return value of ‘system’, declared with attributewarn_unused_result
linux.c:1474: error: ignoring return value of ‘system’, declared with attributewarn_unused_result
linux.c:1495: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1521: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1539: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1553: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1598: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1627: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src'
make: *** [all] Error 2
make[2]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
cc1: warnings being treated as errors
linux.c: In function ‘is_ndiswrapper’:
linux.c:164: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_rate’:
linux.c:355: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_channel’:
linux.c:729: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:751: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:767: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘linux_set_freq’:
linux.c:820: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘set_monitor’:
linux.c:941: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:961: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:980: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:997: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1035: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1043: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1051: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c: In function ‘do_linux_open’:
linux.c:1425: error: ignoring return value of ‘system’, declared with attributewarn_unused_result
linux.c:1474: error: ignoring return value of ‘system’, declared with attributewarn_unused_result
linux.c:1495: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1521: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
linux.c:1539: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1553: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1598: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux.c:1627: error: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/ubuntu/Program/aircrack-ng-1.0-rc1/src'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------------------------
|
|
|
01-12-2009, 01:07 AM
|
#8
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
What you have here is, gcc (the compiler) is being told to "treat warnings as errors". You can see this in your make output where gcc is called with the "-Werror" flag. Evidently the code you are trying to compile has lots of warnings. The ones I see in your output are (usually!) harmless though (like ignoring the return value from a function, etc.) While it may be harmless, technically it's a bit of sloppy programming. But since you didn't write the code you are trying to compile, you're stuck with it. Past versions of compilers/configures weren't so strict about this warning stuff, so many (most?) programmers didn't treat warnings in their code very seriously. That's what you appear to be running into.
So to "fix" it (without rewriting the code to not have warnings), you turn off this "treat warnings as errors" stuff. One way to do that is to hack into your makefile(s) and remove the "-Werror" references. There is probably a better way to do this during the configure step (you most likely ran configure prior to running make). Is there an option to tell configure to leave out the -Werror it is putting into your makefile(s)? I'm not 100% sure, but you might try calling configure with the --disable-fail flag and then rerun your make. In case there were other points of slopiness in this code you're trying to compile, your should try running "make clean" before reconfiguring. The developers may not have included a "clean" option for make however. You can try to brute-force your way through a "make clean" type of operation with something like this "rm -r *.o" (that's the letter "oh", not the digit "zero"). Only run this rm command from the root directory of the source tree you are trying to compile!
e.g.,
Code:
make clean
rm -r *.o
./configure --disable-fail
make
|
|
|
01-12-2009, 02:45 AM
|
#9
|
LQ Newbie
Registered: Dec 2008
Posts: 25
Original Poster
Rep:
|
"the root directory of the source tree you are trying to compile!" ,, is that mean where did i put my aircrack-ng folders
like this "ubuntu@ubuntu:~/Program/aircrack-ng-1.0-rc1$" ??????
|
|
|
01-12-2009, 03:20 AM
|
#10
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
It this what you are referring to?
Code:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
If you are building a source package from your own distro, /usr/ is probably best. That's what the binary package would use.
If you are building from downloaded source, then /usr/local/ may be better. The distro is guaranteed not to mess with files under /usr/local/. You may need to add '/usr/local/bin' to your PATH variable in ~/.bashrc.
|
|
|
01-12-2009, 02:11 PM
|
#11
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
Quote:
Originally Posted by hallve_revera
"the root directory of the source tree you are trying to compile!"
|
I am talking about the directory where you untar'ed the source files. Where the source code resides that you are trying to compile. Where you run the "make" command from. For example, I always un-tar my source packages under /usr/local/src/<package_name> but you could have untar'ed yours anywhere.
So for example, say I downloaded the source code to /tmp/whatever.tar.gz
Code:
cd /usr/local/src
tar zxvf /tmp/whatever.tar.gz
This should have created a new subdirectory under /usr/local/src with "whatever" in it's name, along with some version number in the name. For this example, we'll use version "1.12.3" for illustration.
Code:
cd /usr/local/src/whatever-1.12.3
./configure --disable-fail
make
|
|
|
01-14-2009, 02:27 AM
|
#12
|
LQ Newbie
Registered: Dec 2008
Posts: 25
Original Poster
Rep:
|
what about this error ....
____________________________________________________________________________________________________ ________________________Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.27-7-generic/build SUBDIRS=/home/ubuntu/New Folder/madwifi-hal-0.10.5.6-r3879-20081204
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
make[1]: *** No rule to make target `Folder/madwifi-hal-0.10.5.6-r3879-20081204'.
Stop.
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
____________________________________________________________________________________________________ ________________________
this is the error from the instalation of madwifi snapshot for ar5007eg
|
|
|
All times are GMT -5. The time now is 03:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|