[ovs-discuss] [installation problem] Installation of OVS 2.3.1 from the tarball on Citrix Xen Server 6.5

Ben Pfaff blp at nicira.com
Fri Apr 17 22:27:26 UTC 2015


Really this thread reads as you repeatedly changing things randomly in
the hopes that it will work.  I suggest that a more systematic
approach is more likely to work.  When it does, if the documentation
is wrong or misleading, please explain, and we'll improve it.

On Fri, Apr 17, 2015 at 10:24:33PM +0800, Po-Ching Lin wrote:
> Dear Ben,
> 
>       We specified kernel_flavor to be xen before, but rpmbuild simply complained
> that source dir /lib/modules/3.10.0+2xen/build doesn't exist. We
> don't specify kernel_flavor this time, but it seems that the variable kernel_flavor
> is left in the path name. According to INSTALL.XenServer, xen is the choice for
> kernel_flavor, but we don't have that directory under /lib/modules, so the error
> happened. We run the rpmbuild command on DDK VM. Is that correct, or should we
> manully create that directory under /lib/modules? Any suggestions are appreciated.
> Thanks.
> 
> Po-Ching
> 
> GosenChien-IMAP ??? 2015/4/17 ?????? 10:41 ??????:
> >All :
> >
> >Below is the output log after using the instruction to build the RPM packages:
> >
> >--------------------------------------------------------------------------
> >[Steps]
> >1. Left the openvswitch-xen.spec without any changes;
> >2. Enter <ovs folder>/xenserver/ directory;
> >3. Issue the command of rpmbuild :
> > > *rpmbuild -bb openvswitch-xen.spec -D "openvswitch_version 2.3.1" -D "kernel_name xen" -D "kernel_version 3.10.0+2" -D "xen_version 4.4.1-1.9.0.459.28798*
> >
> >[Result]
> >1. Output--
> >Executing (%prep)???/bin/sh -e /var/tmp/rpm-tmp.34945
> >Executing (%build)???/bin/sh -e /var/tmp/rpm-tmp.16395
> >checking for a BSD-compatible install... /usr/bin/install -c
> >checking whether build environment is sane... yes
> >checking for a thread-safe mkdir -p... /bin/mkdir -p
> >checking for gawk... gawk
> >checking whether make sets $(MAKE)... yes
> >checking for gcc... gcc
> >checking whether the C compiler works... yes
> >checking for C compiler default output file name... a.out
> >checking for suffix of executables...
> >checking whether we are cross compiling... no
> >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 ISO C89... none needed
> >checking for style of include used by make... GNU
> >checking dependency style of gcc... gcc3
> >checking whether gcc and cc understand -c and -o together... yes
> >checking how to run the C preprocessor... gcc -E
> >checking for grep that handles long lines and -e... /bin/grep
> >checking for fgrep... /bin/grep -F
> >checking for egrep... /bin/grep -E
> >checking for perl... /usr/bin/perl
> >checking for ANSI C header files... yes
> >checking for sys/types.h... yes
> >checking for sys/stat.h... yes
> >checking for stdlib.h... yes
> >checking for string.h... yes
> >checking for memory.h... yes
> >checking for strings.h... yes
> >checking for inttypes.h... yes
> >checking for stdint.h... yes
> >checking for unistd.h... yes
> >checking minix/config.h usability... no
> >checking minix/config.h presence... no
> >checking for minix/config.h... no
> >checking whether it is safe to define __EXTENSIONS__... yes
> >checking whether byte ordering is bigendian... no
> >checking for special C compiler options needed for large files... no
> >checking for _FILE_OFFSET_BITS value needed for large files... no
> >checking build system type... x86_64-unknown-linux-gnu
> >checking host system type... x86_64-unknown-linux-gnu
> >checking how to print strings... printf
> >checking for a sed that does not truncate output... /bin/sed
> >checking for ld used by gcc... /usr/bin/ld
> >checking if the linker (/usr/bin/ld) is GNU ld... yes
> >checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> >checking the name lister (/usr/bin/nm -B) interface... BSD nm
> >checking whether ln -s works... yes
> >checking the maximum length of command line arguments... 98304
> >checking whether the shell understands some XSI constructs... yes
> >checking whether the shell understands "+="... yes
> >checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
> >checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
> >checking for /usr/bin/ld option to reload object files... -r
> >checking for objdump... objdump
> >checking how to recognize dependent libraries... pass_all
> >checking for dlltool... no
> >checking how to associate runtime and link libraries... printf %s\n
> >checking for ar... ar
> >checking for archiver @FILE support... @
> >checking for strip... strip
> >checking for ranlib... ranlib
> >checking command to parse /usr/bin/nm -B output from gcc object... ok
> >checking for sysroot... no
> >checking for mt... no
> >checking if : is a manifest tool... no
> >checking for dlfcn.h... yes
> >checking for objdir... .libs
> >checking if gcc supports -fno-rtti -fno-exceptions... no
> >checking for gcc option to produce PIC... -fPIC -DPIC
> >checking if gcc PIC flag -fPIC -DPIC works... yes
> >checking if gcc static flag -static works... yes
> >checking if gcc supports -c -o file.o... yes
> >checking if gcc supports -c -o file.o... (cached) yes
> >checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
> >checking dynamic linker characteristics... GNU/Linux ld.so
> >checking how to hardcode library paths into programs... immediate
> >checking whether stripping libraries is possible... yes
> >checking if libtool supports shared libraries... yes
> >checking whether to build shared libraries... no
> >checking whether to build static libraries... yes
> >checking for library containing pow... -lm
> >checking for library containing clock_gettime... -lrt
> >checking for library containing timer_create... none required
> >checking for library containing pthread_sigmask... none required
> >checking whether strerror_r is declared... yes
> >checking for strerror_r... yes
> >checking whether strerror_r returns char *... yes
> >checking vmware.h usability... no
> >checking vmware.h presence... no
> >checking for vmware.h... no
> >checking windows.h usability... no
> >checking windows.h presence... no
> >checking for windows.h... no
> >checking for linux/netlink.h... yes
> >checking for pkg-config... /usr/bin/pkg-config
> >checking whether compiling and linking against OpenSSL works... yes
> >checking for Python 2.x for x >= 4... /usr/bin/python
> >checking for uuid Python module... no
> >checking whether to add python/compat to PYTHONPATH... yes
> >checking for dot... no
> >checking net/if_packet.h usability... yes
> >checking net/if_packet.h presence... yes
> >checking for net/if_packet.h... yes
> >checking net/if_dl.h usability... no
> >checking net/if_dl.h presence... no
> >checking for net/if_dl.h... no
> >checking whether strtok_r macro segfaults on some inputs... yes
> >checking whether sys_siglist is declared... yes
> >checking for struct stat.st_mtim.tv_nsec... yes
> >checking for struct stat.st_mtimensec... no
> >checking for struct ifreq.ifr_flagshigh... no
> >checking for mlockall... yes
> >checking for strnlen... yes
> >checking for getloadavg... yes
> >checking for statvfs... yes
> >checking for getmntent_r... yes
> >checking mntent.h usability... yes
> >checking mntent.h presence... yes
> >checking for mntent.h... yes
> >checking sys/statvfs.h usability... yes
> >checking sys/statvfs.h presence... yes
> >checking for sys/statvfs.h... yes
> >checking linux/types.h usability... yes
> >checking linux/types.h presence... yes
> >checking for linux/types.h... yes
> >checking linux/if_ether.h usability... yes
> >checking linux/if_ether.h presence... yes
> >checking for linux/if_ether.h... yes
> >checking stdatomic.h usability... no
> >checking stdatomic.h presence... no
> >checking for stdatomic.h... no
> >checking for net/if_mib.h... no
> >checking for library containing backtrace... none required
> >checking whether libc supports hooks for malloc and related functions... yes
> >checking valgrind/valgrind.h usability... no
> >checking valgrind/valgrind.h presence... no
> >checking for valgrind/valgrind.h... no
> >checking for connect in -lsocket... no
> >checking for library containing gethostbyname... none required
> >checking XenServer release... 6.5.0
> >checking for groff... yes
> >checking whether make is GNU make... yes
> >checking whether gcc has <threads.h> that supports thread_local... no
> >checking whether gcc supports __thread... yes
> >checking for library containing __atomic_load_8... no
> >checking whether gcc supports GCC 4.0+ atomic built-ins... yes
> >checking value of __atomic_always_lock_free(1)... unsupported
> >checking value of __atomic_always_lock_free(2)... unsupported
> >checking value of __atomic_always_lock_free(4)... unsupported
> >checking value of __atomic_always_lock_free(8)... unsupported
> >checking for library containing aio_write... none required
> >checking for pthread_set_name_np... no
> >checking for pthread_setname_np() variant... none
> >checking whether __linux__ is defined... true
> >checking for working posix_memalign... yes
> >checking whether the preprocessor supports include_next... yes
> >checking whether system header files limit the line length... no
> >checking for stdio.h... yes
> >checking for string.h... (cached) yes
> >checking whether gcc accepts -Werror... yes
> >checking whether gcc accepts -Wall... yes
> >checking whether gcc accepts -Wextra... yes
> >checking whether gcc accepts -Wno-sign-compare... yes
> >checking whether gcc accepts -Wpointer-arith... yes
> >checking whether gcc accepts -Wdeclaration-after-statement... yes
> >checking whether gcc accepts -Wformat-security... no
> >checking whether gcc accepts -Wno-format-zero-length... yes
> >checking whether gcc accepts -Wswitch-enum... yes
> >checking whether gcc accepts -Wunused-parameter... yes
> >checking whether gcc accepts -Wstrict-aliasing... yes
> >checking whether gcc accepts -Wbad-function-cast... yes
> >checking whether gcc accepts -Wcast-align... yes
> >checking whether gcc accepts -Wstrict-prototypes... no
> >checking whether gcc accepts -Wold-style-definition... no
> >checking whether gcc accepts -Wmissing-prototypes... yes
> >checking whether gcc accepts -Wmissing-field-initializers... yes
> >checking whether gcc accepts -Wthread-safety... no
> >checking whether gcc accepts -Wno-unused... yes
> >checking whether gcc accepts -Wno-unused-parameter... yes
> >checking target hint for cgcc... x86_64
> >checking whether make has GNU make $(if) extension... yes
> >checking for Linux build directory... no
> >*configure: error: source dir /lib/modules/3.10.0+2%{kernel_flavor}/build doesn't exist*
> >
> >2. We found that the program still couldn't find the target folder : /lib/modules/*3.10.0+2%{kernel_flavor}*/build
> >
> >--------------------------------------------------------------------------
> >
> >It seems that the main problem is still the same.
> >Any suggestion is welcome. :-)
> >
> >Best Regards,
> >             Gosen Chien
> >*************************************
> >CCU CS Project assistant
> >No.168, Sec. 1, University Rd., Min-Hsiung Township, Chia-yi County 62102, Taiwan
> >TEL: (05)272-0411#23134
> >E-mail:astgosen at ccu.edu.tw  <mailto:astgosen at ccu.edu.tw>
> >        astgosen at novatw.info  <mailto:astgosen at novatw.info>



More information about the discuss mailing list