Page 1 of 1

wanpipe-voicetime-1.0.9 will not compile.

PostPosted: Wed May 12, 2010 7:51 pm
by mjstox
wanpipe-voicetime didn't compile during installation. Tried manual and it bombs? Any ideas.

thanks in advance.
Mark

PostPosted: Wed May 12, 2010 9:00 pm
by mflorell
Vicibox version?

Output errors when you try to compile it?

PostPosted: Wed May 12, 2010 10:01 pm
by mjstox
ViciBox Redux v.0.1.9

VERSION: 2.4-253
BUILD: 100507-1102

make DAHDI_DIR=/usr/src/dahdi

+--------- Wanpipe Build Info --------------+

Compiling Wanpipe with DAHDI Support!
Dahdi Dir: /usr/src/dahdi


+-------------------------------------------+

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.27.45-0.1-pae/build SUBDIRS=/usr/src/wanpipe-voicetime-1.0.9/src EXTRA_FLAGS="-D__LINUX__ -I/lib/modules/2.6.27.45-0.1-pae/build/include/ -I/include -I/usr/include -I/usr/src/wanpipe-voicetime-1.0.9/src/include -I/lib/modules/2.6.27.45-0.1-pae/build/include/linux -I/usr/src/dahdi -DSTANDALONE_ZAPATA -DCONFIG_PRODUCT_WANPIPE_TDM_VOICE_DCHAN_ZAPTEL -DDAHDI_ISSUES -DBUILDING_TONEZONE -I/usr/src/dahdi/include -I/usr/src/dahdi/include/dahdi -I/usr/src/dahdi/drivers/dahdi" HOMEDIR=/usr/src/wanpipe-voicetime-1.0.9 modules
make[1]: Entering directory `/usr/src/linux-2.6.27.45-0.1-obj/i386/pae'
make -C ../../../linux-2.6.27.45-0.1 O=/usr/src/linux-2.6.27.45-0.1-obj/i386/pae/. modules
make -C /usr/src/linux-2.6.27.45-0.1-obj/i386/pae \
KBUILD_SRC=/usr/src/linux-2.6.27.45-0.1 \
KBUILD_EXTMOD="/usr/src/wanpipe-voicetime-1.0.9/src" -f /usr/src/linux-2.6.27.45-0.1/Makefile \
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/src/wanpipe-voicetime-1.0.9/src/.tmp_versions ; rm -f /usr/src/wanpipe-voicetime-1.0.9/src/.tmp_versions/*
make -f /usr/src/linux-2.6.27.45-0.1/scripts/Makefile.build obj=/usr/src/wanpipe-voicetime-1.0.9/src
(cat /dev/null; echo kernel//usr/src/wanpipe-voicetime-1.0.9/src/wanpipe_voicetime.ko;) > /usr/src/wanpipe-voicetime-1.0.9/src/modules.order
Building modules, stage 2.
make -f /usr/src/linux-2.6.27.45-0.1/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.27.45-0.1-obj/i386/pae/Module.symvers -I /usr/src/wanpipe-voicetime-1.0.9/src/Module.symvers -o /usr/src/wanpipe-voicetime-1.0.9/src/Module.symvers -S -K /usr/src/linux-2.6.27.45-0.1-obj/i386/pae/Module.markers -M /usr/src/wanpipe-voicetime-1.0.9/src/Module.markers -w -N /dev/null -s
make[1]: Leaving directory `/usr/src/linux-2.6.27.45-0.1-obj/i386/pae'

PostPosted: Wed May 12, 2010 10:25 pm
by Kumba
If you install a new kernel you need to reboot into the new kernel before continuing the installation. This is not specific to ViciBox Redux but all linux versions.

In other words, After you did the base install, you then did "zypper up". After you did that you should have rebooted onto the new kernel and then types "vicibox-install".

PostPosted: Wed May 12, 2010 10:26 pm
by williamconley
is this during a fresh install or a "go back and try again" or was it the same both times?

PostPosted: Thu May 13, 2010 12:27 am
by mjstox
Kumba,

Just ran zypper up and got a msg that there is nothing to do.

Then went ahead and ran vicibox-install. Got the same compile error from that script on voicetime.

William this is fresh install. My IT admin did the install and I was checking the work. Noticed that the voicetime wasn't built. So tried to build manual. At that point the compile was bombing.

Should I run the installation again?

thanks,
Mark

PostPosted: Thu May 13, 2010 3:58 am
by Kumba
Has this box been rebooted at all?

Try rebooting the machine, and then re-running vicibox-install.

PostPosted: Thu May 13, 2010 11:23 am
by Kumba
If you've rebooted and re-ran the installer and it still fails, then I would do what your error output says. Most notably here:

echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \


So, given that, here is what you need to run:
1) cd /usr/src/linux-2.6.27.45-0.1
2) make oldconfig && make prepare

Then try re-running the installer.

problem fixed.

PostPosted: Thu May 13, 2010 3:33 pm
by mjstox
Not sure what I did but got it fixed. It was getting to be late at night and I was rebooting , trying to build , rebooting , running updates, vicidial-install.

And next thing I know ran dahdi show status and load and behold wanpipe voicetime driver up.

Bad part is I don't know what I did :)

Doing another server install so will see if I can get it the first time around.

Mark

PostPosted: Thu May 13, 2010 3:38 pm
by williamconley
entirely possible that the reboot was never done the first time so it didn't work. then you tried to recompile but the configuration was incorrect so it borked. but when you rebooted, that fixed the original "missing" reboot, but you never checked to see if the wanpipe was up and running ... concentrating on the borked compile.

not that i've EVER been there. i'd never make a mistake like that. no way. uh-uh.

PostPosted: Thu May 13, 2010 7:44 pm
by Kumba
If your internet isn't the most reliable then I would recommend you install in offline mode and do a manual zypper update before continuing with vicidial.

How you would do that is as follows:
1) Unplug server from network (literally)
2) Boot from CD, follow instructions up through the Base OS Installation
3) After the Base OS Install, and before the ViciBox Install, plug in the network cable and configure the network on the machine; If you configured this in previous steps then you just need to plug in the cable.
4) Type 'zypper up' to manually update the OS; If it bombs out, you can keep re-running it until it reports it has nothing to do.
5) Once 'zypper up' complete successfully, type 'reboot' to boot to the new kernel
6) Run 'vicibox-install' to complete the ViciDial Installation.

Also, if you install updates at a later time, you can boot into the new kernel and type 'asterisk-recompile' to recompile all the relevant drivers.

Keep in mind, a reboot is necessary to make sure the running kernel (or to run a new kernel) matches the sources you have loaded on the machine.