LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Make Terminal Command Error (https://www.linuxquestions.org/questions/programming-9/make-terminal-command-error-884539/)

Krothie 06-04-2011 02:44 PM

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.

T3RM1NVT0R 06-04-2011 03:01 PM

@ 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?

Krothie 06-04-2011 03:20 PM

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?

Krothie 06-04-2011 03:24 PM

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...

T3RM1NVT0R 06-04-2011 03:25 PM

@ 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

Krothie 06-04-2011 03:44 PM

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.

T3RM1NVT0R 06-04-2011 04:22 PM

@ 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

Krothie 06-04-2011 04:31 PM

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...

Krothie 06-04-2011 04:48 PM

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?

T3RM1NVT0R 06-04-2011 05:04 PM

@ 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.

Krothie 06-05-2011 08:12 AM

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.

gnashley 06-05-2011 11:46 AM

patch -p0 < 5_100_82_38.patch

Krothie 06-05-2011 01:06 PM

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?

Krothie 06-05-2011 04:36 PM

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.


All times are GMT -5. The time now is 11:37 PM.