Hello all, We recently tried to install OpenvSwitch 2.3.1 on Citrix Xen Server 6.5. We followed the instructions in INSTALL.XenServer, and the reproduced steps are as follows. The main problem is that the directory /lib/modules/xen/build is missing. Please suggest the method to address this issue. Thanks a lot.
[Reproduced steps] 1. According to INSTALL.XenServer from the OVS tarball, put the tarball package to the "/usr/src/redhat/SOURCE/" folder and extract it; 2. Enter the "openvswitch-2.3.1/xenserver/" folder; 3. Add the kernel version in line 70 of the file "openvswitch.spec"; 4. Build the RPM package: > rpmbuild -bb openvswitch.spec [Result] The Building process failed. The error messags is the following: configure: error: source dir /lib/modules/xen/build doesn't exist It appeared that the program could not found the folder (please refer to the attached log for the entire building process). [Environment] Server : Dell Poweredge R730 13G Hypervisor: Citrix Xen Server 6.5 Guest VM : DDK VM for Xen server 6.5 By the way, if we start to everything from the tarball instead of using rpmbuild. After (1)./configure, (2) make, and (3) make install, plus (4) make modules_install, (5) copy necessary script files which aren't copied during the installation, and (6) create a soft link form "/lib/modules/3.10.0+2/kernel/net/openvswitch/openvswitch.ko" to "/lib/modules/3.10.0+2/extra/openvswitch.ko", we restart the openvswitch service by "service openvswitch restart". However, when the service enables remote OVSDB manager, importing the ovs.dirs module from ovs-xapi-sync fails because this module is missing. Therefore, the building process also fails if we build without rpmbuild. Any advice is appreciated. Po-Ching & Gosen
æ£å¨å·è¡ (%prep)ï¼/bin/sh -e /var/tmp/rpm-tmp.39195 æ£å¨å·è¡ (%build)ï¼/bin/sh -e /var/tmp/rpm-tmp.39195 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/xen/build doesn't exist
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss