kephillips
asked on
digiboard configuration
Hi experts.
I am trying to install a acceleport xem host adapter with several 8em modules on my RH 9 box.
I have installed the card in a PCI slot and kudzu recognized the card on startup.
Now, I have tried to install the driver that i found at digi.com but it does not seem to have done anything.
I am not sure how to go about this installation. Please help.
I am trying to install a acceleport xem host adapter with several 8em modules on my RH 9 box.
I have installed the card in a PCI slot and kudzu recognized the card on startup.
Now, I have tried to install the driver that i found at digi.com but it does not seem to have done anything.
I am not sure how to go about this installation. Please help.
Hi :-)
I have installed a couple of Digi Neo cards and they have the same install procedure.
The driver you download from digi.com comes as a source RPM. For this, you will need a compiler (GCC) on the host in which you are installing.
For this example I used the driver for "AccelePort 8em-PCI RJ45" and for "Fedora Core 2"
You need to download a driver for your card and os, is comes with a name similar to:
40002347_a.src.rpm
Download the file to somewhere on your linux server. Then re-compile (rebuild) the source RPM:
rpmbuild --rebuild -vh 40002347_a.src.rpm
When the rebuild command is done, it will output a filename, most probably
/usr/src/redhat/RPMS/i386/ 40002347_a .i386.rpm
Install this RPM
rpm -Uvh /usr/src/redhat/RPMS/i386/ dgap-1.1-1 .i386.rpm
Reboot
Your digi ports should be accessible as:
/dev/dg/dgap/tty<x><yy>
(x= card number)
(yy = port number)
Everything I wrote is also in the release notes (which btw, i used to install my driver with).
http://ftp1.digi.com/support/driver/93000511_a.txt
Digi provides excellent support for Linux, they always update their drivers to comply with new kernel versions and provide the source(!). I used the source once to fill in a gap they had - I wanted to install a new custom kernel I have downloaded and the driver was not able to compile with. I fixed the source myself and recompiled it successfully.
Enjoy your digi...
I have installed a couple of Digi Neo cards and they have the same install procedure.
The driver you download from digi.com comes as a source RPM. For this, you will need a compiler (GCC) on the host in which you are installing.
For this example I used the driver for "AccelePort 8em-PCI RJ45" and for "Fedora Core 2"
You need to download a driver for your card and os, is comes with a name similar to:
40002347_a.src.rpm
Download the file to somewhere on your linux server. Then re-compile (rebuild) the source RPM:
rpmbuild --rebuild -vh 40002347_a.src.rpm
When the rebuild command is done, it will output a filename, most probably
/usr/src/redhat/RPMS/i386/
Install this RPM
rpm -Uvh /usr/src/redhat/RPMS/i386/
Reboot
Your digi ports should be accessible as:
/dev/dg/dgap/tty<x><yy>
(x= card number)
(yy = port number)
Everything I wrote is also in the release notes (which btw, i used to install my driver with).
http://ftp1.digi.com/support/driver/93000511_a.txt
Digi provides excellent support for Linux, they always update their drivers to comply with new kernel versions and provide the source(!). I used the source once to fill in a gap they had - I wanted to install a new custom kernel I have downloaded and the driver was not able to compile with. I fixed the source myself and recompiled it successfully.
Enjoy your digi...
ASKER
ok. will give that a try.
do you know by the way, if i can use 8 pin (ethernet rj45) connectors on my portserver?
I have one I would like to install and use, but am not sure the 8 pin connectors work with the 10 pin slot....
e-tsik, will give your instructions a try....
do you know by the way, if i can use 8 pin (ethernet rj45) connectors on my portserver?
I have one I would like to install and use, but am not sure the 8 pin connectors work with the 10 pin slot....
e-tsik, will give your instructions a try....
ASKER
e-tsik,
here is what i tried and the errror it gives me....
Also I tried using -vh like you put but it didn't recognize that option so I used -vv instead...
[root@back root]# rpmbuild --rebuild -vv 40002347_a.src.rpm
Installing 40002347_a.src.rpm
D: Expected size: 622279 = lead(96)+sigs(180)+pad(4)+ data(62199 9)
D: Actual size: 622279
D: ========== Directories not explictly included in package:
D: 0 /usr/src/redhat/SOURCES/
D: 1 /usr/src/redhat/SPECS/
D: ==========
D: fini 100644 1 ( 0, 0) 2770 /usr/src/redhat/SPECS/dgap -1.1.spec; 4163e219
D: fini 100644 1 ( 0, 0) 618636 /usr/src/redhat/SOURCES/dg ap-1.1.tgz ;4163e219
GZDIO: 76 reads, 621780 total bytes in 0.000 secs
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.86870
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf dgap-1.1
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/dg ap-1.1.tgz
+ tar -xvvf -
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/
-rwxr-xr-x root/root 159805 2004-04-14 22:39:31 dgap-1.1/configure
-rw-r--r-- root/root 17048 2004-04-14 22:39:31 dgap-1.1/configure.in
-rw-r--r-- root/root 3634 2004-04-14 22:39:31 dgap-1.1/Makefile.in
-rw-r--r-- root/root 1660 2004-04-14 22:39:31 dgap-1.1/Makefile.inc
-rw-r--r-- root/root 7857 2004-04-14 22:39:31 dgap-1.1/relnotes.txt
-rw-r--r-- root/root 17976 2004-04-14 22:39:31 dgap-1.1/COPYING
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/include/
-rw-r--r-- root/root 327 2004-04-14 22:39:31 dgap-1.1/include/config.h. in
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/include/dxb/
-rw-r--r-- root/root 2769 2004-04-14 22:39:31 dgap-1.1/include/dxb/dxbty pes.h
-rw-r--r-- root/root 16350 2004-04-14 22:39:31 dgap-1.1/include/dxb/rasco n.h
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/
-rw-r--r-- root/root 8874 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmtioc 1.h
-rw-r--r-- root/root 60025 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmthlc .h
-rw-r--r-- root/root 8414 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmttig ger.h
-rw-r--r-- root/root 1103 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmtint ernal.h
-rw-r--r-- root/root 11274 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmtcmd s.h
-rw-r--r-- root/root 5407 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmtdfl t.h
-rw-r--r-- root/root 10577 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/pci_ids .h
-rw-r--r-- root/root 37445 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu de/mgmtcc. h
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/driver/
-rw-r--r-- root/root 2535 2004-04-14 22:39:31 dgap-1.1/driver/Makefile24
-rw-r--r-- root/root 1202 2004-04-14 22:39:31 dgap-1.1/driver/Makefile26
-rw-r--r-- root/root 35735 2004-04-14 22:39:31 dgap-1.1/driver/dgap_drive r.c
-rw-r--r-- root/root 29588 2004-04-14 22:39:31 dgap-1.1/driver/dgap_parse .c
-rw-r--r-- root/root 4917 2004-04-14 22:39:31 dgap-1.1/driver/dgap_trace .c
-rw-r--r-- root/root 18428 2004-04-14 22:39:31 dgap-1.1/driver/dgap_proc. c
-rw-r--r-- root/root 94970 2004-04-14 22:39:31 dgap-1.1/driver/dgap_tty.c
-rw-r--r-- root/root 16662 2004-04-14 22:39:31 dgap-1.1/driver/dgap_mgmt. c
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/driver/include/
-rw-r--r-- root/root 6371 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_conf.h
-rw-r--r-- root/root 1121 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_proc.h
-rw-r--r-- root/root 1224 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_types.h
-rw-r--r-- root/root 26627 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_driver. h
-rw-r--r-- root/root 1329 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_parse.h
-rw-r--r-- root/root 1207 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_trace.h
-rw-r--r-- root/root 1195 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_mgmt.h
-rw-r--r-- root/root 13936 2004-04-14 22:39:31 dgap-1.1/driver/include/di gi.h
-rw-r--r-- root/root 12535 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_fep5.h
-rw-r--r-- root/root 2972 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_pci.h
-rw-r--r-- root/root 1179 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_tty.h
-rw-r--r-- root/root 2028 2004-04-14 22:39:31 dgap-1.1/driver/include/dg ap_downld. h
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/ditty/
-rw-r--r-- root/root 8239 2004-04-14 22:39:31 dgap-1.1/ditty/ditty.1
-rw-r--r-- root/root 27781 2004-04-14 22:39:31 dgap-1.1/ditty/ditty.c
-rw-r--r-- root/root 669 2004-04-14 22:39:31 dgap-1.1/ditty/Makefile.in
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/
-rwxr-xr-x root/root 36352 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/pcifep .bin
-rwxr-xr-x root/root 29696 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/pcibio s.bin
-rwxr-xr-x root/root 28928 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/cxpbio s.bin
-rwxr-xr-x root/root 36352 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/cxpfep .bin
-rwxr-xr-x root/root 41728 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/sxbios .bin
-rwxr-xr-x root/root 30976 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/sxfep. bin
-rwxr-xr-x root/root 41728 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/xrbios .bin
-rwxr-xr-x root/root 30976 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/xrfep. bin
-rwxr-xr-x root/root 51888 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/fxcon. bin
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/cxfepbin/
-rwxr-xr-x root/root 20000 2004-04-14 22:39:32 dgap-1.1/cxfepbin/cxcon.bi n
-rwxr-xr-x root/root 20176 2004-04-14 22:39:32 dgap-1.1/cxfepbin/ibmcxcon .bin
-rwxr-xr-x root/root 20768 2004-04-14 22:39:32 dgap-1.1/cxfepbin/ibmencon .bin
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/config/
-rw-r--r-- root/root 1451 2004-04-14 22:39:32 dgap-1.1/config/Makefile.i n
-rw-r--r-- root/root 4682 2004-04-14 22:39:32 dgap-1.1/config/dgap_mknod .in
-rw-r--r-- root/root 3154 2004-04-14 22:39:32 dgap-1.1/config/dgap.in
-rwxr-xr-x root/root 1681 2004-04-14 22:39:32 dgap-1.1/config/mpi
-rwxr-xr-x root/root 68330 2004-04-14 22:39:32 dgap-1.1/config/dgap_confi g
-rw-r--r-- root/root 18429 2004-04-14 22:39:32 dgap-1.1/config/downld.c
-rw-r--r-- root/root 204959 2004-04-14 22:39:32 dgap-1.1/config/dialog.tar .gz
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/dinc/
-rw-r--r-- root/root 3206 2004-04-14 22:39:32 dgap-1.1/dinc/Makefile
-rw-r--r-- root/root 31870 2004-04-14 22:39:32 dgap-1.1/dinc/dinc.c
-rw-r--r-- root/root 8831 2004-04-14 22:39:32 dgap-1.1/dinc/dinc_hw.c
-rw-r--r-- root/root 2125 2004-04-14 22:39:32 dgap-1.1/dinc/dinc.h
-rw-r--r-- root/root 6633 2004-04-14 22:39:32 dgap-1.1/dinc/dinc.1
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/dpa/
-rwxr-xr-x root/root 1406 2004-04-14 22:39:32 dgap-1.1/dpa/dgaplinux.mk
-rwxr-xr-x root/root 2145 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info1
-rwxr-xr-x root/root 603 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info2
-rwxr-xr-x root/root 324 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info3
-rwxr-xr-x root/root 4754 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info4
-rwxr-xr-x root/root 2657 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info5
-rwxr-xr-x root/root 594 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info6
-rwxr-xr-x root/root 7120 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info7
-rwxr-xr-x root/root 617 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info8
-rwxr-xr-x root/root 3625 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info9
-rwxr-xr-x root/root 290139 2004-04-14 22:39:32 dgap-1.1/dpa/dpa.c
-rwxr-xr-x root/root 14196 2004-04-14 22:39:32 dgap-1.1/dpa/dpa.h
-rwxr-xr-x root/root 1981 2004-04-14 22:39:32 dgap-1.1/dpa/mid.h
-rwxr-xr-x root/root 10718 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_fep.h
-rwxr-xr-x root/root 2722 2004-04-14 22:39:32 dgap-1.1/dpa/fepflags.h
-rwxr-xr-x root/root 3897 2004-04-14 22:39:32 dgap-1.1/dpa/attribs.c
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/scripts/
-rwxr-xr-x root/root 785 2004-04-14 22:39:32 dgap-1.1/scripts/postinsta ll
-rwxr-xr-x root/root 978 2004-04-14 22:39:32 dgap-1.1/scripts/preuninst all
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dgap-1.1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ '[' /var/tmp/dgap-buildroot = / ']'
+ CFLAGS=-O2 -g -pipe -march=i386 -mcpu=i686
+ export CFLAGS
+ CXXFLAGS=-O2 -g -pipe -march=i386 -mcpu=i686
+ export CXXFLAGS
+ FFLAGS=-O2 -g -pipe -march=i386 -mcpu=i686
+ export FFLAGS
++ find . -name config.guess
++ find . -name config.sub
+ ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux -gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
checking for awk... /bin/awk
checking for arch... /bin/arch
checking for cat... /bin/cat
checking for chkconfig... /sbin/chkconfig
checking for chmod... /bin/chmod
checking for chown... /bin/chown
checking for cp... /bin/cp
checking for depmod... /sbin/depmod
checking for dialog... /usr/bin/dialog
checking for fuser... /sbin/fuser
checking for grep... /bin/grep
checking for init... /sbin/init
checking for insmod... /sbin/insmod
checking for kill... /bin/kill
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for lsmod... /sbin/lsmod
checking for mkdir... /bin/mkdir
checking for mknod... /bin/mknod
checking for more... /bin/more
checking for mv... /bin/mv
checking for ps... /bin/ps
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for rmmod... /sbin/rmmod
checking for sed... /bin/sed
checking for sh... /bin/sh
checking for sleep... /bin/sleep
checking for stty... /bin/stty
checking for tar... /bin/tar
checking for touch... /bin/touch
checking for true... /bin/true
checking for uname... /bin/uname
checking for platform type... i386
checking for gcc... gcc
checking for gcc version... >= 3.2 (3.2.2)
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for current kernel version... 2.4.20-8 -> 2.4.20-8 -> 2.4.20
checking for kernel headers... "/lib/modules/2.4.20-8/bui ld"
checking extra version of kernel... -8custom
checking if running kernel was compiled for SMP... No
checking what type of build we will do... non-KBUILD.
checking for modules directory... "/lib/modules/2.4.20-8"
configure: checking for tgetent...
configure: checking for libncurses...
checking if Distro specified... None
configure: creating ./config.status
config.status: creating Makefile
config.status: creating driver/Makefile
config.status: creating config/Makefile
config.status: creating config/dgap
config.status: creating config/dgap_mknod
config.status: creating ditty/Makefile
config.status: creating include/config.h
config.status: executing default commands
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.66977
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd dgap-1.1
+ LANG=C
+ export LANG
+ make all
(cd driver; make all)
make[1]: Entering directory `/usr/src/redhat/BUILD/dga p-1.1/driv er'
gcc -O2 -march=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -DCPU=586 -O2 -D__KERNEL__ -DMODULE -DLINUX -DDG_NAME=\"dgap-"1.1-1"\" -DDG_PART=\"40002347_A\" -I/lib/modules/2.4.20-8/bu ild/includ e -I./include -I../include -Wall -Wstrict-prototypes -pipe -fno-strength-reduce -DSBINDIR=\"/usr/sbin\" -DDGAP_TRACER -DMODVERSIONS -include /lib/modules/2.4.20-8/buil d/include/ linux/modv ersions.h -DNO_DISTRO -c dgap_driver.c -o dgap_driver.o
In file included from /lib/modules/2.4.20-8/buil d/include/ linux/spin lock.h:56,
from /lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:11,
from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil d/include/ asm/spinlo ck.h:9: invalid suffix on integer constant
/lib/modules/2.4.20-8/buil d/include/ asm/spinlo ck.h:9: parse error before numeric constant
/lib/modules/2.4.20-8/buil d/include/ asm/spinlo ck.h:10: `printk_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ asm/spinlo ck.h:10: warning: function declaration isn't a prototype
In file included from /lib/modules/2.4.20-8/buil d/include/ linux/pref etch.h:13,
from /lib/modules/2.4.20-8/buil d/include/ linux/list .h:6,
from /lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:12,
from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:60: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:60: field `loops_per_jiffy_R_ver_str ' declared as a function
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:82: invalid suffix on integer constant
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:82: parse error before numeric constant
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:82: warning: function declaration isn't a prototype
In file included from /lib/modules/2.4.20-8/buil d/include/ linux/pref etch.h:13,
from /lib/modules/2.4.20-8/buil d/include/ linux/list .h:6,
from /lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:12,
from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:267: 1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8/buil d/include/ linux/modv ersions.h: 132,
from <command line>:1:
/lib/modules/2.4.20-8/buil d/include/ linux/modu les/i386_k syms.ver:9 2:1: warning: this is the location of the previous definition
/lib/modules/2.4.20-8/buil d/include/ asm/proces sor.h:269: warning: parameter names (without types) in function declaration
In file included from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:183: invalid suffix on integer constant
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:183: parse error before numeric constant
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:183: `inter_module_register_R_v er_str' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:183: warning: function declaration isn't a prototype
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:184: invalid suffix on integer constant
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:184: parse error before numeric constant
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:184: `inter_module_unregister_R _ver_str' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:184: warning: function declaration isn't a prototype
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:185: `inter_module_get_R_ver_st r' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:185: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:186: `inter_module_get_request_ R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:186: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:187: invalid suffix on integer constant
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:187: parse error before numeric constant
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:187: `inter_module_put_R_ver_st r' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:187: warning: function declaration isn't a prototype
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:196: `try_inc_mod_count_R_ver_s tr' declared as function returning a function
/lib/modules/2.4.20-8/buil d/include/ linux/modu le.h:196: warning: parameter names (without types) in function declaration
make[1]: *** [dgap_driver.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dga p-1.1/driv er'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.66977 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.66977 (%build)
here is what i tried and the errror it gives me....
Also I tried using -vh like you put but it didn't recognize that option so I used -vv instead...
[root@back root]# rpmbuild --rebuild -vv 40002347_a.src.rpm
Installing 40002347_a.src.rpm
D: Expected size: 622279 = lead(96)+sigs(180)+pad(4)+
D: Actual size: 622279
D: ========== Directories not explictly included in package:
D: 0 /usr/src/redhat/SOURCES/
D: 1 /usr/src/redhat/SPECS/
D: ==========
D: fini 100644 1 ( 0, 0) 2770 /usr/src/redhat/SPECS/dgap
D: fini 100644 1 ( 0, 0) 618636 /usr/src/redhat/SOURCES/dg
GZDIO: 76 reads, 621780 total bytes in 0.000 secs
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.86870
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf dgap-1.1
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/dg
+ tar -xvvf -
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/
-rwxr-xr-x root/root 159805 2004-04-14 22:39:31 dgap-1.1/configure
-rw-r--r-- root/root 17048 2004-04-14 22:39:31 dgap-1.1/configure.in
-rw-r--r-- root/root 3634 2004-04-14 22:39:31 dgap-1.1/Makefile.in
-rw-r--r-- root/root 1660 2004-04-14 22:39:31 dgap-1.1/Makefile.inc
-rw-r--r-- root/root 7857 2004-04-14 22:39:31 dgap-1.1/relnotes.txt
-rw-r--r-- root/root 17976 2004-04-14 22:39:31 dgap-1.1/COPYING
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/include/
-rw-r--r-- root/root 327 2004-04-14 22:39:31 dgap-1.1/include/config.h.
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/include/dxb/
-rw-r--r-- root/root 2769 2004-04-14 22:39:31 dgap-1.1/include/dxb/dxbty
-rw-r--r-- root/root 16350 2004-04-14 22:39:31 dgap-1.1/include/dxb/rasco
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 8874 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 60025 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 8414 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 1103 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 11274 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 5407 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 10577 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
-rw-r--r-- root/root 37445 2004-04-14 22:39:31 dgap-1.1/include/dxb/inclu
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/driver/
-rw-r--r-- root/root 2535 2004-04-14 22:39:31 dgap-1.1/driver/Makefile24
-rw-r--r-- root/root 1202 2004-04-14 22:39:31 dgap-1.1/driver/Makefile26
-rw-r--r-- root/root 35735 2004-04-14 22:39:31 dgap-1.1/driver/dgap_drive
-rw-r--r-- root/root 29588 2004-04-14 22:39:31 dgap-1.1/driver/dgap_parse
-rw-r--r-- root/root 4917 2004-04-14 22:39:31 dgap-1.1/driver/dgap_trace
-rw-r--r-- root/root 18428 2004-04-14 22:39:31 dgap-1.1/driver/dgap_proc.
-rw-r--r-- root/root 94970 2004-04-14 22:39:31 dgap-1.1/driver/dgap_tty.c
-rw-r--r-- root/root 16662 2004-04-14 22:39:31 dgap-1.1/driver/dgap_mgmt.
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/driver/include/
-rw-r--r-- root/root 6371 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 1121 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 1224 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 26627 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 1329 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 1207 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 1195 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 13936 2004-04-14 22:39:31 dgap-1.1/driver/include/di
-rw-r--r-- root/root 12535 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 2972 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 1179 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
-rw-r--r-- root/root 2028 2004-04-14 22:39:31 dgap-1.1/driver/include/dg
drwxr-xr-x root/root 0 2004-04-14 22:39:31 dgap-1.1/ditty/
-rw-r--r-- root/root 8239 2004-04-14 22:39:31 dgap-1.1/ditty/ditty.1
-rw-r--r-- root/root 27781 2004-04-14 22:39:31 dgap-1.1/ditty/ditty.c
-rw-r--r-- root/root 669 2004-04-14 22:39:31 dgap-1.1/ditty/Makefile.in
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/
-rwxr-xr-x root/root 36352 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/pcifep
-rwxr-xr-x root/root 29696 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/pcibio
-rwxr-xr-x root/root 28928 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/cxpbio
-rwxr-xr-x root/root 36352 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/cxpfep
-rwxr-xr-x root/root 41728 2004-04-14 22:39:31 dgap-1.1/mipsfepbin/sxbios
-rwxr-xr-x root/root 30976 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/sxfep.
-rwxr-xr-x root/root 41728 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/xrbios
-rwxr-xr-x root/root 30976 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/xrfep.
-rwxr-xr-x root/root 51888 2004-04-14 22:39:32 dgap-1.1/mipsfepbin/fxcon.
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/cxfepbin/
-rwxr-xr-x root/root 20000 2004-04-14 22:39:32 dgap-1.1/cxfepbin/cxcon.bi
-rwxr-xr-x root/root 20176 2004-04-14 22:39:32 dgap-1.1/cxfepbin/ibmcxcon
-rwxr-xr-x root/root 20768 2004-04-14 22:39:32 dgap-1.1/cxfepbin/ibmencon
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/config/
-rw-r--r-- root/root 1451 2004-04-14 22:39:32 dgap-1.1/config/Makefile.i
-rw-r--r-- root/root 4682 2004-04-14 22:39:32 dgap-1.1/config/dgap_mknod
-rw-r--r-- root/root 3154 2004-04-14 22:39:32 dgap-1.1/config/dgap.in
-rwxr-xr-x root/root 1681 2004-04-14 22:39:32 dgap-1.1/config/mpi
-rwxr-xr-x root/root 68330 2004-04-14 22:39:32 dgap-1.1/config/dgap_confi
-rw-r--r-- root/root 18429 2004-04-14 22:39:32 dgap-1.1/config/downld.c
-rw-r--r-- root/root 204959 2004-04-14 22:39:32 dgap-1.1/config/dialog.tar
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/dinc/
-rw-r--r-- root/root 3206 2004-04-14 22:39:32 dgap-1.1/dinc/Makefile
-rw-r--r-- root/root 31870 2004-04-14 22:39:32 dgap-1.1/dinc/dinc.c
-rw-r--r-- root/root 8831 2004-04-14 22:39:32 dgap-1.1/dinc/dinc_hw.c
-rw-r--r-- root/root 2125 2004-04-14 22:39:32 dgap-1.1/dinc/dinc.h
-rw-r--r-- root/root 6633 2004-04-14 22:39:32 dgap-1.1/dinc/dinc.1
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/dpa/
-rwxr-xr-x root/root 1406 2004-04-14 22:39:32 dgap-1.1/dpa/dgaplinux.mk
-rwxr-xr-x root/root 2145 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info1
-rwxr-xr-x root/root 603 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info2
-rwxr-xr-x root/root 324 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info3
-rwxr-xr-x root/root 4754 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info4
-rwxr-xr-x root/root 2657 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info5
-rwxr-xr-x root/root 594 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info6
-rwxr-xr-x root/root 7120 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info7
-rwxr-xr-x root/root 617 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info8
-rwxr-xr-x root/root 3625 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_info9
-rwxr-xr-x root/root 290139 2004-04-14 22:39:32 dgap-1.1/dpa/dpa.c
-rwxr-xr-x root/root 14196 2004-04-14 22:39:32 dgap-1.1/dpa/dpa.h
-rwxr-xr-x root/root 1981 2004-04-14 22:39:32 dgap-1.1/dpa/mid.h
-rwxr-xr-x root/root 10718 2004-04-14 22:39:32 dgap-1.1/dpa/dpa_fep.h
-rwxr-xr-x root/root 2722 2004-04-14 22:39:32 dgap-1.1/dpa/fepflags.h
-rwxr-xr-x root/root 3897 2004-04-14 22:39:32 dgap-1.1/dpa/attribs.c
drwxr-xr-x root/root 0 2004-04-14 22:39:32 dgap-1.1/scripts/
-rwxr-xr-x root/root 785 2004-04-14 22:39:32 dgap-1.1/scripts/postinsta
-rwxr-xr-x root/root 978 2004-04-14 22:39:32 dgap-1.1/scripts/preuninst
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dgap-1.1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ '[' /var/tmp/dgap-buildroot = / ']'
+ CFLAGS=-O2 -g -pipe -march=i386 -mcpu=i686
+ export CFLAGS
+ CXXFLAGS=-O2 -g -pipe -march=i386 -mcpu=i686
+ export CXXFLAGS
+ FFLAGS=-O2 -g -pipe -march=i386 -mcpu=i686
+ export FFLAGS
++ find . -name config.guess
++ find . -name config.sub
+ ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux
checking for awk... /bin/awk
checking for arch... /bin/arch
checking for cat... /bin/cat
checking for chkconfig... /sbin/chkconfig
checking for chmod... /bin/chmod
checking for chown... /bin/chown
checking for cp... /bin/cp
checking for depmod... /sbin/depmod
checking for dialog... /usr/bin/dialog
checking for fuser... /sbin/fuser
checking for grep... /bin/grep
checking for init... /sbin/init
checking for insmod... /sbin/insmod
checking for kill... /bin/kill
checking for ln... /bin/ln
checking for ls... /bin/ls
checking for lsmod... /sbin/lsmod
checking for mkdir... /bin/mkdir
checking for mknod... /bin/mknod
checking for more... /bin/more
checking for mv... /bin/mv
checking for ps... /bin/ps
checking for rm... /bin/rm
checking for rmdir... /bin/rmdir
checking for rmmod... /sbin/rmmod
checking for sed... /bin/sed
checking for sh... /bin/sh
checking for sleep... /bin/sleep
checking for stty... /bin/stty
checking for tar... /bin/tar
checking for touch... /bin/touch
checking for true... /bin/true
checking for uname... /bin/uname
checking for platform type... i386
checking for gcc... gcc
checking for gcc version... >= 3.2 (3.2.2)
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for current kernel version... 2.4.20-8 -> 2.4.20-8 -> 2.4.20
checking for kernel headers... "/lib/modules/2.4.20-8/bui
checking extra version of kernel... -8custom
checking if running kernel was compiled for SMP... No
checking what type of build we will do... non-KBUILD.
checking for modules directory... "/lib/modules/2.4.20-8"
configure: checking for tgetent...
configure: checking for libncurses...
checking if Distro specified... None
configure: creating ./config.status
config.status: creating Makefile
config.status: creating driver/Makefile
config.status: creating config/Makefile
config.status: creating config/dgap
config.status: creating config/dgap_mknod
config.status: creating ditty/Makefile
config.status: creating include/config.h
config.status: executing default commands
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.66977
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd dgap-1.1
+ LANG=C
+ export LANG
+ make all
(cd driver; make all)
make[1]: Entering directory `/usr/src/redhat/BUILD/dga
gcc -O2 -march=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -DCPU=586 -O2 -D__KERNEL__ -DMODULE -DLINUX -DDG_NAME=\"dgap-"1.1-1"\"
In file included from /lib/modules/2.4.20-8/buil
from /lib/modules/2.4.20-8/buil
from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
In file included from /lib/modules/2.4.20-8/buil
from /lib/modules/2.4.20-8/buil
from /lib/modules/2.4.20-8/buil
from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
In file included from /lib/modules/2.4.20-8/buil
from /lib/modules/2.4.20-8/buil
from /lib/modules/2.4.20-8/buil
from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil
In file included from /lib/modules/2.4.20-8/buil
from <command line>:1:
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
In file included from include/dgap_driver.h:33,
from dgap_driver.c:37:
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
/lib/modules/2.4.20-8/buil
make[1]: *** [dgap_driver.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dga
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.66977 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.66977 (%build)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can make sure the kernel module driver is loaded by viewing the output of 'lsmod'.
I hope this helps, in some small way.