LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2011, 02:44 PM   #1
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Rep: Reputation: Disabled
Make Terminal Command Error


Hello. I recently installed Pardus 2011 32bit Linux. I am trying to get my wireless to work but in order to install my wireless drivers i need to use the make command in the terminal which i come up with an error.

Error 1: Tar.gz File Make Command
Code:
kroth@Kroth-PC hybrid_wl $ make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-2.6.37.6'
  LD      /home/kroth/hybrid_wl/built-in.o
  CC [M]  /home/kroth/hybrid_wl/src/shared/linux_osl.o
  CC [M]  /home/kroth/hybrid_wl/src/wl/sys/wl_linux.o
/home/kroth/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_attach':
/home/kroth/hybrid_wl/src/wl/sys/wl_linux.c:485:3: error: implicit declaration of function 'init_MUTEX'

*** 1 errors, 0 warnings
make[2]: *** [/home/kroth/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/home/kroth/hybrid_wl] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.37.6'
make: *** [all] Error 2
Error 2: tar.bz2 File Make Command Error
Code:
kroth@Kroth-PC b43-fwcutter-013 $ make
     DEPEND   dep/md5.d
     DEPEND   dep/fwcutter.d
     CC       obj/fwcutter.o
fwcutter.c:33:20: fatal error: stdlib.h: No such file or directory
compilation terminated.
make: *** [obj/fwcutter.o] Error 1
I also posted these errors in the Linux Laptop and Netbook topic
http://www.linuxquestions.org/questi...-works-884433/

I want to know all of the packages I need to install in the package manager to get the Make command to work properly 100% of the time

I currently have the following programs installed:
gcc
kernel-module-headers
kernel-headers

I may have others installed but these are three I know of...

Did anyone else have this problem? I need to know all all the packages you know of needed to use the Make command.
 
Old 06-04-2011, 03:01 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Following are the packages that should be installed for "make" command to work:

ncurses
ncurses-devel
glibc-headers
glibc-devel
cpp
binutils
gcc
tcl
gtk2-devel
qt-devel
glib2-devel
libglade2-devel

Did you try running make after unzipping tar file? Did you check the MakeFile of the driver you are trying to install?

Last edited by T3RM1NVT0R; 06-04-2011 at 03:03 PM.
 
Old 06-04-2011, 03:20 PM   #3
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Yes i unzipped the tar file(s). I also have and read the MakeFile of the drivers.

I Installed all except the glibc-headers package since it wasn't found in the package manager.

Instead of getting an error message I got a warning message:
Quote:
kroth@Kroth-PC b43-fwcutter-013 $ make
CC obj/fwcutter.o
fwcutter.c: In function 'to_be16':
fwcutter.c:76:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
fwcutter.c: In function 'to_be32':
fwcutter.c:102:2: warning: dereferencing type-punned pointer will break strict-aliasing rules

*** 0 errors, 2 warnings
CC obj/md5.o
CC b43-fwcutter
I will check to see if i typed in the wrong package and i believe I am making progress.

I wonder if I have to use sudo first...

Does anyone know what I am doing wrong? Is there any more packages I need to install?
 
Old 06-04-2011, 03:24 PM   #4
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Nope! no progress made. I tried to use the Make command on the 1 most recent tar.gz file (after untaring ofcourse) and i got the same 1 error message.

Also sudo didn't work...
 
Old 06-04-2011, 03:25 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Yes you can give sudo make a try not sure if that will make any difference because if that would be the case it would have stopped way before.

Also did you run md5 check on the downloaded package just to make sure it is not corrupt.

You can run it using the following command: md5sum -c package_name
 
Old 06-04-2011, 03:44 PM   #6
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
sudo didn't make a difference you are right.

I also tried doing the md5 check in terminal. Here is what I got:
Quote:
kroth@Kroth-PC Downloads $ md5sum -c hybrid-portsrc_x86_32-v5_100_82_38.tar.gz
md5sum: hybrid-portsrc_x86_32-v5_100_82_38.tar.gz: no properly formatted MD5 checksum lines found
So i am guessing it isn't corrupt.
 
Old 06-04-2011, 04:22 PM   #7
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

I just looked at the error message that you have posted and it complains about missing header file. Do you have that header file in the extracted package.

Also have a look at this link: http://ubuntuforums.org/archive/inde...t-1003776.html
 
Old 06-04-2011, 04:31 PM   #8
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
I see. I do not know which header file you mean though so i cannot answer your question.

On the other thread I started said that i needed to patch the wireless tar.gz before it works and also trying that to see if the Make file wasn't compatible with my kernel. Just the patch refuses to patch...
 
Old 06-04-2011, 04:48 PM   #9
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
I need help with running a patch in the terminal. I followed the instructions on the Broadcom sites http://www.broadcom.com/docs/linux_sta/README.txt and http://www.broadcom.com/docs/linux_s...00_82_38.patch

And after installing the package to use the patch command (found on the second link) i get this:

Quote:
Quote:
kroth@Kroth-PC hybrid_wl $ ls
5_100_82_38.patch built-in.o lib Makefile src
kroth@Kroth-PC hybrid_wl $ patch -p0 5_100_82_38.patch
The bottom empty line is where the patch should be completing but nothing happens. Anyone know how to fix this?
 
Old 06-04-2011, 05:04 PM   #10
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Have a look at this link: http://linux.about.com/od/commands/l/blcmdl1_patch.htm

Also you can read patch command man page to get that info.
 
Old 06-05-2011, 08:12 AM   #11
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Can anyone help me find out whats wrong with my patch command? I followed all the instructions correctly and someone else I talked to got it to work but I have no idea what I did wrong. I already installed the packages to use the patch command. I need this to correctly use the make command to install my wireless driver.
 
Old 06-05-2011, 11:46 AM   #12
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
patch -p0 < 5_100_82_38.patch
 
Old 06-05-2011, 01:06 PM   #13
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks for the patch command that finally worked but it didnt correct the Make command at all...

Quote:
kroth@Kroth-PC hybrid_wl $ patch -p0 < 5_100_82_38.patch
kroth@Kroth-PC hybrid_wl $ ls
5_100_82_38.patch lib Makefile src
kroth@Kroth-PC hybrid_wl $ make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-2.6.37.6'
LD /home/kroth/hybrid_wl/built-in.o
CC [M] /home/kroth/hybrid_wl/src/wl/sys/wl_linux.o
/home/kroth/hybrid_wl/src/wl/sys/wl_linux.c: In function 'wl_attach':
/home/kroth/hybrid_wl/src/wl/sys/wl_linux.c:485:3: error: implicit declaration of function 'init_MUTEX'

*** 1 errors, 0 warnings
make[2]: *** [/home/kroth/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/home/kroth/hybrid_wl] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.37.6'
make: *** [all] Error 2
Anyone know how to fix this?
 
Old 06-05-2011, 04:36 PM   #14
Krothie
Member
 
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
I recieved a link from my other thread and the commands worked properly.

This thread is solved in a way. I think it was either Broadcom's laziness and/or me typing something in wrong.
 
  


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
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 05:13 PM
[SOLVED] Make linux terminal transparent with terminal command? yooy Linux - Newbie 1 05-11-2010 03:24 AM
getting make: *** [all] Error 2 during make command for libmad-0.15.1b DJockey Linux - Software 3 07-29-2009 05:32 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 11:43 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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