Changes between Version 4 and Version 5 of NetPerfExample


Ignore:
Timestamp:
Nov 26, 2007, 10:58:53 AM (16 years ago)
Author:
Bruno Cornec
Comment:

build ok on rhel 4

Legend:

Unmodified
Added
Removed
Modified
  • NetPerfExample

    v4 v5  
    10621062}}}
    10631063So we're not lucky as the application doesn't build natively on Fedora 8 due to the lack of some defines.
     1064So we can try with another existing VM to see if we are more lucky, after stoping our running VM:
     1065{{{
     1066$ ssh -p 2225 root@localhost halt
     1067$ pb -p netperf -r `pwd` -m rhel_4 build2vm
     1068Project: netperf
     1069Action: build2vm
     1070VMs: rhel_4
     1071Launching the VM /users/qemu/rhel_4.qemu... OK
     1072Waiting for VM rhel_4 to come up...
     1073Packages: netperf
     1074Sources handled (VMs): /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz /users/bruno/netperf/delivery/pbscript /users/bruno/netperf/src/pbconf/netperf.pb /users/bruno/netperf/delivery/2.4.4-1.pb /users/bruno/.pbrc
     1075Preparing netperf/delivery on pb@localhost... OK
     1076netperf-2.4.4.tar.gz                                                       100% 1159KB   1.1MB/s   00:00
     1077pbscript                                                                   100%  369     0.4KB/s   00:00
     1078netperf.pb                                                                 100% 2223     2.2KB/s   00:00
     10792.4.4-1.pb                                                                 100%   24     0.0KB/s   00:00
     1080.pbrc                                                                      100% 2216     2.2KB/s   00:00
     1081OK
     1082Executing pbscript on pb@localhost  if needed... ... Execution needed
     1083Setting up date on pool.ntp.org...
     1084lun nov 26 10:23:00 CET 2007
     1085Building packages on VM...
     1086Project: netperf
     1087Action: build2pkg
     1088Packages: netperf
     1089Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz
     1090Working directory: /home/pb/netperf/build
     1091Extracting build files... OK
     1092Building package with /home/pb/netperf/build/SPECS/netperf.spec under /home/pb/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.90577
     1093+ umask 022
     1094+ cd /home/pb/netperf/build/BUILD
     1095+ cd /home/pb/netperf/build/BUILD
     1096+ rm -rf netperf-2.4.4
     1097+ /usr/bin/gzip -dc /home/pb/netperf/build/SOURCES/netperf-2.4.4.tar.gz
     1098[...]
     1099gcc  -O2 -g -march=i386 -mcpu=i686   -o netperf  netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_procstat.o  -lm
     1100netlib.o(.text+0xbb1): In function `alloc_sendfile_buf_ring':
     1101/home/pb/netperf/build/BUILD/netperf-2.4.4/src/netlib.c:1545: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
     1102if gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -g -march=i386 -mcpu=i686 -MT netserver.o -MD -MP -MF ".deps/netserver.Tpo" \
     1103  -c -o netserver.o `test -f 'netserver.c' || echo './'`netserver.c; \
     1104then mv -f ".deps/netserver.Tpo" ".deps/netserver.Po"; \
     1105else rm -f ".deps/netserver.Tpo"; exit 1; \
     1106fi
     1107gcc  -O2 -g -march=i386 -mcpu=i686   -o netserver  netserver.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_procstat.o  -lm
     1108netlib.o(.text+0xbb1): In function `alloc_sendfile_buf_ring':
     1109/home/pb/netperf/build/BUILD/netperf-2.4.4/src/netlib.c:1545: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
     1110make[3]: Entering directory `/home/pb/netperf/build/BUILD/netperf-2.4.4/src'
     1111/bin/sh ../mkinstalldirs /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin
     1112mkdir -p -- /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin
     1113  /usr/bin/install -c netperf /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin/netperf
     1114  /usr/bin/install -c netserver /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin/netserver
     1115make[3]: Nothing to be done for `install-data-am'.
     1116[...]
     1117+ /bin/mkdir -p /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
     1118+ cp -pr ChangeLog /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
     1119+ cp -pr INSTALL COPYING README AUTHORS NEWS /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
     1120+ cp -pr README.aix README.hpux README.osx README.ovms README.solaris README.windows Release_Notes doc/examples /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4
     1121+ exit 0
     1122Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
     1123Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libm.so.6 libm.so.6(GLIBC_2.0)
     1124Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/netperf-2.4.4-1.rhel4-root-pb
     1125Wrote: /home/pb/netperf/build/SRPMS/netperf-2.4.4-1.rhel4.src.rpm
     1126Wrote: /home/pb/netperf/build/RPMS/i386/netperf-2.4.4-1.rhel4.i386.rpm
     1127Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.25314
     1128+ umask 022
     1129+ cd /home/pb/netperf/build/BUILD
     1130+ cd netperf-2.4.4
     1131+ /bin/rm -rf /var/tmp/netperf-2.4.4-1.rhel4-root-pb
     1132+ exit 0
     1133OK
     1134OK
     1135pbgen-2.4.4-1                                                              100%   72     0.1KB/s   00:00
     1136OK
     1137netperf-2.4.4-1.rhel4.i386.rpm                                             100%  174KB 173.9KB/s   00:00
     1138OK
     1139netperf-2.4.4-1.rhel4.src.rpm                                              100% 1171KB   1.1MB/s   00:00
     1140OK
     1141VM cleanup on pb@localhost... OK
     1142VM rhel_4 halt (pid 2119)... OK
     1143Packages: netperf
     1144Sources handled (Packages): rhel/4/netperf-2.4.4-1.rhel4.*.rpm
     1145Preparing /mondo/ftp/rhel/4 on bruno@www.project-builder.org... OK
     1146netperf-2.4.4-1.rhel4.i386.rpm                                             100%  174KB 173.9KB/s   00:00
     1147netperf-2.4.4-1.rhel4.src.rpm                                              100% 1171KB  33.5KB/s   00:35
     1148OK
     1149Executing pbscript on bruno@www.project-builder.org  if needed... OK
     1150}}}
     1151This time we've been able to build our packages on RHEL 4 and at the end, as the build was successful they were automatically copied on our ftp server for public availability.