HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

build error with tg3 on SLES 10

 
BfN
Occasional Advisor

build error with tg3 on SLES 10

Hi,

I tried to rebuild the network driver
after having installed a fresh kernel.
I used an older version 3.99h-1 before,
which I deinstalled before I installed
the new version from PSP 8.50:

rpm -ivh hp-tg3-3.99p-9.src.rpm

Next steps like described for SLES in the readme file:
hp-tg3-3.99p-9.src.txt

Required Packages as listed in section "Build Environment Setup" are installed:

# rpm -qa |grep -i kernel
kernel-smp-2.6.16.60-0.69.1
kernel-syms-2.6.16.60-0.69.1
kernel-source-2.6.16.60-0.69.1

cd /usr/src/packages;
rpmbuild -bb SPECS/hp-tg3.spec

Output is:
------ snip ------
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.67031
drwxr-xr-x 2397/305 0 2009-10-16 23:29:31 hp-tg3-3.99p/
-rwxr--r-- 2397/305 5801 2009-10-07 05:31:56 hp-tg3-3.99p/makeflags.sh
-rw-r--r-- 2397/305 3445 2009-01-09 20:41:43 hp-tg3-3.99p/tg3.4
-rw-r--r-- 2397/305 3424 2009-04-22 01:43:11 hp-tg3-3.99p/Makefile
-rw-r--r-- 2397/305 43881 2009-02-28 02:05:28 hp-tg3-3.99p/tg3_firmware.h
-rw-r--r-- 2397/305 107622 2009-10-16 23:28:44 hp-tg3-3.99p/tg3.h
-rw-r--r-- 2397/305 4280 2009-09-15 20:19:28 hp-tg3-3.99p/tg3_compat2.h
-rw-r--r-- 2397/305 10485 2009-10-16 23:29:30 hp-tg3-3.99p/README.TXT
-rw-r--r-- 2397/305 26786 2009-10-07 05:29:21 hp-tg3-3.99p/tg3_compat.h
-rw-r--r-- 2397/305 15153 2009-01-09 20:41:43 hp-tg3-3.99p/LICENSE
-rw-r--r-- 2397/305 396663 2009-10-16 23:29:14 hp-tg3-3.99p/tg3.c
-rw-r--r-- 2397/305 258454 2009-04-22 01:29:22 hp-tg3-3.99p/ChangeLog
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.67031
make: Entering directory `/usr/src/packages/BUILD/hp-tg3-3.99p/obj/default'
sh makeflags.sh /usr/src/linux > tg3_flags.h
make -C /usr/src/linux SUBDIRS=/usr/src/packages/BUILD/hp-tg3-3.99p/obj/default modules
make[1]: Entering directory `/usr/src/linux-2.6.16.60-0.69.1'

WARNING: Symbol version dump /usr/src/linux-2.6.16.60-0.69.1/Module.symvers
is missing; modules will have no dependencies and modversions.

Building modules, stage 2.
make[1]: Leaving directory `/usr/src/linux-2.6.16.60-0.69.1'
make: Leaving directory `/usr/src/packages/BUILD/hp-tg3-3.99p/obj/default'


RPM build errors:
------ snip ------

Error output is:
------ snip ------
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf hp-tg3-3.99p
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/hp-tg3-3.99p.tar.gz
+ tar -xvvf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd hp-tg3-3.99p
++ /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,u+w,g-w,o-w .
+ set -- ChangeLog LICENSE Makefile README.TXT makeflags.sh tg3.4 tg3.c tg3.h tg3_compat.h tg3_compat2.h tg3_firmware.h
+ mkdir source
+ mv ChangeLog LICENSE Makefile README.TXT makeflags.sh tg3.4 tg3.c tg3.h tg3_compat.h tg3_compat2.h tg3_firmware.h source/
+ mkdir obj
+ exit 0
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /var/tmp/hp-tg3-buildroot
++ dirname /var/tmp/hp-tg3-buildroot
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/hp-tg3-buildroot
+ cd hp-tg3-3.99p
+ export KVER=2.6.16.60-0.54.5
+ KVER=2.6.16.60-0.54.5
+ export KABIRPM=1
+ KABIRPM=1
+ export 'EXTRA_CFLAGS=-DVERSION=\"3.99p\"'
+ EXTRA_CFLAGS='-DVERSION=\"3.99p\"'
+ for flavor in default smp xen
+ rm -rf obj/default
+ cp -r source obj/default
+ export LINUXsrc=/usr/src/linux-obj/x86_64/default
+ LINUXsrc=/usr/src/linux-obj/x86_64/default
+ '[' suse == redhat ']'
+ '[' suse == suse ']'
+ kernel_flavor=2.6.16.60-0.54.5-default
+ make -C obj/default KVER=2.6.16.60-0.54.5-default
Makefile:452: .config: No such file or directory
/usr/src/linux-2.6.16.60-0.69.1/scripts/Makefile.modpost:38: .config: No such file or directory
make[2]: *** No rule to make target `.config'. Stop.
make[1]: *** [modules] Error 2
make: *** [default] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.67031 (%build)
Bad exit status from /var/tmp/rpm-tmp.67031 (%build)
------ snip ------

How can I address the new kernel in the build prodecure?

Thanks in advance,

BfN
3 REPLIES
Alan_152
Honored Contributor

Re: build error with tg3 on SLES 10

Which version of SLES 10.x are you referring to? I seem to remember an issue with the tg3 driver in 10.0...
BfN
Occasional Advisor

Re: build error with tg3 on SLES 10

Sorry for the noise, I found the info via internet search and then also in the Readme-file.. ;)

rpmbuild -bb SPECS/hp-tg3.spec --define "KVER 2.6.16.60-0.69.1-smp"
BfN
Occasional Advisor

Re: build error with tg3 on SLES 10

see last comment. found the missing instruction in readme file.