PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : troubles mit make install bei einer moxa cp168u 8 port serial card



nomad
20-10-2004, 12:23
hi leute,

os: suse 9.0
system athlon 2.5 GH

hab probleme mit make install einer moxa cp168u
8x multiport karte.:

unten stehen das make file und der output von make install.

hab gerade mit dem techniker des distributors geredet:
er meint, dass das ganze daran liegt das moxa die intel x86-platform unterstuetzt
und nicht die amd-platform.
der fehler liegt bei:
gcc -c -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -I/usr/src/linux-2.4/include -I/usr/src/linux/include -DMODVERSIONS mxser.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
== m486,
er sagt ich sollte diesen teil des make-files meinen processor anpassen.
habe aber leider z.z. keine ahnung wie man dies am besten macht.

waer um jeden tip und hilfe s e h r dankbar.
mfg nomad
-------------------------------------------------------------
hier ist das urspruengliche make-file
----------------------------------------------------------------
CC=gcc -c
ARCH=$(shell uname -m | sed s/i.86/i86/)

ifeq ($(ARCH),i86)
OPTS=-DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 \
-fomit-frame-pointer -pipe -m486 -I/usr/src/linux-2.4/include \
-I/usr/src/linux/include
else
OPTS=-DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 \
-fomit-frame-pointer -pipe -I/usr/src/linux/include -ffixed-8
endif

ifeq ($(MAKECMDGOALS), install)
OPTS+=-DMODVERSIONS
endif


ifeq "$(findstring SMP, $(shell uname -a))" "SMP"
OPTS+=-D__SMP__
endif


all: module

module : mxser.o

installmod: install

install: module
mkdir -p /lib/modules/$(shell uname -r)/kernel/drivers/char/
cp -f ./mxser.o /lib/modules/$(shell uname -r)/kernel/drivers/char/
mkdir -p /lib/modules/$(shell uname -r)/misc/
cp -f ./mxser.o /lib/modules/$(shell uname -r)/misc/

clean :
rm -f *.o

mxser.o : mxser.c
$(CC) $(OPTS) mxser.c

dummy:

