Ir ao conteúdo

Comando "make"


ReyalsX

Posts recomendados

Postado

aí pessoal, estou tentando instalar meu modem NetoDragon do Mandrake 9.1, já baixei o driver (slmdm-2.7.9), mas eu preciso do comando "make" para executar o "Makefile". Como posso instala-lo?

valeu!

Postado

o comando make é padrão nos linuxx, dê uma olhada na versão do modulo  que você pegou se ele suporta a versão do seu kernel, isso é importante

Postado

Aparece o seguinte erro:

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

[root@localhost slmdm-2.7.9_debug]# make

gcc -Wall -O3 -fomit-frame-pointer -D -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include  -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -DMODEM_DEBUG=1 -o sllog.o -c sllog.c

make: gcc: Comando não encontrado

make: ** [sllog.o] Erro 127

[root@localhost slmdm-2.7.9_debug]#

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

Ainda vou testar a dica do douglasgm

Postado

O suporte a programaçao é o Kernel Source 2.4.21? Eu o instalei e depois disso passou a dar isto:

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

rafael@localhost slmdm-2.7.9_debug]$ make

gcc -Wall -O3 -fomit-frame-pointer -D -DMODULE -DEXPORT_SYMTAB -I. -I/

usr/src/linux/include  -DMODVERSIONS --include /usr/src/linux/include/linux/modv

ersions.h -DMODEM_DEBUG=1 -o sllog.o -c sllog.c

<command line>:1075400387:1: /usr/src/linux/include/linux/modversions.h: No such

file or directory

In file included from /usr/include/linux/prefetch.h:13,

                from /usr/include/linux/list.h:6,

                from /usr/include/linux/module.h:11,

                from sllog.c:47:

/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (no

t in a function)

/usr/include/asm/processor.h:55: requested alignment is not a constant

In file included from /usr/include/linux/module.h:297,

                from sllog.c:47:

/usr/include/linux/version.h:2:2: #error "======================================

================="

/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l

inux,asm}/ header"

/usr/include/linux/version.h:4:2: #error "files directly for the compilation of

kernel modules."

/usr/include/linux/version.h:5:2: #error ""

/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro

m a well-defined"

/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended

by Linus Torvalds)"

/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may

not match the"

/usr/include/linux/version.h:9:2: #error "currently running kernel. They should

only be"

/usr/include/linux/version.h:10:2: #error "included via other system header file

s - user space"

/usr/include/linux/version.h:11:2: #error "programs should not directly include

<linux/*.h> or"

/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."

/usr/include/linux/version.h:13:2: #error ""

/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the

following:"

/usr/include/linux/version.h:15:2: #error ""

/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"

/usr/include/linux/version.h:17:2: #error ""

/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"

/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exis

ts and points to"

/usr/include/linux/version.h:20:2: #error "   the matching kernel source directo

ry"

/usr/include/linux/version.h:21:2: #error ""

/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t

o"

/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/incl

ude/linux/version.h"

/usr/include/linux/version.h:24:2: #error ""

/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t

he following"

/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct

include files:"

/usr/include/linux/version.h:27:2: #error ""

/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/in

clude"

/usr/include/linux/version.h:29:2: #error ""

/usr/include/linux/version.h:30:2: #error "   instead of"

/usr/include/linux/version.h:31:2: #error ""

/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"

/usr/include/linux/version.h:33:2: #error ""

/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordi

ngly."

/usr/include/linux/version.h:35:2: #error "=====================================

=================="

In file included from sllog.c:47:

/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"

/usr/include/linux/module.h: In function `print_symbol':

/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)

/usr/include/linux/module.h:433: (Each undeclared identifier is reported only on

ce

/usr/include/linux/module.h:433: for each function it appears in.)

In file included from sllog.c:48:

/usr/include/linux/version.h:2:2: #error "======================================

================="

/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l

inux,asm}/ header"

/usr/include/linux/version.h:4:2: #error "files directly for the compilation of

kernel modules."

/usr/include/linux/version.h:5:2: #error ""

/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro

m a well-defined"

/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended

by Linus Torvalds)"

/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may

not match the"

/usr/include/linux/version.h:9:2: #error "currently running kernel. They should

only be"

/usr/include/linux/version.h:10:2: #error "included via other system header file

s - user space"

/usr/include/linux/version.h:11:2: #error "programs should not directly include

<linux/*.h> or"

/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."

/usr/include/linux/version.h:13:2: #error ""

/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the

following:"

/usr/include/linux/version.h:15:2: #error ""

/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"

/usr/include/linux/version.h:17:2: #error ""

/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"

/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exis

ts and points to"

/usr/include/linux/version.h:20:2: #error "   the matching kernel source directo

ry"

/usr/include/linux/version.h:21:2: #error ""

/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t

o"

/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/incl

ude/linux/version.h"

/usr/include/linux/version.h:24:2: #error ""

/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t

he following"

/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct

include files:"

/usr/include/linux/version.h:27:2: #error ""

/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/in

clude"

/usr/include/linux/version.h:29:2: #error ""

/usr/include/linux/version.h:30:2: #error "   instead of"

/usr/include/linux/version.h:31:2: #error ""

/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"

/usr/include/linux/version.h:33:2: #error ""

/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordi

ngly."

/usr/include/linux/version.h:35:2: #error "=====================================

=================="

In file included from /usr/include/asm/hardirq.h:6,

                from /usr/include/linux/interrupt.h:46,

                from sllog.c:56:

/usr/include/linux/irq.h: At top level:

/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in      a function)

/usr/include/linux/irq.h:65: requested alignment is not a constant

In file included from /usr/include/linux/interrupt.h:46,

                from sllog.c:56:

/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not      in a function)

/usr/include/asm/hardirq.h:16: requested alignment is not a constant

In file included from sllog.c:56:

/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here      (not in a function)

/usr/include/linux/interrupt.h:129: requested alignment is not a constant

sllog.c:410:40: missing binary operator before '('

sllog.c:451: parse error before "config_must_be_included_before_module"

sllog.c:451: warning: type defaults to `int' in declaration of `config_must_be_i     ncluded_before_module'

sllog.c:451: warning: data definition has no type or storage class

sllog.c:452: parse error before "config_must_be_included_before_module"

sllog.c:452: warning: type defaults to `int' in declaration of `config_must_be_i     ncluded_before_module'

sllog.c:452: warning: data definition has no type or storage class

make: ** [sllog.o] Erro 1

[rafael@localhost slmdm-2.7.9_debug]$ Makefile

bash: Makefile: command not found

[rafael@localhost slmdm-2.7.9_debug]$

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

o que q eu faço?

Postado

Carece não, já consegui resolver o problema, parece que o Kernel Source não foi instalado direito, ai eu reinstalei e consegui por o modem pra funcionar!

valeu pela ajuda gente!

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

LANÇAMENTO!

eletronica2025-popup.jpg


CLIQUE AQUI E BAIXE AGORA MESMO!