OpenVZ Forum


Home » General » Support » OpenVZ Zaptel Compile
OpenVZ Zaptel Compile [message #33022] Thu, 18 September 2008 03:20 Go to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
I am trying to compile zaptel and keep getting stuck at the same location. I have compiled this successfully on other machines with the same kernel.

This is a Centos 4 build on this machine, do i have to use a 2.6.9 kernel?

CC [M] /usr/src/zaptel-1.4.11/kernel/pciradio.o
/bin/sh: line 1: 12725 Floating point exceptionscripts/basic/fixdep /usr/src/zaptel-1.4.11/kernel/.pciradio.o.d /usr/src/zaptel-1.4.11/kernel/pciradio.o 'gcc -m32 -Wp,-MD,/usr/src/zaptel-1.4.11/kernel/.pciradio.o.d -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/3.4.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -pipe -msoft-float -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -I/usr/src/zaptel-1.4.11/kernel -DSTANDALONE_ZAPATA -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(pciradio)" -D"KBUILD_MODNAME=KBUILD_STR(pciradio)" -c -o /usr/src/zaptel-1.4.11/kernel/.tmp_pciradio.o /usr/src/zaptel-1.4.11/kernel/pciradio.c' >/usr/src/zaptel-1.4.11/kernel/.pciradio.o.tmp
make[3]: *** [/usr/src/zaptel-1.4.11/kernel/pciradio.o] Error 136
make[2]: *** [_module_/usr/src/zaptel-1.4.11/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-53.1.19.el5.028stab053.14-ent-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/zaptel-1.4.11'
make: *** [all] Error 2
Re: OpenVZ Zaptel Compile [message #33023 is a reply to message #33022] Thu, 18 September 2008 08:01 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

so you want to compile zaptel with 2.6.18-53.1.19.el5.028stab053.14-ent-i686 on Centos4 machine.

It's a known issue.
We have a good wiki article that describes the reason and some possible workarounds:
http://wiki.openvz.org/Building_LKM_against_OpenVZ_kernel_fr om_RPM

By the way, if it's convenient for you you can create centos5 based VE, install gcc, kernel-devel package there and compile zaptel module inside that VE.
Re: OpenVZ Zaptel Compile [message #33041 is a reply to message #33023] Fri, 19 September 2008 05:24 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
Thanks for your suggestion. I wound up going back to the 2.6.9 kernel an got zaptel complied in the HN.

i didn't know that you can complie zaptel in the container as most documents suggest compiling it in the HN.

i tried to add the kernel devel pagkage with yum but i don't think the sources match up.
Re: OpenVZ Zaptel Compile [message #33044 is a reply to message #33041] Fri, 19 September 2008 07:37 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Quote:


i didn't know that you can complie zaptel in the container as most documents suggest compiling it in the HN.


It will might be any problems we don't know about. But you can try do this.

Quote:


i tried to add the kernel devel pagkage with yum but i don't think the sources match up.


Sorry, I'm not quite understand you.
I've meant the following: let assume that you are running the kernel and you want to compile zaptel against this kernel. You could create the VE, install there gcc, kernel-devel package which is matched to the running kernel and then try to compile zaptel module.
Re: OpenVZ Zaptel Compile [message #33048 is a reply to message #33044] Fri, 19 September 2008 18:51 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
Ok, this is the error I get when compiling.

make[3]: Leaving directory `/usr/src/zaptel-1.4.11/menuselect/mxml'
gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a mxml/libmxml.a
make[2]: Leaving directory `/usr/src/zaptel-1.4.11/menuselect'
make[1]: Leaving directory `/usr/src/zaptel-1.4.11/menuselect'
make[1]: Entering directory `/usr/src/zaptel-1.4.11'
echo "You do not appear to have the sources for the 2.6.9-023stab048.4 kernel installed."
You do not appear to have the sources for the 2.6.9-023stab048.4 kernel installed.
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/zaptel-1.4.11'
make: *** [all] Error 2


[root@114 zaptel-1.4.11]# uname -a
Linux 114.local 2.6.9-023stab048.4 #1 Fri Jul 11 19:53:10 MSD 2008 i686 i686 i386 GNU/Linux


i thought I installed the sources with the RPM:

[root@114 ~]# rpm -i ovzkernel-2.6.9-023stab048.4.src.rpm
warning: ovzkernel-2.6.9-023stab048.4.src.rpm: Header V3 DSA signature: NOKEY, key ID a7a1d4b6
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[

[root@114 ~]# mkdir -p /usr/src/redhat/SOURCES


[root@114 ~]# rpm -ivh ovzkernel-2.6.9-023stab048.4.src.rpm
warning: ovzkernel-2.6.9-023stab048.4.src.rpm: Header V3 DSA signature: NOKEY, key ID a7a1d4b6
1:ovzkernel ########################################### [100%]
[

[root@114 zaptel-1.4.11]# make
make[1]: Entering directory `/usr/src/zaptel-1.4.11'
echo "You do not appear to have the sources for the 2.6.9-023stab048.4 kernel installed."
You do not appear to have the sources for the 2.6.9-023stab048.4 kernel installed.
exit 1




Re: OpenVZ Zaptel Compile [message #33085 is a reply to message #33048] Mon, 22 September 2008 07:45 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


error: cannot create %sourcedir /usr/src/redhat/SOURCES


- you should install rpm-build package.
- after that install src rpm.
- then go to /usr/src/redhat/SPECS/ directory and build kernel sources. "rpmbuild -bp --target=i686 kernel-ovz.spec"
- after that you can find kernel sources in /usr/src/redhat/BUILD/ directory
- may be you have to move (create symlink) to (from) /usr/src directory also.
- then try to build zaptel again
Re: OpenVZ Zaptel Compile [message #33166 is a reply to message #33022] Fri, 26 September 2008 05:36 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
Thanks for the suggestion. I tried but it is still complaining about the kernel sources:

make[1]: Entering directory `/usr/src/zaptel-1.4.12.1'
echo "You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed."
You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed.
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2


ll /usr/src/redhat/BUILD/ovzkernel-2.6.18/
total 20
-rw-r--r-- 1 root root 3161 Sep 25 22:26 Config.mk
drwxr-xr-x 2 root root 4096 Dec 6 2007 config
drwxr-xr-x 21 root root 4096 Sep 25 22:26 linux-2.6.18.i686
drwxr-xr-x 19 root root 4096 Sep 19 2006 vanilla
drwxr-xr-x 8 root root 4096 Dec 6 2007 xen


ll ovzkernel-2.6.18
lrwxrwxrwx 1 root root 39 Sep 25 22:33 ovzkernel-2.6.18 -> /usr/src/redhat/BUILD/ovzkernel-2.6.18/

Re: OpenVZ Zaptel Compile [message #33168 is a reply to message #33166] Fri, 26 September 2008 07:14 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1. the previous conversation was about 2.6.9 kernel, not about 2.6.18 one.

2. If you want to compile zaptel against 2.6.18-92.1.1.el5.028stab057.2 kernel I could suggest you the easier way. Install ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm package and that's all.
http://download.openvz.org/kernel/branches/rhel5-2.6.18/curr ent/ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm

3. Unfortunately, I cannot find devel package for 2.6.9 kernel so I've suggested you to install the full sources. You did that but not quite right because kernel sources are not in /usr/src/redhat/BUILD/ovzkernel-2.6.18/ directory but in
/usr/src/redhat/BUILD/ovzkernel-2.6.18/linux-2.6.18.i686
Re: OpenVZ Zaptel Compile [message #33175 is a reply to message #33168] Fri, 26 September 2008 15:18 Go to previous messageGo to next message
gtcnet is currently offline  gtcnet
Messages: 21
Registered: September 2008
Junior Member
I thought I had done that, so I repeated the steps:

rpm -ivh --force ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2.i686.rpm

lrwxrwxrwx 1 root root 57 Sep 26 08:14 linux-2.6.18.i686 -> /usr/src/redhat/BUILD/ovzkernel-2.6.18/linux-2.6.18.i686/
gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a mxml/libmxml.a -lncurses
make: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect'
make: Leaving directory `/usr/src/zaptel-1.4.12.1/menuselect'
make: Entering directory `/usr/src/zaptel-1.4.12.1'
echo "You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed."
You do not appear to have the sources for the 2.6.18-92.1.1.el5.028stab057.2 kernel installed.
exit 1
make: *** Error 1
make: Leaving directory `/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2
[
Re: OpenVZ Zaptel Compile [message #33177 is a reply to message #33175] Fri, 26 September 2008 15:45 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Look at my configuration:
# uname -a
Linux test 2.6.18-92.1.1.el5.028stab057.2 #1 SMP Mon Jul 21 20:55:45 MSD 2008 i686 i686 i386 GNU/Linux
# pwd
/root/zaptel-1.4.12.1
# ls -l /lib/modules/2.6.18-92.1.1.el5.028stab057.2/build
lrwxrwxrwx 1 root root 60 Aug 12 12:09 /lib/modules/2.6.18-92.1.1.el5.028stab057.2/build -> ../../../usr/src/kernels/2.6.18-92.1.1.el5.028stab057.2-i686
# rpm -qf /usr/src/kernels/2.6.18-92.1.1.el5.028stab057.2-i686/
ovzkernel-devel-2.6.18-92.1.1.el5.028stab057.2
# make
...
Generating input for menuselect ...
make[1]: Entering directory `/root/zaptel-1.4.12.1'
make -C /lib/modules/2.6.18-92.1.1.el5.028stab057.2/build ARCH=i386 SUBDIRS=/root/zaptel-1.4.12.1/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o tor2.o torisa.o wcfxo.o wct1xxp.o wctdm.o wcte11xp.o wcusb.o zaptel.o ztd-eth.o ztd-loc.o ztdummy.o ztdynamic.o zttranscode.o wct4xxp/ wctc4xxp/ xpp/ wctdm24xxp/ wcte12xp/" modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-92.1.1.el5.028stab057.2-i686'
gcc -o /root/zaptel-1.4.12.1/kernel/makefw /root/zaptel-1.4.12.1/kernel/makefw.c
/root/zaptel-1.4.12.1/kernel/makefw /root/zaptel-1.4.12.1/kernel/pciradio.rbt radfw > /root/zaptel-1.4.12.1/kernel/radfw.h
Loaded 42096 bytes from file
  CC [M]  /root/zaptel-1.4.12.1/kernel/pciradio.o
/root/zaptel-1.4.12.1/kernel/makefw /root/zaptel-1.4.12.1/kernel/tormenta2.rbt tor2fw > /root/zaptel-1.4.12.1/kernel/tor2fw.h
Loaded 69900 bytes from file
  CC [M]  /root/zaptel-1.4.12.1/kernel/tor2.o
  CC [M]  /root/zaptel-1.4.12.1/kernel/torisa.o
  CC [M]  /root/zaptel-1.4.12.1/kernel/wcfxo.o
  CC [M]  /root/zaptel-1.4.12.1/kernel/wct1xxp.o
.....

Either you haven't got /lib/modules/2.6.18-92.1.1.el5.028stab057.2/ directory or you run the kernel which is differ from 2.6.18-92.1.1.el5.028stab057.2 but zaptel Makefile gets kernel version from uname -r output.


Previous Topic: OpenVZ, Bind and stalling TCP connections.
Next Topic: Does a container,to wich I´ve providet a IP-Adress, a hostname, if I want to host vps´s in this co
Goto Forum:
  


Current Time: Sat Nov 16 23:39:54 GMT 2024

Total time taken to generate the page: 0.04974 seconds