----------------------------------------------------------------
fehlermeldungen von make install ( // das sind meine kommentare
----------------------------------------------------------------
// now with modversions.h

linux:/moxa/mxser/driver # make install
gcc -c -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486 -I/usr/src/linux-2.4/include -I/usr/src/linux/include -DMODVERSIONS mxser.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from /usr/include/linux/module.h:20,
from mxser.c:44:

// das erzeugt diesen abschnitt module.h

/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from mxser.c:49:
/usr/include/linux/version.h:2:2: #error "================================================== ====="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,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 from 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 files - 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 exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error " - cd /usr/src/linux"
/usr/include/linux/version.h:24:2: #error " - make mrproper"
/usr/include/linux/version.h:25:2: #error " - make cloneconfig"
/usr/include/linux/version.h:26:2: #error " - make dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:29:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error " instead of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:38:2: #error "================================================== ====="
mxser.c:50:28: linux/autoconf.h: No such file or directory
In file included from /usr/include/linux/irq.h:19,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from mxser.c:55:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from mxser.c:55:
/usr/include/linux/irq.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:67: error: requested alignment is not a constant
/usr/include/linux/irq.h:69: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:71,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from mxser.c:55:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/include/linux/interrupt.h:10,
from mxser.c:55:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from /usr/include/linux/mm.h:205,
from mxser.c:65:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a constant
mxser.c:362: error: field `tqueue' has incomplete type
mxser.c:424: error: `MUTEX' undeclared here (not in a function)
mxser.c: In function `mxser_initbrd':
mxser.c:1034: warning: passing arg 2 of `request_irq' from incompatible pointer type
mxser.c: In function `mxser_init':
mxser.c:1131: warning: assignment makes integer from pointer without a cast
mxser.c:1132: error: structure has no member named `table'
mxser.c:1115: warning: unused variable `pdev'
mxser.c: In function `mxser_do_softint':
mxser.c:1346: error: void value not ignored as it ought to be
mxser.c:1352: error: void value not ignored as it ought to be
mxser.c: In function `mxser_open':
mxser.c:1384: error: request for member `minor_start' in something not a structure or union
mxser.c:1397: warning: implicit declaration of function `get_free_page'
mxser.c:1418: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:481)
mxser.c:1421: error: request for member `subtype' in something not a structure or union
mxser.c: In function `mxser_close':
mxser.c:1452: error: request for member `minor_start' in something not a structure or union
mxser.c:1462: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:493)
mxser.c:1485: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:493)
mxser.c:1527: error: structure has no member named `timeout'
mxser.c:1541: error: request for member `flush_buffer' in something not a structure or union
mxser.c:1542: error: request for member `flush_buffer' in something not a structure or union
mxser.c:1551: error: structure has no member named `timeout'
mxser.c:1553: warning: passing arg 1 of `__wake_up' from incompatible pointer type
mxser.c:1558: warning: passing arg 1 of `__wake_up' from incompatible pointer type
mxser.c:1561: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/include/linux/module.h:493)
mxser.c: In function `mxser_write':
mxser.c:1585: warning: implicit declaration of function `memcpy_fromfs'
mxser.c: In function `mxser_ioctl':
mxser.c:1697: error: request for member `minor_start' in something not a structure or union
mxser.c:1721: warning: implicit declaration of function `verify_area'
mxser.c:1721: error: `VERIFY_WRITE' undeclared (first use in this function)
mxser.c:1721: error: (Each undeclared identifier is reported only once
mxser.c:1721: error: for each function it appears in.)
mxser.c:1724: warning: implicit declaration of function `put_fs_long'
mxser.c:1727: error: `VERIFY_READ' undeclared (first use in this function)
mxser.c:1730: warning: implicit declaration of function `get_fs_long'
mxser.c:1776: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
mxser.c:1778: error: wrong type argument to bit-complement
mxser.c: In function `mxser_ioctl_special':
mxser.c:1855: error: `VERIFY_WRITE' undeclared (first use in this function)
mxser.c:1859: warning: implicit declaration of function `memcpy_tofs'
mxser.c: In function `mxser_hangup':
mxser.c:2175: warning: passing arg 1 of `__wake_up' from incompatible pointer type
mxser.c: In function `mxser_receive_chars':
mxser.c:2393: warning: implicit declaration of function `queue_task_irq_off'
mxser.c:2393: error: structure has no member named `tqueue'
mxser.c:2393: error: `tq_timer' undeclared (first use in this function)
mxser.c: In function `mxser_transmit_chars':
mxser.c:2448: warning: implicit declaration of function `queue_task'
mxser.c:2448: error: `tq_scheduler' undeclared (first use in this function)
mxser.c: In function `mxser_check_modem_status':
mxser.c:2470: warning: passing arg 1 of `__wake_up' from incompatible pointer type
mxser.c:2474: warning: passing arg 1 of `__wake_up' from incompatible pointer type
mxser.c:2487: error: `tq_scheduler' undeclared (first use in this function)
mxser.c: In function `mxser_block_til_ready':
mxser.c:2532: error: variable `wait' has initializer but incomplete type
mxser.c:2532: warning: excess elements in struct initializer
mxser.c:2532: warning: (near initialization for `wait')
mxser.c:2532: warning: excess elements in struct initializer
mxser.c:2532: warning: (near initialization for `wait')
mxser.c:2532: error: storage size of `wait' isn't known
mxser.c:2544: warning: passing arg 1 of `interruptible_sleep_on' from incompatible pointer type
mxser.c:2559: error: request for member `subtype' in something not a structure or union
mxser.c:2602: warning: passing arg 1 of `add_wait_queue' from incompatible pointer type
mxser.c:2632: error: wrong type argument to bit-complement
mxser.c:2639: warning: passing arg 1 of `remove_wait_queue' from incompatible pointer type
mxser.c:2532: warning: unused variable `wait'
mxser.c: In function `mxser_startup':
mxser.c:2699: warning: implicit declaration of function `suser'
mxser.c: In function `mxser_shutdown':
mxser.c:2782: warning: passing arg 1 of `__wake_up' from incompatible pointer type
mxser.c: In function `mxser_change_speed':
mxser.c:3039: error: `tq_scheduler' undeclared (first use in this function)
mxser.c: In function `mxser_send_break':
mxser.c:3266: error: structure has no member named `timeout'
mxser.c: In function `mxser_set_modem_info':
mxser.c:3302: error: `VERIFY_READ' undeclared (first use in this function)
mxser.c: At top level:
mxser.c:874: warning: `CheckIsMoxaMust' defined but not used
make: *** [mxser.o] Error 1
--------------------------------------------------------------------------------------------
end

7.e.Q
22-10-2004, 05:29
Äh moment... sowohl Intel, als auch AMDs Massenmarkt-CPUs basieren beide auf der x86 Architektur... was hat dir denn der Herr da für'n Blödsinn erzählt? Soweit mir das bekannt ist, ist es dem Compiler pups egal, auf welcher x86-CPU er übersetzt. Also daran kann's imho nicht liegen.

nomad
24-10-2004, 17:10
hi,
zitat:
Äh moment... sowohl Intel, als auch AMDs Massenmarkt-CPUs basieren beide auf der x86 Architektur... was hat dir denn der Herr da für'n Blödsinn erzählt? Soweit mir das bekannt ist, ist es dem Compiler pups egal, auf welcher x86-CPU er übersetzt. Also daran kann's imho nicht liegen.

== doch schon irgendwie, denn moxa hat den treiber nur fuer intel spezifiziert.
bei make install kommt "unknown processor-type"
entweder muesste man den make sehr stark abaendern, oder sogar den treiber im kernel
als static einbinden, habs jetzt ne woche lang versucht. kann zum glueck die karte
zurueck geben. ausstausch mit ner 4-fach multiport karte von exsys,
lt doku im web und produktbeschreiibung linux und AMD Atholn xp tauglich.
der "herr" war auch ganz schoen herablassend.....;-)

== fuer weitere infos look at linuxforen.de unter stationaere hardware : " troubles mit moxa cp168u"

aber vielen dank fuer dein interesse.
mfg nomad