LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-30-2011, 06:23 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
Make file Error.


I m installing network driver for my ethernet controller.
However whenever i run make install it gives me below error.

Code:
# make install
Makefile:23: *** missing separator.  Stop.
I did google and come to know that it has to do with wrong coding in Makefile but couldn't able to rectify the error.

Here is my Makefile.
Code:
# cat Makefile
#$FreeBSD$
.PATH:  ${.CURDIR}
KMOD    = if_igb
SRCS    = device_if.h bus_if.h pci_if.h opt_bdg.h
SRCS    += if_igb.c $(SHARED_SRCS)
SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
SHARED_SRCS += e1000_osdep.c e1000_82575.c e1000_vf.c e1000_mbx.c
CFLAGS  += -DSMP

# DEVICE_POLLING gives you non-interrupt handling
#CFLAGS  += -DDEVICE_POLLING

clean:
        rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef*
        rm -f *.o *.kld *.ko
        rm -f @ machine
        rm -f ${CLEANFILES}

man:
        mv /usr/share/man/man4/igb.4.gz /usr/share/man/man4/igbSAVE.4.gz
        cp igb.4 /usr/share/man/man4/

.include <bsd.kmod.mk>
[root@OFSMUP-VS-08 src]# make install
Makefile:23: *** missing separator.  Stop.
[root@OFSMUP-VS-08 src]# cat Makefile
#$FreeBSD$
.PATH:  ${.CURDIR}
KMOD    = if_igb
SRCS    = device_if.h bus_if.h pci_if.h opt_bdg.h
SRCS    += if_igb.c $(SHARED_SRCS)
SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
SHARED_SRCS += e1000_osdep.c e1000_82575.c e1000_vf.c e1000_mbx.c
CFLAGS  += -DSMP

# DEVICE_POLLING gives you non-interrupt handling
#CFLAGS  += -DDEVICE_POLLING

clean:
        rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef*
        rm -f *.o *.kld *.ko
        rm -f @ machine
        rm -f ${CLEANFILES}

man:
        mv /usr/share/man/man4/igb.4.gz /usr/share/man/man4/igbSAVE.4.gz
        cp igb.4 /usr/share/man/man4/

.include <bsd.kmod.mk>
Appreciate if exact cause of error identified.
 
Old 11-30-2011, 06:50 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Before breaking into the errors resulting from your makefile, what distribution are you using, and what type of network card do you have?

On a side note, even if your make file did work, running "make install" won't do anything, because it isn't configured for an "install" flag, unless it is weirdly located within bsd.kmod.mk.
 
  


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
make with make file yields error: /usr/bin/javac: cannot execute binary file bweaver Ubuntu 4 11-19-2010 03:58 PM
Make file error 127 ./config.status: No such file or directory przemekfilu Linux - Newbie 4 11-17-2010 03:06 AM
Make file system error rockmanneo Linux - Newbie 2 03-28-2007 01:50 PM
ERROR in make file sajjadc Linux - Kernel 1 04-30-2006 08:22 AM
file-4.10 make error alexchao Linux From Scratch 2 05-25-2005 09:24 AM


All times are GMT -5. The time now is 01:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration